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

Side by Side Diff: chrome/browser/autofill/autofill_browsertest.cc

Issue 1409163006: Migrating tests to use EmbeddedTestServer (/chrome/browser misc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 (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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/apps/guest_view/web_view_browsertest.cc ('k') | chrome/browser/autofill/autofill_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698