diff options
author | Satish Sampath <satish@android.com> | 2009-06-10 12:03:47 +0100 |
---|---|---|
committer | Satish Sampath <satish@android.com> | 2009-06-10 12:06:46 +0100 |
commit | 174ad503ee5b24721d7d632ba9c68b9cd0bd6dd6 (patch) | |
tree | 190b3b20e71960b6e7ce8549c0bd270aa83e6278 /tests | |
parent | 3b277c700e6907ee0813839604ac60df2141c557 (diff) | |
download | frameworks_base-174ad503ee5b24721d7d632ba9c68b9cd0bd6dd6.zip frameworks_base-174ad503ee5b24721d7d632ba9c68b9cd0bd6dd6.tar.gz frameworks_base-174ad503ee5b24721d7d632ba9c68b9cd0bd6dd6.tar.bz2 |
In SearchablesTest, use the always available globalsearch.
The earlier used googlesearch package may not be available in some devices so switching to globalsearch which has searchable info relevant for this unit test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java b/tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java index 6b56e6c..ecc8dfe 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java +++ b/tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java @@ -72,19 +72,19 @@ public class SearchablesTest extends AndroidTestCase { * TODO: The metadata source needs to be mocked out because adding * searchability metadata via this test is causing it to leak into the * real system. So for now I'm just going to test for existence of the - * GoogleSearch app (which is searchable). + * GlobalSearch app (which is searchable). */ - public void testSearchableGoogleSearch() { + public void testSearchableGlobalSearch() { // test basic array & hashmap Searchables searchables = new Searchables(mContext); searchables.buildSearchableList(); // test linkage from another activity // TODO inject this via mocking into the package manager. - // TODO for now, just check for searchable GoogleSearch app (this isn't really a unit test) + // TODO for now, just check for searchable GlobalSearch app (this isn't really a unit test) ComponentName thisActivity = new ComponentName( - "com.android.googlesearch", - "com.android.googlesearch.GoogleSearch"); + "com.android.globalsearch", + "com.android.globalsearch.GlobalSearch"); SearchableInfo si = searchables.getSearchableInfo(thisActivity); assertNotNull(si); @@ -93,7 +93,7 @@ public class SearchablesTest extends AndroidTestCase { Context appContext = si.getActivityContext(mContext); assertNotNull(appContext); MoreAsserts.assertNotEqual(appContext, mContext); - assertEquals("Google Search", appContext.getString(si.getHintId())); + assertEquals("Android Search", appContext.getString(si.getHintId())); assertEquals("Google", appContext.getString(si.getLabelId())); } |