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