| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |