| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 class AutofillTest : public InProcessBrowserTest { | 101 class AutofillTest : public InProcessBrowserTest { |
| 102 protected: | 102 protected: |
| 103 AutofillTest() {} | 103 AutofillTest() {} |
| 104 | 104 |
| 105 void SetUpOnMainThread() override { | 105 void SetUpOnMainThread() override { |
| 106 // Don't want Keychain coming up on Mac. | 106 // Don't want Keychain coming up on Mac. |
| 107 test::DisableSystemServices(browser()->profile()->GetPrefs()); | 107 test::DisableSystemServices(browser()->profile()->GetPrefs()); |
| 108 | 108 |
| 109 ASSERT_TRUE(embedded_test_server()->Start()); | 109 ASSERT_TRUE(embedded_test_server()->Start()); |
| 110 InProcessBrowserTest::SetUpOnMainThread(); | |
| 111 } | 110 } |
| 112 | 111 |
| 113 void TearDownOnMainThread() override { | 112 void TearDownOnMainThread() override { |
| 114 // Make sure to close any showing popups prior to tearing down the UI. | 113 // Make sure to close any showing popups prior to tearing down the UI. |
| 115 content::WebContents* web_contents = | 114 content::WebContents* web_contents = |
| 116 browser()->tab_strip_model()->GetActiveWebContents(); | 115 browser()->tab_strip_model()->GetActiveWebContents(); |
| 117 AutofillManager* autofill_manager = | 116 AutofillManager* autofill_manager = |
| 118 ContentAutofillDriverFactory::FromWebContents(web_contents) | 117 ContentAutofillDriverFactory::FromWebContents(web_contents) |
| 119 ->DriverForFrame(web_contents->GetMainFrame()) | 118 ->DriverForFrame(web_contents->GetMainFrame()) |
| 120 ->autofill_manager(); | 119 ->autofill_manager(); |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 IN_PROC_BROWSER_TEST_F(AutofillTest, | 806 IN_PROC_BROWSER_TEST_F(AutofillTest, |
| 808 DISABLED_MergeAggregatedDuplicatedProfiles) { | 807 DISABLED_MergeAggregatedDuplicatedProfiles) { |
| 809 int num_of_profiles = | 808 int num_of_profiles = |
| 810 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt"); | 809 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt"); |
| 811 | 810 |
| 812 ASSERT_GT(num_of_profiles, | 811 ASSERT_GT(num_of_profiles, |
| 813 static_cast<int>(personal_data_manager()->GetProfiles().size())); | 812 static_cast<int>(personal_data_manager()->GetProfiles().size())); |
| 814 } | 813 } |
| 815 | 814 |
| 816 } // namespace autofill | 815 } // namespace autofill |
| OLD | NEW |