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

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

Issue 1867873002: Move unittests in content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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/test/BUILD.gn ('k') | content/test/gpu/generate_buildbot_json.py » ('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/test/content_test_suite.h" 5 #include "content/test/content_test_suite.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 11 matching lines...) Expand all
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "ui/display/win/dpi.h" 23 #include "ui/display/win/dpi.h"
24 #endif 24 #endif
25 25
26 #if defined(OS_MACOSX) 26 #if defined(OS_MACOSX)
27 #include "base/mac/scoped_nsautorelease_pool.h" 27 #include "base/mac/scoped_nsautorelease_pool.h"
28 #include "base/test/mock_chrome_application_mac.h" 28 #include "base/test/mock_chrome_application_mac.h"
29 #endif 29 #endif
30 30
31 #if defined(OS_ANDROID) 31 #if defined(OS_ANDROID)
32 #include "content/browser/android/in_process_surface_texture_manager.h" 32 #include "content/browser/media/android/browser_media_player_manager.h"
33 #include "gpu/ipc/client/android/in_process_surface_texture_manager.h"
33 #endif 34 #endif
34 35
35 namespace content { 36 namespace content {
36 namespace { 37 namespace {
37 38
38 class TestInitializationListener : public testing::EmptyTestEventListener { 39 class TestInitializationListener : public testing::EmptyTestEventListener {
39 public: 40 public:
40 TestInitializationListener() : test_content_client_initializer_(NULL) { 41 TestInitializationListener() : test_content_client_initializer_(NULL) {
41 } 42 }
42 43
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 gpu::CollectBasicGraphicsInfo(&gpu_info); 91 gpu::CollectBasicGraphicsInfo(&gpu_info);
91 gpu::ApplyGpuDriverBugWorkarounds(gpu_info, 92 gpu::ApplyGpuDriverBugWorkarounds(gpu_info,
92 base::CommandLine::ForCurrentProcess()); 93 base::CommandLine::ForCurrentProcess());
93 gfx::GLSurfaceTestSupport::InitializeOneOff(); 94 gfx::GLSurfaceTestSupport::InitializeOneOff();
94 } 95 }
95 testing::TestEventListeners& listeners = 96 testing::TestEventListeners& listeners =
96 testing::UnitTest::GetInstance()->listeners(); 97 testing::UnitTest::GetInstance()->listeners();
97 listeners.Append(new TestInitializationListener); 98 listeners.Append(new TestInitializationListener);
98 #if defined(OS_ANDROID) 99 #if defined(OS_ANDROID)
99 gpu::SurfaceTextureManager::SetInstance( 100 gpu::SurfaceTextureManager::SetInstance(
100 InProcessSurfaceTextureManager::GetInstance()); 101 gpu::InProcessSurfaceTextureManager::GetInstance());
102 content::BrowserMediaPlayerManager::InitSurfaceTexturePeer();
101 #endif 103 #endif
102 } 104 }
103 105
104 } // namespace content 106 } // namespace content
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/gpu/generate_buildbot_json.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698