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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java

Issue 2120973002: [Payments] Show complete profiles first and limit to 4 suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the null return value Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java b/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java
index 173fb565e50a8b01a6d0da5afe1fc824e4dc335a..7259a8e876413cdd3e69e2db7454b2550ea2bc90 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java
@@ -151,7 +151,8 @@ public class AutofillTestHelper {
}
/**
- * Sets the use |count| and use |date| of the test profile associated with the |guid|.
+ * Sets the use |count| and use |date| of the test profile associated with the |guid|. This
+ * update is not saved to disk.
* @param guid The GUID of the profile to modify.
* @param count The use count to assign to the profile. It should be non-negative.
* @param date The use date to assign to the profile. It represents an absolute point in
@@ -159,7 +160,7 @@ public class AutofillTestHelper {
* epoch. For more details see the comment header in time.h. It should always be a
* positive number.
*/
- void setProfileUseStatsForTesting(final String guid, final int count, final long date)
+ public void setProfileUseStatsForTesting(final String guid, final int count, final long date)
throws InterruptedException {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
@@ -167,11 +168,11 @@ public class AutofillTestHelper {
PersonalDataManager.getInstance().setProfileUseStatsForTesting(guid, count, date);
}
});
- waitForDataChanged();
}
/**
- * Sets the use |count| and use |date| of the test credit card associated with the |guid|.
+ * Sets the use |count| and use |date| of the test credit card associated with the |guid|. This
+ * update is not saved to disk.
* @param guid The GUID of the credit card to modify.
* @param count The use count to assign to the credit card. It should be non-negative.
* @param date The use date to assign to the credit card. It represents an absolute point in
@@ -188,7 +189,6 @@ public class AutofillTestHelper {
guid, count, date);
}
});
- waitForDataChanged();
}
private void registerDataObserver() {

Powered by Google App Engine
This is Rietveld 408576698