diff options
author | Régis Décamps <regisd@google.com> | 2014-08-20 21:20:07 +0200 |
---|---|---|
committer | Régis Décamps <regisd@google.com> | 2014-08-21 18:38:57 +0200 |
commit | 0abdb685b601c39ae1ccffb930acac323f4aafed (patch) | |
tree | 8c1d53d30b03fa6cb67b243dea86e1c1ee38e97a /tests | |
parent | 33ca5c670394671177f82ed049d8d7c6920164a7 (diff) | |
download | android_packages_apps_UnifiedEmail-0abdb685b601c39ae1ccffb930acac323f4aafed.tar.gz android_packages_apps_UnifiedEmail-0abdb685b601c39ae1ccffb930acac323f4aafed.tar.bz2 android_packages_apps_UnifiedEmail-0abdb685b601c39ae1ccffb930acac323f4aafed.zip |
Refactoring: Move Analytics email-providers out of AOSP
Google analytics is not used in the AOSP UnifiedEmail project.
Therefore AnalyticsUtils should not handle the detection of
email providers based on the email address.
Bug: 17141023 Better aggregate email providers in dimension "Email Provider"
Change-Id: Ib91310ec244906ba6b98fa75f22f5f0cb2f5926c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/mail/analytics/AnalyticsUtilsTests.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/src/com/android/mail/analytics/AnalyticsUtilsTests.java b/tests/src/com/android/mail/analytics/AnalyticsUtilsTests.java deleted file mode 100644 index 4fe137749..000000000 --- a/tests/src/com/android/mail/analytics/AnalyticsUtilsTests.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (C) 2014 Google Inc. - * Licensed to The Android Open Source Project. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *******************************************************************************/ -package com.android.mail.analytics; - -import android.test.AndroidTestCase; -import android.test.suitebuilder.annotation.SmallTest; - -/** - * Tests for {@link com.android.mail.analytics.AnalyticsUtils}. - */ -@SmallTest -public class AnalyticsUtilsTests extends AndroidTestCase { - public void testGetEmailProviderForAddress() { - assertEquals("gmail", AnalyticsUtils.getEmailProviderForAddress("foo@gmail.com")); - assertEquals("other", AnalyticsUtils.getEmailProviderForAddress("foo@example.com")); - assertEquals("unknown", AnalyticsUtils.getEmailProviderForAddress(null)); - } -} |