| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/unit/chrome_test_suite.h" | 5 #include "chrome/test/unit/chrome_test_suite.h" |
| 6 | 6 |
| 7 #include "app/app_paths.h" | 7 #include "app/app_paths.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
| 11 #include "base/metrics/stats_table.h" | 11 #include "base/metrics/stats_table.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/chrome_switches.h" | |
| 18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/test/testing_browser_process.h" | 18 #include "chrome/test/testing_browser_process.h" |
| 20 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 21 | 20 |
| 22 #if defined(OS_MACOSX) | 21 #if defined(OS_MACOSX) |
| 23 #include "base/mac/mac_util.h" | 22 #include "base/mac/mac_util.h" |
| 24 #endif | 23 #endif |
| 25 | 24 |
| 26 #if defined(OS_POSIX) | 25 #if defined(OS_POSIX) |
| 27 #include "base/shared_memory.h" | 26 #include "base/shared_memory.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 delete g_browser_process; | 133 delete g_browser_process; |
| 135 g_browser_process = NULL; | 134 g_browser_process = NULL; |
| 136 | 135 |
| 137 // Tear down shared StatsTable; prevents unit_tests from leaking it. | 136 // Tear down shared StatsTable; prevents unit_tests from leaking it. |
| 138 base::StatsTable::set_current(NULL); | 137 base::StatsTable::set_current(NULL); |
| 139 delete stats_table_; | 138 delete stats_table_; |
| 140 RemoveSharedMemoryFile(stats_filename_); | 139 RemoveSharedMemoryFile(stats_filename_); |
| 141 | 140 |
| 142 base::TestSuite::Shutdown(); | 141 base::TestSuite::Shutdown(); |
| 143 } | 142 } |
| OLD | NEW |