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

Side by Side Diff: ui/chromeos/run_all_unittests.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « ui/aura/test/run_all_unittests.cc ('k') | ui/chromeos/touch_exploration_controller_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/base/ui_base_paths.h" 13 #include "ui/base/ui_base_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 namespace { 16 namespace {
17 17
18 class UIChromeOSTestSuite : public base::TestSuite { 18 class UIChromeOSTestSuite : public base::TestSuite {
19 public: 19 public:
20 UIChromeOSTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} 20 UIChromeOSTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
21 ~UIChromeOSTestSuite() override {} 21 ~UIChromeOSTestSuite() override {}
22 22
23 protected: 23 protected:
24 void Initialize() override { 24 void Initialize() override {
25 base::TestSuite::Initialize(); 25 base::TestSuite::Initialize();
26 gfx::GLSurfaceTestSupport::InitializeOneOff(); 26 gl::GLSurfaceTestSupport::InitializeOneOff();
27 ui::RegisterPathProvider(); 27 ui::RegisterPathProvider();
28 28
29 base::FilePath ui_test_pak_path; 29 base::FilePath ui_test_pak_path;
30 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); 30 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
31 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); 31 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
32 } 32 }
33 33
34 void Shutdown() override { 34 void Shutdown() override {
35 ui::ResourceBundle::CleanupSharedInstance(); 35 ui::ResourceBundle::CleanupSharedInstance();
36 base::TestSuite::Shutdown(); 36 base::TestSuite::Shutdown();
37 } 37 }
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(UIChromeOSTestSuite); 40 DISALLOW_COPY_AND_ASSIGN(UIChromeOSTestSuite);
41 }; 41 };
42 42
43 } // namespace 43 } // namespace
44 44
45 int main(int argc, char** argv) { 45 int main(int argc, char** argv) {
46 UIChromeOSTestSuite test_suite(argc, argv); 46 UIChromeOSTestSuite test_suite(argc, argv);
47 47
48 return base::LaunchUnitTests( 48 return base::LaunchUnitTests(
49 argc, 49 argc,
50 argv, 50 argv,
51 base::Bind(&UIChromeOSTestSuite::Run, base::Unretained(&test_suite))); 51 base::Bind(&UIChromeOSTestSuite::Run, base::Unretained(&test_suite)));
52 } 52 }
OLDNEW
« no previous file with comments | « ui/aura/test/run_all_unittests.cc ('k') | ui/chromeos/touch_exploration_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698