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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc

Issue 23653052: [rAc] Fetch username concurrently with fetching Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes, including to checked in production code... Created 7 years, 3 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/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
index 2cda6e0bcb81f3c05c001f3694e568c1e5ebff2f..594d99b50875fcca2d9a8d352741ec7ea579438c 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
@@ -566,6 +566,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest,
// Tests that credit card number is disabled while editing a Wallet instrument.
IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, WalletCreditCardDisabled) {
controller()->OnUserNameFetchSuccess("user@example.com");
+ controller()->OnDidFetchWalletCookieValue(std::string());
scoped_ptr<wallet::WalletItems> wallet_items = wallet::GetTestWalletItems();
// An expired card will be forced into edit mode.
@@ -732,6 +733,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, MAYBE_PreservedSections) {
// Set up some Wallet state.
controller()->OnUserNameFetchSuccess("user@example.com");
+ controller()->OnDidFetchWalletCookieValue(std::string());
controller()->OnDidGetWalletItems(wallet::GetTestWalletItems());
ui::MenuModel* account_chooser = controller()->MenuModelForAccountChooser();

Powered by Google App Engine
This is Rietveld 408576698