From 3fc78e12943f034bbe03c11bda800a3f0fd09b13 Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Sun, 26 Jul 2009 22:27:47 +0100 Subject: [PATCH] Remove visibility checks from SearchManager tests Since the search UI is handled by the system process, and the service calls to show and hide it are asynchronous, the tests that checked the visibility of the search UI were very flaky. This change sclaes the tests back to just check that nothing crashes when showing and hiding the search UI. Fixes http://b/issue?id=1993675 --- .../android/unit_tests/SearchManagerTest.java | 59 ++----------------- 1 file changed, 4 insertions(+), 55 deletions(-) diff --git a/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java b/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java index 4c5fefc43b6f9..e48a57bdb7e0c 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java +++ b/tests/AndroidTests/src/com/android/unit_tests/SearchManagerTest.java @@ -23,14 +23,11 @@ import android.app.ISearchManager; import android.app.SearchManager; import android.content.ComponentName; import android.content.Context; -import android.os.Bundle; -import android.os.RemoteException; import android.os.ServiceManager; import android.server.search.SearchableInfo; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.LargeTest; import android.test.suitebuilder.annotation.MediumTest; -import android.util.AndroidRuntimeException; /** * To launch this test from the command line: @@ -98,22 +95,6 @@ public class SearchManagerTest extends ActivityInstrumentationTestCase2