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

Side by Side Diff: chrome/browser/extensions/api/autofill_private/autofill_private_apitest.cc

Issue 2028903002: Update Autofill Private API to provide a list of available countries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/common/extensions/api/autofill_private.h" 9 #include "chrome/common/extensions/api/autofill_private.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 24 matching lines...) Expand all
35 "main.html?" + subtest, 35 "main.html?" + subtest,
36 kFlagLoadAsComponent); 36 kFlagLoadAsComponent);
37 } 37 }
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateApiTest); 40 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateApiTest);
41 }; 41 };
42 42
43 } // namespace 43 } // namespace
44 44
45 // TODO(hcarmona): Investigate converting these tests to unittests.
46
45 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, SaveAddress) { 47 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, SaveAddress) {
46 EXPECT_TRUE(RunAutofillSubtest("saveAddress")) << message_; 48 EXPECT_TRUE(RunAutofillSubtest("saveAddress")) << message_;
47 } 49 }
48 50
51 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, GetCountryList) {
52 EXPECT_TRUE(RunAutofillSubtest("getCountryList")) << message_;
53 }
54
49 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, GetAddressComponents) { 55 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, GetAddressComponents) {
50 EXPECT_TRUE(RunAutofillSubtest("getAddressComponents")) << message_; 56 EXPECT_TRUE(RunAutofillSubtest("getAddressComponents")) << message_;
51 } 57 }
52 58
53 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, SaveCreditCard) { 59 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, SaveCreditCard) {
54 EXPECT_TRUE(RunAutofillSubtest("saveCreditCard")) << message_; 60 EXPECT_TRUE(RunAutofillSubtest("saveCreditCard")) << message_;
55 } 61 }
56 62
57 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, RemoveEntry) { 63 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, RemoveEntry) {
58 EXPECT_TRUE(RunAutofillSubtest("removeEntry")) << message_; 64 EXPECT_TRUE(RunAutofillSubtest("removeEntry")) << message_;
59 } 65 }
60 66
61 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, ValidatePhoneNumbers) { 67 IN_PROC_BROWSER_TEST_F(AutofillPrivateApiTest, ValidatePhoneNumbers) {
62 EXPECT_TRUE(RunAutofillSubtest("ValidatePhoneNumbers")) << message_; 68 EXPECT_TRUE(RunAutofillSubtest("ValidatePhoneNumbers")) << message_;
63 } 69 }
64 70
65 } // namespace extensions 71 } // namespace extensions
66 72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698