| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_WEB_TEST_WEB_TEST_SUITE_H_ | 5 #ifndef IOS_WEB_TEST_WEB_TEST_SUITE_H_ |
| 6 #define IOS_WEB_TEST_WEB_TEST_SUITE_H_ | 6 #define IOS_WEB_TEST_WEB_TEST_SUITE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/test/test_suite.h" | 9 #include "base/test/test_suite.h" |
| 10 #include "ios/web/public/test/scoped_testing_web_client.h" | 10 #include "ios/web/public/test/scoped_testing_web_client.h" |
| 11 | 11 |
| 12 namespace web { | 12 namespace web { |
| 13 | 13 |
| 14 class WebTestSuite : public base::TestSuite { | 14 class WebTestSuite : public base::TestSuite { |
| 15 public: | 15 public: |
| 16 WebTestSuite(int argc, char** argv); | 16 WebTestSuite(int argc, char** argv); |
| 17 ~WebTestSuite() override; | 17 ~WebTestSuite() override; |
| 18 | 18 |
| 19 protected: | 19 protected: |
| 20 // base::TestSuite overrides. |
| 20 void Initialize() override; | 21 void Initialize() override; |
| 22 void Shutdown() override; |
| 21 | 23 |
| 22 private: | 24 private: |
| 23 // Sets web client on construction and restores the original on destruction. | 25 // Sets web client on construction and restores the original on destruction. |
| 24 ScopedTestingWebClient web_client_; | 26 ScopedTestingWebClient web_client_; |
| 25 | 27 |
| 26 DISALLOW_COPY_AND_ASSIGN(WebTestSuite); | 28 DISALLOW_COPY_AND_ASSIGN(WebTestSuite); |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace web | 31 } // namespace web |
| 30 | 32 |
| 31 #endif // IOS_WEB_TEST_WEB_TEST_SUITE_H_ | 33 #endif // IOS_WEB_TEST_WEB_TEST_SUITE_H_ |
| OLD | NEW |