| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |