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

Side by Side Diff: ui/app_list/test/run_all_unittests.cc

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_background.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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.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 14
15 #if !defined(OS_MACOSX) 15 #if !defined(OS_MACOSX)
16 #include "ui/gl/gl_surface.h" 16 #include "ui/gl/gl_surface.h"
17 #endif 17 #endif
18 18
19 namespace { 19 namespace {
20 20
21 class AppListTestSuite : public base::TestSuite { 21 class AppListTestSuite : public base::TestSuite {
22 public: 22 public:
23 AppListTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} 23 AppListTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
24 24
25 protected: 25 protected:
26 virtual void Initialize() OVERRIDE { 26 virtual void Initialize() override {
27 #if !defined(OS_MACOSX) 27 #if !defined(OS_MACOSX)
28 gfx::GLSurface::InitializeOneOffForTests(); 28 gfx::GLSurface::InitializeOneOffForTests();
29 #endif 29 #endif
30 base::TestSuite::Initialize(); 30 base::TestSuite::Initialize();
31 ui::RegisterPathProvider(); 31 ui::RegisterPathProvider();
32 32
33 base::FilePath ui_test_pak_path; 33 base::FilePath ui_test_pak_path;
34 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); 34 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
35 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); 35 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
36 } 36 }
37 37
38 virtual void Shutdown() OVERRIDE { 38 virtual void Shutdown() override {
39 ui::ResourceBundle::CleanupSharedInstance(); 39 ui::ResourceBundle::CleanupSharedInstance();
40 base::TestSuite::Shutdown(); 40 base::TestSuite::Shutdown();
41 } 41 }
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(AppListTestSuite); 44 DISALLOW_COPY_AND_ASSIGN(AppListTestSuite);
45 }; 45 };
46 46
47 } // namespace 47 } // namespace
48 48
49 int main(int argc, char** argv) { 49 int main(int argc, char** argv) {
50 AppListTestSuite test_suite(argc, argv); 50 AppListTestSuite test_suite(argc, argv);
51 51
52 return base::LaunchUnitTests( 52 return base::LaunchUnitTests(
53 argc, 53 argc,
54 argv, 54 argv,
55 base::Bind(&AppListTestSuite::Run, base::Unretained(&test_suite))); 55 base::Bind(&AppListTestSuite::Run, base::Unretained(&test_suite)));
56 } 56 }
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_background.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698