Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/test/AutofillTest.java

Issue 12566022: Merge 187018 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.testshell; 5 package org.chromium.chrome.testshell;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.ContentProvider; 8 import android.content.ContentProvider;
9 import android.content.ContentResolver; 9 import android.content.ContentResolver;
10 import android.os.SystemClock; 10 import android.os.SystemClock;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 public boolean waitForCallback() throws InterruptedException { 88 public boolean waitForCallback() throws InterruptedException {
89 return CriteriaHelper.pollForCriteria(new Criteria() { 89 return CriteriaHelper.pollForCriteria(new Criteria() {
90 @Override 90 @Override
91 public boolean isSatisfied() { 91 public boolean isSatisfied() {
92 return mGotPopupSelection.get(); 92 return mGotPopupSelection.get();
93 } 93 }
94 }, CALLBACK_TIMEOUT_MS, CHECK_INTERVAL_MS); 94 }, CALLBACK_TIMEOUT_MS, CHECK_INTERVAL_MS);
95 } 95 }
96 96
97 @Override 97 @Override
98 public void dismissed() { 98 public void requestHide() {
99 } 99 }
100 } 100 }
101 101
102 private AutofillSuggestion[] createTwoAutofillSuggestionArray() { 102 private AutofillSuggestion[] createTwoAutofillSuggestionArray() {
103 return new AutofillSuggestion[] { 103 return new AutofillSuggestion[] {
104 new AutofillSuggestion("Sherlock Holmes", "221B Baker Street", 42), 104 new AutofillSuggestion("Sherlock Holmes", "221B Baker Street", 42),
105 new AutofillSuggestion("Arthur Dent", "West Country", 43), 105 new AutofillSuggestion("Arthur Dent", "West Country", 43),
106 }; 106 };
107 } 107 }
108 108
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 assertTrue(openAutofillPopupAndWaitUntilReady(suggestions)); 149 assertTrue(openAutofillPopupAndWaitUntilReady(suggestions));
150 assertEquals(2, mAutofillPopup.getListView().getCount()); 150 assertEquals(2, mAutofillPopup.getListView().getCount());
151 151
152 TouchCommon touchCommon = new TouchCommon(this); 152 TouchCommon touchCommon = new TouchCommon(this);
153 touchCommon.singleClickViewRelative(mAutofillPopup.getListView(), 10, 10 ); 153 touchCommon.singleClickViewRelative(mAutofillPopup.getListView(), 10, 10 );
154 assertTrue(mMockAutofillCallback.waitForCallback()); 154 assertTrue(mMockAutofillCallback.waitForCallback());
155 155
156 assertEquals(0, mMockAutofillCallback.mListIndex); 156 assertEquals(0, mMockAutofillCallback.mListIndex);
157 } 157 }
158 } 158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698