| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 class AutofillTest : public InProcessBrowserTest { | 98 class AutofillTest : public InProcessBrowserTest { |
| 99 protected: | 99 protected: |
| 100 AutofillTest() {} | 100 AutofillTest() {} |
| 101 | 101 |
| 102 void SetUpOnMainThread() override { | 102 void SetUpOnMainThread() override { |
| 103 // Don't want Keychain coming up on Mac. | 103 // Don't want Keychain coming up on Mac. |
| 104 test::DisableSystemServices(browser()->profile()->GetPrefs()); | 104 test::DisableSystemServices(browser()->profile()->GetPrefs()); |
| 105 | 105 |
| 106 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 106 ASSERT_TRUE(embedded_test_server()->Start()); |
| 107 InProcessBrowserTest::SetUpOnMainThread(); | 107 InProcessBrowserTest::SetUpOnMainThread(); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void TearDownOnMainThread() override { | 110 void TearDownOnMainThread() override { |
| 111 // Make sure to close any showing popups prior to tearing down the UI. | 111 // Make sure to close any showing popups prior to tearing down the UI. |
| 112 content::WebContents* web_contents = | 112 content::WebContents* web_contents = |
| 113 browser()->tab_strip_model()->GetActiveWebContents(); | 113 browser()->tab_strip_model()->GetActiveWebContents(); |
| 114 AutofillManager* autofill_manager = | 114 AutofillManager* autofill_manager = |
| 115 ContentAutofillDriverFactory::FromWebContents(web_contents) | 115 ContentAutofillDriverFactory::FromWebContents(web_contents) |
| 116 ->DriverForFrame(web_contents->GetMainFrame()) | 116 ->DriverForFrame(web_contents->GetMainFrame()) |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 IN_PROC_BROWSER_TEST_F(AutofillTest, | 838 IN_PROC_BROWSER_TEST_F(AutofillTest, |
| 839 DISABLED_MergeAggregatedDuplicatedProfiles) { | 839 DISABLED_MergeAggregatedDuplicatedProfiles) { |
| 840 int num_of_profiles = | 840 int num_of_profiles = |
| 841 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt"); | 841 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt"); |
| 842 | 842 |
| 843 ASSERT_GT(num_of_profiles, | 843 ASSERT_GT(num_of_profiles, |
| 844 static_cast<int>(personal_data_manager()->GetProfiles().size())); | 844 static_cast<int>(personal_data_manager()->GetProfiles().size())); |
| 845 } | 845 } |
| 846 | 846 |
| 847 } // namespace autofill | 847 } // namespace autofill |
| OLD | NEW |