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

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

Issue 2919343005: Remove tests for deprecated Options UI (Closed)
Patch Set: and more Created 3 years, 6 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
deleted file mode 100644
index a00cc4cb3d709efce5939148c610c1799f09e1c8..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/autofill_options_handler_unittest.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/options/autofill_options_handler.h"
-
-#include "base/values.h"
-#include "components/autofill/core/browser/autofill_profile.h"
-#include "components/autofill/core/browser/autofill_test_utils.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace options {
-
-TEST(AutofillOptionsHandlerTest, AddressToDictionary) {
- autofill::AutofillProfile profile;
- autofill::test::SetProfileInfoWithGuid(&profile,
- "guid",
- "First",
- "Middle",
- "Last",
- "fml@example.com",
- "Acme inc",
- "123 Main",
- "Apt 2",
- "Laredo",
- "TX",
- "77300",
- "US",
- "832-555-1000");
-
- base::DictionaryValue dictionary;
- options::AutofillOptionsHandler::AutofillProfileToDictionary(profile,
- &dictionary);
-
- std::string value;
- EXPECT_TRUE(dictionary.GetString("addrLines", &value));
- EXPECT_EQ("123 Main\nApt 2", value);
- EXPECT_TRUE(dictionary.GetString("city", &value));
- EXPECT_EQ("Laredo", value);
- EXPECT_TRUE(dictionary.GetString("country", &value));
- EXPECT_EQ("US", value);
- EXPECT_TRUE(dictionary.GetString("dependentLocality", &value));
- EXPECT_EQ("", value);
- EXPECT_TRUE(dictionary.GetString("guid", &value));
- EXPECT_EQ("guid", value);
- EXPECT_TRUE(dictionary.GetString("languageCode", &value));
- EXPECT_EQ("", value);
- EXPECT_TRUE(dictionary.GetString("postalCode", &value));
- EXPECT_EQ("77300", value);
- EXPECT_TRUE(dictionary.GetString("sortingCode", &value));
- EXPECT_EQ("", value);
- EXPECT_TRUE(dictionary.GetString("state", &value));
- EXPECT_EQ("TX", value);
- EXPECT_TRUE(dictionary.GetString("email", &value));
- EXPECT_EQ("fml@example.com", value);
- EXPECT_TRUE(dictionary.GetString("fullName", &value));
- EXPECT_EQ("First Middle Last", value);
- EXPECT_TRUE(dictionary.GetString("phone", &value));
- EXPECT_EQ("832-555-1000", value);
-}
-
-} // namespace options

Powered by Google App Engine
This is Rietveld 408576698