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

Side by Side Diff: ui/message_center/test/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, 7 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/keyboard/test/run_all_unittests.cc ('k') | ui/ozone/demo/gl_renderer.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 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_discardable_memory_allocator.h" 10 #include "base/test/test_discardable_memory_allocator.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class MessageCenterTestSuite : public base::TestSuite { 25 class MessageCenterTestSuite : public base::TestSuite {
26 public: 26 public:
27 MessageCenterTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} 27 MessageCenterTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
28 28
29 protected: 29 protected:
30 void Initialize() override { 30 void Initialize() override {
31 #if defined(OS_MACOSX) 31 #if defined(OS_MACOSX)
32 mock_cr_app::RegisterMockCrApp(); 32 mock_cr_app::RegisterMockCrApp();
33 #else 33 #else
34 gfx::GLSurfaceTestSupport::InitializeOneOff(); 34 gl::GLSurfaceTestSupport::InitializeOneOff();
35 #endif 35 #endif
36 base::TestSuite::Initialize(); 36 base::TestSuite::Initialize();
37 ui::RegisterPathProvider(); 37 ui::RegisterPathProvider();
38 38
39 base::FilePath ui_test_pak_path; 39 base::FilePath ui_test_pak_path;
40 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); 40 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
41 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); 41 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
42 42
43 base::DiscardableMemoryAllocator::SetInstance( 43 base::DiscardableMemoryAllocator::SetInstance(
44 &discardable_memory_allocator_); 44 &discardable_memory_allocator_);
(...skipping 13 matching lines...) Expand all
58 } // namespace 58 } // namespace
59 59
60 int main(int argc, char** argv) { 60 int main(int argc, char** argv) {
61 MessageCenterTestSuite test_suite(argc, argv); 61 MessageCenterTestSuite test_suite(argc, argv);
62 62
63 return base::LaunchUnitTests( 63 return base::LaunchUnitTests(
64 argc, 64 argc,
65 argv, 65 argv,
66 base::Bind(&MessageCenterTestSuite::Run, base::Unretained(&test_suite))); 66 base::Bind(&MessageCenterTestSuite::Run, base::Unretained(&test_suite)));
67 } 67 }
OLDNEW
« no previous file with comments | « ui/keyboard/test/run_all_unittests.cc ('k') | ui/ozone/demo/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698