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

Side by Side Diff: trunk/src/ash/test/test_suite.cc

Issue 15838015: Revert 202787 "Remove unnecessary ui::CompositorTestSupport" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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
OLDNEW
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 "ash/test/test_suite.h" 5 #include "ash/test/test_suite.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/base/ui_base_paths.h" 14 #include "ui/base/ui_base_paths.h"
15 #include "ui/compositor/compositor_setup.h" 15 #include "ui/compositor/compositor_setup.h"
16 #include "ui/compositor/test/compositor_test_support.h"
16 #include "ui/gfx/gfx_paths.h" 17 #include "ui/gfx/gfx_paths.h"
17 18
18 #if defined(OS_MACOSX) 19 #if defined(OS_MACOSX)
19 #include "ash/test/test_suite_init.h" 20 #include "ash/test/test_suite_init.h"
20 #endif 21 #endif
21 22
22 #if defined(OS_WIN) 23 #if defined(OS_WIN)
23 #include "base/win/windows_version.h" 24 #include "base/win/windows_version.h"
24 #include "ui/base/win/atl_module.h" 25 #include "ui/base/win/atl_module.h"
25 #include "win8/test/metro_registration_helper.h" 26 #include "win8/test/metro_registration_helper.h"
(...skipping 22 matching lines...) Expand all
48 gfx::RegisterPathProvider(); 49 gfx::RegisterPathProvider();
49 ui::RegisterPathProvider(); 50 ui::RegisterPathProvider();
50 51
51 #if defined(OS_MACOSX) 52 #if defined(OS_MACOSX)
52 ash::test::OverrideFrameworkBundle(); 53 ash::test::OverrideFrameworkBundle();
53 #endif 54 #endif
54 55
55 // Force unittests to run using en-US so if we test against string 56 // Force unittests to run using en-US so if we test against string
56 // output, it'll pass regardless of the system language. 57 // output, it'll pass regardless of the system language.
57 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 58 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
59 ui::CompositorTestSupport::Initialize();
58 ui::SetupTestCompositor(); 60 ui::SetupTestCompositor();
59 } 61 }
60 62
61 void AuraShellTestSuite::Shutdown() { 63 void AuraShellTestSuite::Shutdown() {
64 ui::CompositorTestSupport::Terminate();
62 ui::ResourceBundle::CleanupSharedInstance(); 65 ui::ResourceBundle::CleanupSharedInstance();
63 #if defined(OS_WIN) 66 #if defined(OS_WIN)
64 com_initializer_.reset(); 67 com_initializer_.reset();
65 #endif 68 #endif
66 base::TestSuite::Shutdown(); 69 base::TestSuite::Shutdown();
67 } 70 }
68 71
69 } // namespace test 72 } // namespace test
70 } // namespace ash 73 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698