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

Side by Side Diff: content/public/test/content_test_suite_base.cc

Issue 1845343005: Makes MaterialDesignController initialization explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 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
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/public/test/test_renderer_host.cc » ('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 "content/public/test/content_test_suite_base.h" 5 #include "content/public/test/content_test_suite_base.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.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/browser_thread_impl.h" 14 #include "content/browser/browser_thread_impl.h"
15 #include "content/browser/gpu/gpu_process_host.h" 15 #include "content/browser/gpu/gpu_process_host.h"
16 #include "content/browser/renderer_host/render_process_host_impl.h" 16 #include "content/browser/renderer_host/render_process_host_impl.h"
17 #include "content/browser/utility_process_host_impl.h" 17 #include "content/browser/utility_process_host_impl.h"
18 #include "content/common/url_schemes.h" 18 #include "content/common/url_schemes.h"
19 #include "content/gpu/in_process_gpu_thread.h" 19 #include "content/gpu/in_process_gpu_thread.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/renderer/in_process_renderer_thread.h" 21 #include "content/renderer/in_process_renderer_thread.h"
22 #include "content/utility/in_process_utility_thread.h" 22 #include "content/utility/in_process_utility_thread.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "ui/base/material_design/material_design_controller.h"
24 #include "ui/base/ui_base_paths.h" 25 #include "ui/base/ui_base_paths.h"
25 26
26 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) 27 #if defined(V8_USE_EXTERNAL_STARTUP_DATA)
27 #include "gin/v8_initializer.h" 28 #include "gin/v8_initializer.h"
28 #endif 29 #endif
29 30
30 #if defined(OS_ANDROID) 31 #if defined(OS_ANDROID)
31 #include "base/android/jni_android.h" 32 #include "base/android/jni_android.h"
32 #include "content/browser/android/browser_jni_registrar.h" 33 #include "content/browser/android/browser_jni_registrar.h"
33 #include "content/common/android/common_jni_registrar.h" 34 #include "content/common/android/common_jni_registrar.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 content::Compositor::Initialize(); 100 content::Compositor::Initialize();
100 #endif 101 #endif
101 #endif 102 #endif
102 103
103 #if defined(USE_OZONE) 104 #if defined(USE_OZONE)
104 ui::OzonePlatform::InitializeForUI(); 105 ui::OzonePlatform::InitializeForUI();
105 #endif 106 #endif
106 107
107 testing::UnitTest::GetInstance()->listeners().Append( 108 testing::UnitTest::GetInstance()->listeners().Append(
108 new ContentTestSuiteBaseListener); 109 new ContentTestSuiteBaseListener);
110 ui::MaterialDesignController::Initialize();
109 } 111 }
110 112
111 void ContentTestSuiteBase::RegisterContentSchemes( 113 void ContentTestSuiteBase::RegisterContentSchemes(
112 ContentClient* content_client) { 114 ContentClient* content_client) {
113 SetContentClient(content_client); 115 SetContentClient(content_client);
114 content::RegisterContentSchemes(false); 116 content::RegisterContentSchemes(false);
115 SetContentClient(NULL); 117 SetContentClient(NULL);
116 } 118 }
117 119
118 void ContentTestSuiteBase::RegisterInProcessThreads() { 120 void ContentTestSuiteBase::RegisterInProcessThreads() {
119 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( 121 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory(
120 CreateInProcessUtilityThread); 122 CreateInProcessUtilityThread);
121 RenderProcessHostImpl::RegisterRendererMainThreadFactory( 123 RenderProcessHostImpl::RegisterRendererMainThreadFactory(
122 CreateInProcessRendererThread); 124 CreateInProcessRendererThread);
123 GpuProcessHost::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); 125 GpuProcessHost::RegisterGpuMainThreadFactory(CreateInProcessGpuThread);
124 } 126 }
125 127
126 } // namespace content 128 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698