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

Unified Diff: components/autofill/content/browser/wallet/wallet_test_util.cc

Issue 23930002: [rAc] Reset the user's selection to the new default when the default Wallet item changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out common functionality 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
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/wallet_test_util.cc
diff --git a/components/autofill/content/browser/wallet/wallet_test_util.cc b/components/autofill/content/browser/wallet/wallet_test_util.cc
index 15f916afdc0f77a9441e60b78d3c53691e990598..2311e5c5d23b8cea26ec57ce82b0b9c487b288fd 100644
--- a/components/autofill/content/browser/wallet/wallet_test_util.cc
+++ b/components/autofill/content/browser/wallet/wallet_test_util.cc
@@ -225,11 +225,18 @@ scoped_ptr<Address> GetTestNonDefaultShippingAddress() {
}
scoped_ptr<WalletItems> GetTestWalletItems() {
+ return GetTestWalletItemsWithDefaultIds("default_instrument_id",
+ "default_address_id");
+}
+
+scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds(
+ const std::string& default_instrument_id,
+ const std::string& default_address_id) {
return scoped_ptr<WalletItems>(
new wallet::WalletItems(std::vector<RequiredAction>(),
"google_transaction_id",
- "default_instrument_id",
- "default_address_id",
+ default_instrument_id,
+ default_address_id,
"obfuscated_gaia_id"));
}
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698