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/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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
14 #include "content/public/common/content_paths.h" | 14 #include "content/public/common/content_paths.h" |
15 #include "content/public/test/test_content_client_initializer.h" | 15 #include "content/public/test/test_content_client_initializer.h" |
16 #include "gpu/config/gpu_info_collector.h" | 16 #include "gpu/config/gpu_info_collector.h" |
17 #include "gpu/config/gpu_util.h" | 17 #include "gpu/config/gpu_util.h" |
18 #include "media/base/media.h" | 18 #include "media/base/media.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "ui/gl/test/gl_surface_test_support.h" | 20 #include "ui/gl/test/gl_surface_test_support.h" |
21 | 21 |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "ui/gfx/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/android/in_process_surface_texture_manager.h" |
33 #endif | 33 #endif |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ContentTestSuite::~ContentTestSuite() { | 68 ContentTestSuite::~ContentTestSuite() { |
69 } | 69 } |
70 | 70 |
71 void ContentTestSuite::Initialize() { | 71 void ContentTestSuite::Initialize() { |
72 #if defined(OS_MACOSX) | 72 #if defined(OS_MACOSX) |
73 base::mac::ScopedNSAutoreleasePool autorelease_pool; | 73 base::mac::ScopedNSAutoreleasePool autorelease_pool; |
74 mock_cr_app::RegisterMockCrApp(); | 74 mock_cr_app::RegisterMockCrApp(); |
75 #endif | 75 #endif |
76 | 76 |
77 #if defined(OS_WIN) | 77 #if defined(OS_WIN) |
78 gfx::SetDefaultDeviceScaleFactor(1.0f); | 78 display::win::SetDefaultDeviceScaleFactor(1.0f); |
79 #endif | 79 #endif |
80 | 80 |
81 ContentTestSuiteBase::Initialize(); | 81 ContentTestSuiteBase::Initialize(); |
82 { | 82 { |
83 ContentClient client; | 83 ContentClient client; |
84 ContentTestSuiteBase::RegisterContentSchemes(&client); | 84 ContentTestSuiteBase::RegisterContentSchemes(&client); |
85 } | 85 } |
86 RegisterPathProvider(); | 86 RegisterPathProvider(); |
87 media::InitializeMediaLibrary(); | 87 media::InitializeMediaLibrary(); |
88 // When running in a child process for Mac sandbox tests, the sandbox exists | 88 // When running in a child process for Mac sandbox tests, the sandbox exists |
(...skipping 17 matching lines...) Expand all Loading... |
106 #if defined(USE_OZONE) | 106 #if defined(USE_OZONE) |
107 if (!is_child_process) { | 107 if (!is_child_process) { |
108 client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create(); | 108 client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create(); |
109 ui::ClientNativePixmapFactory::SetInstance( | 109 ui::ClientNativePixmapFactory::SetInstance( |
110 client_native_pixmap_factory_.get()); | 110 client_native_pixmap_factory_.get()); |
111 } | 111 } |
112 #endif | 112 #endif |
113 } | 113 } |
114 | 114 |
115 } // namespace content | 115 } // namespace content |
OLD | NEW |