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

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

Issue 366813007: Removed InProcessBrowserTest::CleanUpOnMainThread() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed superfluous override. Created 6 years, 5 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 | Annotate | Revision Log
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/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 class AutofillTest : public InProcessBrowserTest { 114 class AutofillTest : public InProcessBrowserTest {
115 protected: 115 protected:
116 AutofillTest() {} 116 AutofillTest() {}
117 117
118 virtual void SetUpOnMainThread() OVERRIDE { 118 virtual void SetUpOnMainThread() OVERRIDE {
119 // Don't want Keychain coming up on Mac. 119 // Don't want Keychain coming up on Mac.
120 test::DisableSystemServices(browser()->profile()->GetPrefs()); 120 test::DisableSystemServices(browser()->profile()->GetPrefs());
121 } 121 }
122 122
123 virtual void CleanUpOnMainThread() OVERRIDE { 123 virtual void TearDownOnMainThread() OVERRIDE {
124 // Make sure to close any showing popups prior to tearing down the UI. 124 // Make sure to close any showing popups prior to tearing down the UI.
125 content::WebContents* web_contents = 125 content::WebContents* web_contents =
126 browser()->tab_strip_model()->GetActiveWebContents(); 126 browser()->tab_strip_model()->GetActiveWebContents();
127 AutofillManager* autofill_manager = ContentAutofillDriver::FromWebContents( 127 AutofillManager* autofill_manager = ContentAutofillDriver::FromWebContents(
128 web_contents)->autofill_manager(); 128 web_contents)->autofill_manager();
129 autofill_manager->client()->HideAutofillPopup(); 129 autofill_manager->client()->HideAutofillPopup();
130 } 130 }
131 131
132 PersonalDataManager* personal_data_manager() { 132 PersonalDataManager* personal_data_manager() {
133 return PersonalDataManagerFactory::GetForProfile(browser()->profile()); 133 return PersonalDataManagerFactory::GetForProfile(browser()->profile());
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 IN_PROC_BROWSER_TEST_F(AutofillTest, 804 IN_PROC_BROWSER_TEST_F(AutofillTest,
805 DISABLED_MergeAggregatedDuplicatedProfiles) { 805 DISABLED_MergeAggregatedDuplicatedProfiles) {
806 int num_of_profiles = 806 int num_of_profiles =
807 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt"); 807 AggregateProfilesIntoAutofillPrefs("dataset_duplicated_profiles.txt");
808 808
809 ASSERT_GT(num_of_profiles, 809 ASSERT_GT(num_of_profiles,
810 static_cast<int>(personal_data_manager()->GetProfiles().size())); 810 static_cast<int>(personal_data_manager()->GetProfiles().size()));
811 } 811 }
812 812
813 } // namespace autofill 813 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider_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