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 "content/public/test/content_test_suite_base.h" | 5 #include "content/public/test/content_test_suite_base.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/metrics/statistics_recorder.h" | 10 #include "base/metrics/statistics_recorder.h" |
11 #include "base/test/test_suite.h" | 11 #include "base/test/test_suite.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/browser/gpu/gpu_process_host.h" | 14 #include "content/browser/gpu/gpu_main_thread_factory.h" |
15 #include "content/browser/renderer_host/render_process_host_impl.h" | 15 #include "content/browser/renderer_host/render_process_host_impl.h" |
16 #include "content/browser/utility_process_host_impl.h" | 16 #include "content/browser/utility_process_host_impl.h" |
17 #include "content/common/url_schemes.h" | 17 #include "content/common/url_schemes.h" |
18 #include "content/gpu/in_process_gpu_thread.h" | 18 #include "content/gpu/in_process_gpu_thread.h" |
19 #include "content/public/common/content_client.h" | 19 #include "content/public/common/content_client.h" |
20 #include "content/renderer/in_process_renderer_thread.h" | 20 #include "content/renderer/in_process_renderer_thread.h" |
21 #include "content/utility/in_process_utility_thread.h" | 21 #include "content/utility/in_process_utility_thread.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "ui/base/material_design/material_design_controller.h" | 23 #include "ui/base/material_design/material_design_controller.h" |
24 #include "ui/base/ui_base_paths.h" | 24 #include "ui/base/ui_base_paths.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 SetContentClient(content_client); | 97 SetContentClient(content_client); |
98 content::RegisterContentSchemes(false); | 98 content::RegisterContentSchemes(false); |
99 SetContentClient(NULL); | 99 SetContentClient(NULL); |
100 } | 100 } |
101 | 101 |
102 void ContentTestSuiteBase::RegisterInProcessThreads() { | 102 void ContentTestSuiteBase::RegisterInProcessThreads() { |
103 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( | 103 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( |
104 CreateInProcessUtilityThread); | 104 CreateInProcessUtilityThread); |
105 RenderProcessHostImpl::RegisterRendererMainThreadFactory( | 105 RenderProcessHostImpl::RegisterRendererMainThreadFactory( |
106 CreateInProcessRendererThread); | 106 CreateInProcessRendererThread); |
107 GpuProcessHost::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); | 107 content::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); |
108 } | 108 } |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
OLD | NEW |