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

Side by Side Diff: ui/aura_shell/test_suite.cc

Issue 8404041: Revert 107563 - Fix up compositor mocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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_shell/aura_shell.gyp ('k') | ui/gfx/compositor/compositor.gyp » ('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_shell/test_suite.h" 5 #include "ui/aura_shell/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/gfx_paths.h" 13 #include "ui/gfx/gfx_paths.h"
14 #include "ui/gfx/test/gfx_test_utils.h"
15 14
16 AuraShellTestSuite::AuraShellTestSuite(int argc, char** argv) 15 AuraShellTestSuite::AuraShellTestSuite(int argc, char** argv)
17 : TestSuite(argc, argv) {} 16 : TestSuite(argc, argv) {}
18 17
19 void AuraShellTestSuite::Initialize() { 18 void AuraShellTestSuite::Initialize() {
20 base::TestSuite::Initialize(); 19 base::TestSuite::Initialize();
21 20
22 gfx::RegisterPathProvider(); 21 gfx::RegisterPathProvider();
23 ui::RegisterPathProvider(); 22 ui::RegisterPathProvider();
24 23
25 // Force unittests to run using en-US so if we test against string 24 // Force unittests to run using en-US so if we test against string
26 // output, it'll pass regardless of the system language. 25 // output, it'll pass regardless of the system language.
27 ui::ResourceBundle::InitSharedInstance("en-US"); 26 ui::ResourceBundle::InitSharedInstance("en-US");
28 ui::CompositorTestSupport::Initialize(); 27 ui::CompositorTestSupport::Initialize();
29 ui::gfx_test_utils::SetupTestCompositor(); 28 ui::CompositorTestSupport::SetupMockCompositor();
30 } 29 }
31 30
32 void AuraShellTestSuite::Shutdown() { 31 void AuraShellTestSuite::Shutdown() {
33 ui::CompositorTestSupport::Terminate(); 32 ui::CompositorTestSupport::Terminate();
34 ui::ResourceBundle::CleanupSharedInstance(); 33 ui::ResourceBundle::CleanupSharedInstance();
35 34
36 base::TestSuite::Shutdown(); 35 base::TestSuite::Shutdown();
37 } 36 }
OLDNEW
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/gfx/compositor/compositor.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698