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 "ios/web/public/test/web_test_suite.h" |
Eugene But (OOO till 7-30)
2016/06/24 03:47:15
I will delete it tomorrow, once downstream code is
| |
9 #include "base/test/test_suite.h" | |
10 #include "ios/web/public/test/scoped_testing_web_client.h" | |
11 | |
12 namespace web { | |
13 | |
14 class WebTestSuite : public base::TestSuite { | |
15 public: | |
16 WebTestSuite(int argc, char** argv); | |
17 ~WebTestSuite() override; | |
18 | |
19 protected: | |
20 // base::TestSuite overrides. | |
21 void Initialize() override; | |
22 void Shutdown() override; | |
23 | |
24 private: | |
25 // Sets web client on construction and restores the original on destruction. | |
26 ScopedTestingWebClient web_client_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(WebTestSuite); | |
29 }; | |
30 | |
31 } // namespace web | |
32 | 9 |
33 #endif // IOS_WEB_TEST_WEB_TEST_SUITE_H_ | 10 #endif // IOS_WEB_TEST_WEB_TEST_SUITE_H_ |
OLD | NEW |