Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: ios/web/test/web_test_suite.h

Issue 2037763002: [ios] Cleanup resource bundle in WebTestSuite::Shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/test/web_test_suite.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | ios/web/test/web_test_suite.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698