OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/aura/test/test_suite.h" | 5 #include "ui/aura/test/test_suite.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/base/ui_base_paths.h" | 11 #include "ui/base/ui_base_paths.h" |
12 #include "ui/gfx/compositor/compositor_test_support.h" | 12 #include "ui/gfx/compositor/compositor_test_support.h" |
13 #include "ui/gfx/compositor/test_compositor.h" | |
13 #include "ui/gfx/gfx_paths.h" | 14 #include "ui/gfx/gfx_paths.h" |
14 #include "ui/gfx/gl/gl_implementation.h" | 15 #include "ui/gfx/gl/gl_implementation.h" |
15 | 16 |
16 namespace aura { | 17 namespace aura { |
17 namespace test { | 18 namespace test { |
18 | 19 |
19 AuraTestSuite::AuraTestSuite(int argc, char** argv) | 20 AuraTestSuite::AuraTestSuite(int argc, char** argv) |
20 : TestSuite(argc, argv) {} | 21 : TestSuite(argc, argv) {} |
21 | 22 |
22 void AuraTestSuite::Initialize() { | 23 void AuraTestSuite::Initialize() { |
23 base::TestSuite::Initialize(); | 24 base::TestSuite::Initialize(); |
24 | 25 |
25 gfx::RegisterPathProvider(); | 26 gfx::RegisterPathProvider(); |
26 ui::RegisterPathProvider(); | 27 ui::RegisterPathProvider(); |
27 | 28 |
28 // Force unittests to run using en-US so if we test against string | 29 // Force unittests to run using en-US so if we test against string |
29 // output, it'll pass regardless of the system language. | 30 // output, it'll pass regardless of the system language. |
30 ui::ResourceBundle::InitSharedInstance("en-US"); | 31 ui::ResourceBundle::InitSharedInstance("en-US"); |
31 ui::CompositorTestSupport::Initialize(); | 32 ui::CompositorTestSupport::Initialize(); |
32 ui::CompositorTestSupport::SetupMockCompositor(); | 33 ui::TestCompositor::SetupTestCompositor(); |
sky
2011/10/26 15:36:15
It is possible to only have one initialize/setup c
jonathan.backer
2011/10/26 15:58:33
ui::CompositorTestSupport::Initialize() pulls in a
| |
33 } | 34 } |
34 | 35 |
35 void AuraTestSuite::Shutdown() { | 36 void AuraTestSuite::Shutdown() { |
36 ui::CompositorTestSupport::Terminate(); | 37 ui::CompositorTestSupport::Terminate(); |
37 ui::ResourceBundle::CleanupSharedInstance(); | 38 ui::ResourceBundle::CleanupSharedInstance(); |
38 | 39 |
39 base::TestSuite::Shutdown(); | 40 base::TestSuite::Shutdown(); |
40 } | 41 } |
41 | 42 |
42 } // namespace test | 43 } // namespace test |
43 } // namespace aura | 44 } // namespace aura |
OLD | NEW |