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 "ui/compositor/test/test_suite.h" | 5 #include "ui/compositor/test/test_suite.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
11 #include "ui/compositor/compositor_switches.h" | 11 #include "ui/compositor/compositor_switches.h" |
12 #include "ui/compositor/layer.h" | 12 #include "ui/compositor/layer.h" |
13 #include "ui/gfx/gfx_paths.h" | 13 #include "ui/gfx/gfx_paths.h" |
14 #include "ui/gl/test/gl_surface_test_support.h" | 14 #include "ui/gl/test/gl_surface_test_support.h" |
15 | 15 |
16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
17 #include "ui/gfx/win/dpi.h" | 17 #include "ui/display/win/dpi.h" |
18 #endif | 18 #endif |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 CompositorTestSuite::CompositorTestSuite(int argc, char** argv) | 23 CompositorTestSuite::CompositorTestSuite(int argc, char** argv) |
24 : TestSuite(argc, argv) {} | 24 : TestSuite(argc, argv) {} |
25 | 25 |
26 CompositorTestSuite::~CompositorTestSuite() {} | 26 CompositorTestSuite::~CompositorTestSuite() {} |
27 | 27 |
28 void CompositorTestSuite::Initialize() { | 28 void CompositorTestSuite::Initialize() { |
29 base::TestSuite::Initialize(); | 29 base::TestSuite::Initialize(); |
30 gfx::GLSurfaceTestSupport::InitializeOneOff(); | 30 gfx::GLSurfaceTestSupport::InitializeOneOff(); |
31 | 31 |
32 gfx::RegisterPathProvider(); | 32 gfx::RegisterPathProvider(); |
33 | 33 |
34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
35 gfx::SetDefaultDeviceScaleFactor(1.0f); | 35 display::win::SetDefaultDeviceScaleFactor(1.0f); |
36 #endif | 36 #endif |
37 | 37 |
38 message_loop_.reset(new base::MessageLoopForUI); | 38 message_loop_.reset(new base::MessageLoopForUI); |
39 } | 39 } |
40 | 40 |
41 void CompositorTestSuite::Shutdown() { | 41 void CompositorTestSuite::Shutdown() { |
42 message_loop_.reset(); | 42 message_loop_.reset(); |
43 | 43 |
44 base::TestSuite::Shutdown(); | 44 base::TestSuite::Shutdown(); |
45 } | 45 } |
46 | 46 |
47 } // namespace test | 47 } // namespace test |
48 } // namespace ui | 48 } // namespace ui |
OLD | NEW |