Merge "Fixed an issue with a test that didn't work properly"

This commit is contained in:
Selim Cinek
2018-02-23 03:35:40 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ public class RemoteInputViewTest extends SysuiTestCase {
private static final String TEST_RESULT_KEY = "test_result_key";
private static final String TEST_REPLY = "hello";
private static final String TEST_ACTION = "com.android.ACTION";
private static final String TEST_ACTION = "com.android.REMOTE_INPUT_VIEW_ACTION";
@Mock private RemoteInputController mController;
@Mock private ShortcutManager mShortcutManager;
@@ -93,6 +93,7 @@ public class RemoteInputViewTest extends SysuiTestCase {
@Test
public void testNoCrashWithoutVisibilityListener() {
mView.setOnVisibilityChangedListener(null);
mView.onVisibilityChanged(mView, View.VISIBLE);
mView.setVisibility(View.INVISIBLE);
mView.setVisibility(View.VISIBLE);
}
}

View File

@@ -47,7 +47,7 @@ import org.junit.runner.RunWith;
@SmallTest
public class SmartReplyViewTest extends SysuiTestCase {
private static final String TEST_RESULT_KEY = "test_result_key";
private static final String TEST_ACTION = "com.android.ACTION";
private static final String TEST_ACTION = "com.android.SMART_REPLY_VIEW_ACTION";
private static final String[] TEST_CHOICES = new String[]{"Hello", "What's up?", "I'm here"};