OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "build/build_config.h" |
12 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
13 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 14 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
14 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
15 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 class BrowserProcessImplTest : public ::testing::Test { | 19 class BrowserProcessImplTest : public ::testing::Test { |
19 protected: | 20 protected: |
20 BrowserProcessImplTest() | 21 BrowserProcessImplTest() |
21 : stashed_browser_process_(g_browser_process), | 22 : stashed_browser_process_(g_browser_process), |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Pass ownership to the ProfileManager so that it manages the destruction. | 92 // Pass ownership to the ProfileManager so that it manages the destruction. |
92 browser_process_impl()->profile_manager()->RegisterTestingProfile( | 93 browser_process_impl()->profile_manager()->RegisterTestingProfile( |
93 profile.release(), false, false); | 94 profile.release(), false, false); |
94 | 95 |
95 // Tear down the BrowserProcessImpl and the threads. | 96 // Tear down the BrowserProcessImpl and the threads. |
96 browser_process_impl()->StartTearDown(); | 97 browser_process_impl()->StartTearDown(); |
97 DestroySecondaryThreads(); | 98 DestroySecondaryThreads(); |
98 browser_process_impl()->PostDestroyThreads(); | 99 browser_process_impl()->PostDestroyThreads(); |
99 } | 100 } |
100 #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 101 #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
OLD | NEW |