| OLD | NEW |
| 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/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/test/launcher/unit_test_launcher.h" | 8 #include "base/test/launcher/unit_test_launcher.h" |
| 9 #include "base/test/test_suite.h" | 9 #include "base/test/test_suite.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 class UIBaseTestSuite : public base::TestSuite { | 30 class UIBaseTestSuite : public base::TestSuite { |
| 31 public: | 31 public: |
| 32 UIBaseTestSuite(int argc, char** argv); | 32 UIBaseTestSuite(int argc, char** argv); |
| 33 | 33 |
| 34 protected: | 34 protected: |
| 35 // base::TestSuite: | 35 // base::TestSuite: |
| 36 virtual void Initialize() OVERRIDE; | 36 virtual void Initialize() override; |
| 37 virtual void Shutdown() OVERRIDE; | 37 virtual void Shutdown() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(UIBaseTestSuite); | 40 DISALLOW_COPY_AND_ASSIGN(UIBaseTestSuite); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 UIBaseTestSuite::UIBaseTestSuite(int argc, char** argv) | 43 UIBaseTestSuite::UIBaseTestSuite(int argc, char** argv) |
| 44 : base::TestSuite(argc, argv) {} | 44 : base::TestSuite(argc, argv) {} |
| 45 | 45 |
| 46 void UIBaseTestSuite::Initialize() { | 46 void UIBaseTestSuite::Initialize() { |
| 47 base::TestSuite::Initialize(); | 47 base::TestSuite::Initialize(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } // namespace | 100 } // namespace |
| 101 | 101 |
| 102 int main(int argc, char** argv) { | 102 int main(int argc, char** argv) { |
| 103 UIBaseTestSuite test_suite(argc, argv); | 103 UIBaseTestSuite test_suite(argc, argv); |
| 104 | 104 |
| 105 return base::LaunchUnitTests(argc, | 105 return base::LaunchUnitTests(argc, |
| 106 argv, | 106 argv, |
| 107 base::Bind(&UIBaseTestSuite::Run, | 107 base::Bind(&UIBaseTestSuite::Run, |
| 108 base::Unretained(&test_suite))); | 108 base::Unretained(&test_suite))); |
| 109 } | 109 } |
| OLD | NEW |