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

Side by Side Diff: chrome/test/base/chrome_test_suite.cc

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.h ('k') | chrome/test/base/in_process_browser_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) 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 "chrome/test/base/chrome_test_suite.h" 5 #include "chrome/test/base/chrome_test_suite.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/metrics/stats_table.h" 10 #include "base/metrics/stats_table.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 scoped_ptr<chrome::ChromeContentBrowserClient> browser_content_client_; 144 scoped_ptr<chrome::ChromeContentBrowserClient> browser_content_client_;
145 145
146 scoped_refptr<LocalHostResolverProc> host_resolver_proc_; 146 scoped_refptr<LocalHostResolverProc> host_resolver_proc_;
147 scoped_ptr<net::ScopedDefaultHostResolverProc> scoped_host_resolver_proc_; 147 scoped_ptr<net::ScopedDefaultHostResolverProc> scoped_host_resolver_proc_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(ChromeTestSuiteInitializer); 149 DISALLOW_COPY_AND_ASSIGN(ChromeTestSuiteInitializer);
150 }; 150 };
151 151
152 } // namespace 152 } // namespace
153 153
154 const char ChromeTestSuite::kLaunchAsBrowser[] = "as-browser";
155
154 ChromeTestSuite::ChromeTestSuite(int argc, char** argv) 156 ChromeTestSuite::ChromeTestSuite(int argc, char** argv)
155 : base::TestSuite(argc, argv) { 157 : base::TestSuite(argc, argv) {
156 } 158 }
157 159
158 ChromeTestSuite::~ChromeTestSuite() { 160 ChromeTestSuite::~ChromeTestSuite() {
159 } 161 }
160 162
161 void ChromeTestSuite::Initialize() { 163 void ChromeTestSuite::Initialize() {
162 #if defined(OS_MACOSX) 164 #if defined(OS_MACOSX)
163 base::mac::ScopedNSAutoreleasePool autorelease_pool; 165 base::mac::ScopedNSAutoreleasePool autorelease_pool;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 #if defined(OS_MACOSX) 219 #if defined(OS_MACOSX)
218 base::mac::SetOverrideFrameworkBundle(NULL); 220 base::mac::SetOverrideFrameworkBundle(NULL);
219 #endif 221 #endif
220 222
221 base::StatsTable::set_current(NULL); 223 base::StatsTable::set_current(NULL);
222 stats_table_.reset(); 224 stats_table_.reset();
223 RemoveSharedMemoryFile(stats_filename_); 225 RemoveSharedMemoryFile(stats_filename_);
224 226
225 base::TestSuite::Shutdown(); 227 base::TestSuite::Shutdown();
226 } 228 }
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_test_suite.h ('k') | chrome/test/base/in_process_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698