| 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. |
| 21 class ViewTestSuite : public base::TestSuite { | 22 class ViewTestSuite : public base::TestSuite { |
| 22 public: | 23 public: |
| 23 ViewTestSuite(int argc, char** argv); | 24 ViewTestSuite(int argc, char** argv); |
| 24 ~ViewTestSuite() override; | 25 ~ViewTestSuite() override; |
| 25 | 26 |
| 26 int RunTests(); | 27 int RunTests(); |
| 28 int RunTestsSerially(); |
| 27 | 29 |
| 28 protected: | 30 protected: |
| 29 // base::TestSuite: | 31 // base::TestSuite: |
| 30 void Initialize() override; | 32 void Initialize() override; |
| 31 void Shutdown() override; | 33 void Shutdown() override; |
| 32 | 34 |
| 33 private: | 35 private: |
| 34 #if defined(USE_AURA) | 36 #if defined(USE_AURA) |
| 35 std::unique_ptr<aura::Env> env_; | 37 std::unique_ptr<aura::Env> env_; |
| 36 #endif | 38 #endif |
| 37 int argc_; | 39 int argc_; |
| 38 char** argv_; | 40 char** argv_; |
| 39 | 41 |
| 40 DISALLOW_COPY_AND_ASSIGN(ViewTestSuite); | 42 DISALLOW_COPY_AND_ASSIGN(ViewTestSuite); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace | 45 } // namespace |
| 44 | 46 |
| 45 #endif // UI_VIEWS_RUN_ALL_UNITTESTS_H_ | 47 #endif // UI_VIEWS_RUN_ALL_UNITTESTS_H_ |
| OLD | NEW |