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

Side by Side Diff: chrome/test/base/in_process_browser_test.h

Issue 10202005: Convert the session restore ui_tests to browser_tests. I renabled the disabled tests; hopefully the… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the mac test Created 8 years, 8 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
« no previous file with comments | « chrome/test/base/chrome_test_suite.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 5 #ifndef CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 Browser* CreateBrowserForPopup(Profile* profile); 153 Browser* CreateBrowserForPopup(Profile* profile);
154 154
155 // Creates a browser for an application and waits for it to load and shows 155 // Creates a browser for an application and waits for it to load and shows
156 // the browser. 156 // the browser.
157 Browser* CreateBrowserForApp(const std::string& app_name, Profile* profile); 157 Browser* CreateBrowserForApp(const std::string& app_name, Profile* profile);
158 158
159 // Called from the various CreateBrowser methods to add a blank tab, wait for 159 // Called from the various CreateBrowser methods to add a blank tab, wait for
160 // the navigation to complete, and show the browser's window. 160 // the navigation to complete, and show the browser's window.
161 void AddBlankTabAndShow(Browser* browser); 161 void AddBlankTabAndShow(Browser* browser);
162 162
163 #if !defined OS_MACOSX
164 // Return a CommandLine object that is used to relaunch the browser_test bina ry
165 // as a browser process. This function is deliberately not defined on the Mac
166 // because re-using an existing browser process when launching from the comman d
167 // line isn't a concept that we support on the Mac; AppleEvents are the Mac
168 // solution for the same need. Any test based on these functions doesn't apply
169 // to the Mac.
170 CommandLine GetCommandLineForRelaunch();
171 #endif
172
163 // Returns the host resolver being used for the tests. Subclasses might want 173 // Returns the host resolver being used for the tests. Subclasses might want
164 // to configure it inside tests. 174 // to configure it inside tests.
165 net::RuleBasedHostResolverProc* host_resolver() { 175 net::RuleBasedHostResolverProc* host_resolver() {
166 return host_resolver_.get(); 176 return host_resolver_.get();
167 } 177 }
168 178
169 // Sets some test states (see below for comments). Call this in your test 179 // Sets some test states (see below for comments). Call this in your test
170 // constructor. 180 // constructor.
171 void set_show_window(bool show) { show_window_ = show; } 181 void set_show_window(bool show) { show_window_ = show; }
172 void set_initial_window_required(bool flag) { 182 void set_initial_window_required(bool flag) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 #if defined(OS_CHROMEOS) 250 #if defined(OS_CHROMEOS)
241 chromeos::ScopedStubCrosEnabler stub_cros_enabler_; 251 chromeos::ScopedStubCrosEnabler stub_cros_enabler_;
242 #endif // defined(OS_CHROMEOS) 252 #endif // defined(OS_CHROMEOS)
243 253
244 #if defined(OS_MACOSX) 254 #if defined(OS_MACOSX)
245 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; 255 base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
246 #endif // OS_MACOSX 256 #endif // OS_MACOSX
247 }; 257 };
248 258
249 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ 259 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_test_suite.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698