summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-06-22 14:59:23 +0100
committerBjorn Bringert <bringert@android.com>2009-06-22 16:10:41 +0100
commiteed76b2a8ddc41af01cd3ae87c4722f3784c975c (patch)
treea7d6c9c81534eb4105006d3e808f855ba35d7957
parent9336f5d9de43939293a296032f5bc0986332e23f (diff)
downloadframeworks_base-eed76b2a8ddc41af01cd3ae87c4722f3784c975c.zip
frameworks_base-eed76b2a8ddc41af01cd3ae87c4722f3784c975c.tar.gz
frameworks_base-eed76b2a8ddc41af01cd3ae87c4722f3784c975c.tar.bz2
Remove test for SearchManager activity context restriction.
This restriction was removed in https://android-git.corp.google.com/g/4908 see http://b/issue?id=1926254
-rw-r--r--tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java b/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java
index 4c6da76..c4f1ab6 100644
--- a/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java
+++ b/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java
@@ -126,26 +126,6 @@ public class SearchManagerTest extends ActivityInstrumentationTestCase2<LocalAct
}
/**
- * The goal of this test is to confirm that we can *only* obtain a search manager
- * interface from an Activity context.
- */
- @MediumTest
- public void testSearchManagerContextRestrictions() {
- SearchManager searchManager1 = (SearchManager)
- mContext.getSystemService(Context.SEARCH_SERVICE);
- assertNotNull(searchManager1);
-
- Context applicationContext = mContext.getApplicationContext();
- // this should fail, because you can't get a SearchManager from a non-Activity context
- try {
- applicationContext.getSystemService(Context.SEARCH_SERVICE);
- assertFalse("Shouldn't retrieve SearchManager from a non-Activity context", true);
- } catch (AndroidRuntimeException e) {
- // happy here - we should catch this.
- }
- }
-
- /**
* The goal of this test is to confirm that we can obtain
* a search manager at any time, and that for any given context,
* it is a singleton.