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

Side by Side Diff: content/test/browser_test_base.cc

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_main_delegate.cc ('k') | content/test/render_view_test.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/test/browser_test_base.h" 5 #include "content/test/browser_test_base.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "content/common/main_function_params.h" 9 #include "content/public/common/main_function_params.h"
10 #include "sandbox/src/dep.h" 10 #include "sandbox/src/dep.h"
11 11
12 #if defined(OS_MACOSX) 12 #if defined(OS_MACOSX)
13 #include "base/mac/mac_util.h" 13 #include "base/mac/mac_util.h"
14 #include "base/system_monitor/system_monitor.h" 14 #include "base/system_monitor/system_monitor.h"
15 #endif 15 #endif
16 16
17 extern int BrowserMain(const MainFunctionParams&); 17 extern int BrowserMain(const content::MainFunctionParams&);
18 18
19 BrowserTestBase::BrowserTestBase() { 19 BrowserTestBase::BrowserTestBase() {
20 #if defined(OS_MACOSX) 20 #if defined(OS_MACOSX)
21 base::mac::SetOverrideAmIBundled(true); 21 base::mac::SetOverrideAmIBundled(true);
22 base::SystemMonitor::AllocateSystemIOPorts(); 22 base::SystemMonitor::AllocateSystemIOPorts();
23 #endif 23 #endif
24 } 24 }
25 25
26 BrowserTestBase::~BrowserTestBase() { 26 BrowserTestBase::~BrowserTestBase() {
27 } 27 }
28 28
29 void BrowserTestBase::SetUp() { 29 void BrowserTestBase::SetUp() {
30 MainFunctionParams params(*CommandLine::ForCurrentProcess()); 30 content::MainFunctionParams params(*CommandLine::ForCurrentProcess());
31 params.ui_task = 31 params.ui_task =
32 NewRunnableMethod(this, &BrowserTestBase::ProxyRunTestOnMainThreadLoop); 32 NewRunnableMethod(this, &BrowserTestBase::ProxyRunTestOnMainThreadLoop);
33 33
34 SetUpInProcessBrowserTestFixture(); 34 SetUpInProcessBrowserTestFixture();
35 BrowserMain(params); 35 BrowserMain(params);
36 TearDownInProcessBrowserTestFixture(); 36 TearDownInProcessBrowserTestFixture();
37 } 37 }
38 38
39 void BrowserTestBase::TearDown() { 39 void BrowserTestBase::TearDown() {
40 } 40 }
41 41
42 void BrowserTestBase::ProxyRunTestOnMainThreadLoop() { 42 void BrowserTestBase::ProxyRunTestOnMainThreadLoop() {
43 RunTestOnMainThreadLoop(); 43 RunTestOnMainThreadLoop();
44 } 44 }
OLDNEW
« no previous file with comments | « content/shell/shell_main_delegate.cc ('k') | content/test/render_view_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698