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

Unified Diff: components/autofill/core/browser/webdata/autofill_table_unittest.cc

Issue 969103003: Don't save duplicates of wallet addresses to local Autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make test work Created 5 years, 10 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: components/autofill/core/browser/webdata/autofill_table_unittest.cc
diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
index 75eec072f4b7ac9523a5cfd3901ec561c77a7098..2624daac5c348095d88a1cb41b8bda135a40c548 100644
--- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc
+++ b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
@@ -1768,10 +1768,10 @@ TEST_F(AutofillTableTest, SetServerProfile) {
AutofillProfile one(AutofillProfile::SERVER_PROFILE, "a123");
std::vector<AutofillProfile> inputs;
inputs.push_back(one);
- table_->SetAutofillServerProfiles(inputs);
+ table_->SetServerProfiles(inputs);
std::vector<AutofillProfile*> outputs;
- table_->GetAutofillServerProfiles(&outputs);
+ table_->GetServerProfiles(&outputs);
ASSERT_EQ(1u, outputs.size());
EXPECT_EQ(one.server_id(), outputs[0]->server_id());
@@ -1781,10 +1781,10 @@ TEST_F(AutofillTableTest, SetServerProfile) {
// Set a different profile.
AutofillProfile two(AutofillProfile::SERVER_PROFILE, "b456");
inputs[0] = two;
- table_->SetAutofillServerProfiles(inputs);
+ table_->SetServerProfiles(inputs);
// The original one should have been replaced.
- table_->GetAutofillServerProfiles(&outputs);
+ table_->GetServerProfiles(&outputs);
ASSERT_EQ(1u, outputs.size());
EXPECT_EQ(two.server_id(), outputs[0]->server_id());

Powered by Google App Engine
This is Rietveld 408576698