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

Side by Side Diff: ui/aura/test/test_suite.cc

Issue 9288053: Remove old (pre-webkit) compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/gfx/compositor/compositor.h » ('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) 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_setup.h"
12 #include "ui/gfx/compositor/test/compositor_test_support.h" 13 #include "ui/gfx/compositor/test/compositor_test_support.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 #if defined(USE_WEBKIT_COMPOSITOR)
17 #include "ui/gfx/compositor/compositor_setup.h"
18 #else
19 #include "ui/gfx/test/gfx_test_utils.h"
20 #endif
21
22 namespace aura { 17 namespace aura {
23 namespace test { 18 namespace test {
24 19
25 AuraTestSuite::AuraTestSuite(int argc, char** argv) 20 AuraTestSuite::AuraTestSuite(int argc, char** argv)
26 : TestSuite(argc, argv) {} 21 : TestSuite(argc, argv) {}
27 22
28 void AuraTestSuite::Initialize() { 23 void AuraTestSuite::Initialize() {
29 base::TestSuite::Initialize(); 24 base::TestSuite::Initialize();
30 25
31 gfx::RegisterPathProvider(); 26 gfx::RegisterPathProvider();
32 ui::RegisterPathProvider(); 27 ui::RegisterPathProvider();
33 28
34 // 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
35 // output, it'll pass regardless of the system language. 30 // output, it'll pass regardless of the system language.
36 ui::ResourceBundle::InitSharedInstance("en-US"); 31 ui::ResourceBundle::InitSharedInstance("en-US");
37 ui::CompositorTestSupport::Initialize(); 32 ui::CompositorTestSupport::Initialize();
38 33
39 #if defined(USE_WEBKIT_COMPOSITOR)
40 ui::SetupTestCompositor(); 34 ui::SetupTestCompositor();
41 #else
42 ui::gfx_test_utils::SetupTestCompositor();
43 #endif
44 } 35 }
45 36
46 void AuraTestSuite::Shutdown() { 37 void AuraTestSuite::Shutdown() {
47 ui::CompositorTestSupport::Terminate(); 38 ui::CompositorTestSupport::Terminate();
48 ui::ResourceBundle::CleanupSharedInstance(); 39 ui::ResourceBundle::CleanupSharedInstance();
49 40
50 base::TestSuite::Shutdown(); 41 base::TestSuite::Shutdown();
51 } 42 }
52 43
53 } // namespace test 44 } // namespace test
54 } // namespace aura 45 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/gfx/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698