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

Side by Side Diff: content/test/content_test_suite.cc

Issue 1141703002: Chromium changes for static linking ffmpeg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Roll DEPS to fix cros, rebase. Created 5 years, 6 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
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/test/content_test_suite.h" 5 #include "content/test/content_test_suite.h"
6 6
7 #if defined(OS_ANDROID) 7 #if defined(OS_ANDROID)
8 #include <android/native_window.h> 8 #include <android/native_window.h>
9 #include <android/native_window_jni.h> 9 #include <android/native_window_jni.h>
10 #endif 10 #endif
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 gfx::InitDeviceScaleFactor(1.0f); 146 gfx::InitDeviceScaleFactor(1.0f);
147 #endif 147 #endif
148 148
149 ContentTestSuiteBase::Initialize(); 149 ContentTestSuiteBase::Initialize();
150 { 150 {
151 ContentClient client; 151 ContentClient client;
152 ContentTestSuiteBase::RegisterContentSchemes(&client); 152 ContentTestSuiteBase::RegisterContentSchemes(&client);
153 } 153 }
154 RegisterPathProvider(); 154 RegisterPathProvider();
155 #if !defined(OS_IOS) 155 #if !defined(OS_IOS)
156 media::InitializeMediaLibraryForTesting(); 156 media::InitializeMediaLibrary();
157 // When running in a child process for Mac sandbox tests, the sandbox exists 157 // When running in a child process for Mac sandbox tests, the sandbox exists
158 // to initialize GL, so don't do it here. 158 // to initialize GL, so don't do it here.
159 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( 159 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
160 switches::kTestChildProcess)) { 160 switches::kTestChildProcess)) {
161 gfx::GLSurface::InitializeOneOffForTests(); 161 gfx::GLSurface::InitializeOneOffForTests();
162 gpu::ApplyGpuDriverBugWorkarounds(base::CommandLine::ForCurrentProcess()); 162 gpu::ApplyGpuDriverBugWorkarounds(base::CommandLine::ForCurrentProcess());
163 } 163 }
164 #endif 164 #endif
165 testing::TestEventListeners& listeners = 165 testing::TestEventListeners& listeners =
166 testing::UnitTest::GetInstance()->listeners(); 166 testing::UnitTest::GetInstance()->listeners();
167 listeners.Append(new TestInitializationListener); 167 listeners.Append(new TestInitializationListener);
168 #if defined(OS_ANDROID) 168 #if defined(OS_ANDROID)
169 SurfaceTextureManager::SetInstance(new TestSurfaceTextureManager); 169 SurfaceTextureManager::SetInstance(new TestSurfaceTextureManager);
170 #endif 170 #endif
171 #if defined(OS_MACOSX) && !defined(OS_IOS) 171 #if defined(OS_MACOSX) && !defined(OS_IOS)
172 IOSurfaceManager::SetInstance(new TestIOSurfaceManager); 172 IOSurfaceManager::SetInstance(new TestIOSurfaceManager);
173 #endif 173 #endif
174 } 174 }
175 175
176 } // namespace content 176 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698