| 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 16 matching lines...) Expand all Loading... |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 class UIBaseTestSuite : public base::TestSuite { | 31 class UIBaseTestSuite : public base::TestSuite { |
| 32 public: | 32 public: |
| 33 UIBaseTestSuite(int argc, char** argv); | 33 UIBaseTestSuite(int argc, char** argv); |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 // base::TestSuite: | 36 // base::TestSuite: |
| 37 virtual void Initialize() override; | 37 void Initialize() override; |
| 38 virtual void Shutdown() override; | 38 void Shutdown() override; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(UIBaseTestSuite); | 41 DISALLOW_COPY_AND_ASSIGN(UIBaseTestSuite); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 UIBaseTestSuite::UIBaseTestSuite(int argc, char** argv) | 44 UIBaseTestSuite::UIBaseTestSuite(int argc, char** argv) |
| 45 : base::TestSuite(argc, argv) {} | 45 : base::TestSuite(argc, argv) {} |
| 46 | 46 |
| 47 void UIBaseTestSuite::Initialize() { | 47 void UIBaseTestSuite::Initialize() { |
| 48 base::TestSuite::Initialize(); | 48 base::TestSuite::Initialize(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } // namespace | 103 } // namespace |
| 104 | 104 |
| 105 int main(int argc, char** argv) { | 105 int main(int argc, char** argv) { |
| 106 UIBaseTestSuite test_suite(argc, argv); | 106 UIBaseTestSuite test_suite(argc, argv); |
| 107 | 107 |
| 108 return base::LaunchUnitTests(argc, | 108 return base::LaunchUnitTests(argc, |
| 109 argv, | 109 argv, |
| 110 base::Bind(&UIBaseTestSuite::Run, | 110 base::Bind(&UIBaseTestSuite::Run, |
| 111 base::Unretained(&test_suite))); | 111 base::Unretained(&test_suite))); |
| 112 } | 112 } |
| OLD | NEW |