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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc

Issue 1166563002: Remove support for variant info in chrome://settings/autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 7 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/webui/options/autofill_options_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc b/chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc
index 7cc93b6b30e0466ccfae6aecd752399249eee202..a00cc4cb3d709efce5939148c610c1799f09e1c8 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc
@@ -51,21 +51,11 @@ TEST(AutofillOptionsHandlerTest, AddressToDictionary) {
EXPECT_EQ("", value);
EXPECT_TRUE(dictionary.GetString("state", &value));
EXPECT_EQ("TX", value);
-
- base::ListValue* list_value;
- EXPECT_TRUE(dictionary.GetList("email", &list_value));
- EXPECT_EQ(1U, list_value->GetSize());
- EXPECT_TRUE(list_value->GetString(0, &value));
+ EXPECT_TRUE(dictionary.GetString("email", &value));
EXPECT_EQ("fml@example.com", value);
-
- EXPECT_TRUE(dictionary.GetList("fullName", &list_value));
- EXPECT_EQ(1U, list_value->GetSize());
- EXPECT_TRUE(list_value->GetString(0, &value));
+ EXPECT_TRUE(dictionary.GetString("fullName", &value));
EXPECT_EQ("First Middle Last", value);
-
- EXPECT_TRUE(dictionary.GetList("phone", &list_value));
- EXPECT_EQ(1U, list_value->GetSize());
- EXPECT_TRUE(list_value->GetString(0, &value));
+ EXPECT_TRUE(dictionary.GetString("phone", &value));
EXPECT_EQ("832-555-1000", value);
}

Powered by Google App Engine
This is Rietveld 408576698