| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_VIEWS_RUN_ALL_UNITTESTS_H_ | 5 #ifndef UI_VIEWS_RUN_ALL_UNITTESTS_H_ |
| 6 #define UI_VIEWS_RUN_ALL_UNITTESTS_H_ | 6 #define UI_VIEWS_RUN_ALL_UNITTESTS_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/test/test_suite.h" | 9 #include "base/test/test_suite.h" |
| 10 | 10 |
| 11 #if defined(USE_AURA) | 11 #if defined(USE_AURA) |
| 12 #include <memory> | 12 #include <memory> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Env; | 16 class Env; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 | 20 |
| 21 // TODO(jamescook): Rename this to ViewsTestSuite and rename the file to match. | |
| 22 class ViewTestSuite : public base::TestSuite { | 21 class ViewTestSuite : public base::TestSuite { |
| 23 public: | 22 public: |
| 24 ViewTestSuite(int argc, char** argv); | 23 ViewTestSuite(int argc, char** argv); |
| 25 ~ViewTestSuite() override; | 24 ~ViewTestSuite() override; |
| 26 | 25 |
| 27 int RunTests(); | 26 int RunTests(); |
| 28 int RunTestsSerially(); | |
| 29 | 27 |
| 30 protected: | 28 protected: |
| 31 // base::TestSuite: | 29 // base::TestSuite: |
| 32 void Initialize() override; | 30 void Initialize() override; |
| 33 void Shutdown() override; | 31 void Shutdown() override; |
| 34 | 32 |
| 35 private: | 33 private: |
| 36 #if defined(USE_AURA) | 34 #if defined(USE_AURA) |
| 37 std::unique_ptr<aura::Env> env_; | 35 std::unique_ptr<aura::Env> env_; |
| 38 #endif | 36 #endif |
| 39 int argc_; | 37 int argc_; |
| 40 char** argv_; | 38 char** argv_; |
| 41 | 39 |
| 42 DISALLOW_COPY_AND_ASSIGN(ViewTestSuite); | 40 DISALLOW_COPY_AND_ASSIGN(ViewTestSuite); |
| 43 }; | 41 }; |
| 44 | 42 |
| 45 } // namespace | 43 } // namespace |
| 46 | 44 |
| 47 #endif // UI_VIEWS_RUN_ALL_UNITTESTS_H_ | 45 #endif // UI_VIEWS_RUN_ALL_UNITTESTS_H_ |
| OLD | NEW |