am 40666299: am 1a27f4b7: am a009be85: am 5aa96df6: Merge "Remove the pointless ResolveInfo_DisplayNameComparatorTest. bug:13247366" into jb-dev
* commit '40666299c3e3ad8a291c1e5ffce5b6a15f1f6362':
Remove the pointless ResolveInfo_DisplayNameComparatorTest. bug:13247366
diff --git a/tests/tests/content/src/android/content/pm/cts/ResolveInfo_DisplayNameComparatorTest.java b/tests/tests/content/src/android/content/pm/cts/ResolveInfo_DisplayNameComparatorTest.java
deleted file mode 100644
index be3d99c..0000000
--- a/tests/tests/content/src/android/content/pm/cts/ResolveInfo_DisplayNameComparatorTest.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2008 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 android.content.pm.cts;
-
-
-import android.content.Intent;
-import android.content.pm.PackageManager;
-import android.content.pm.ResolveInfo;
-import android.content.pm.ResolveInfo.DisplayNameComparator;
-import android.test.AndroidTestCase;
-
-public class ResolveInfo_DisplayNameComparatorTest extends AndroidTestCase {
- private static final String MAIN_ACTION_NAME = "android.intent.action.MAIN";
- private static final String SERVICE_NAME = "android.content.pm.cts.activity.PMTEST_SERVICE";
-
- public void testDisplayNameComparator() {
- PackageManager pm = getContext().getPackageManager();
- DisplayNameComparator dnc = new DisplayNameComparator(pm);
-
- Intent intent = new Intent(MAIN_ACTION_NAME);
- ResolveInfo activityInfo = pm.resolveActivity(intent, 0);
-
- intent = new Intent(SERVICE_NAME);
- ResolveInfo serviceInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER);
-
- assertTrue(dnc.compare(activityInfo, serviceInfo) < 0);
- assertTrue(dnc.compare(activityInfo, activityInfo) == 0);
- assertTrue(dnc.compare(serviceInfo, activityInfo) > 0);
- }
-}