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

Unified Diff: ios/web/test/web_test_suite.h

Issue 1972903003: [ios] Register test web schemes in WebTestSuite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments to |web_client_|. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/test/web_test.mm ('k') | ios/web/test/web_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_test_suite.h
diff --git a/ios/web/test/web_test_suite.h b/ios/web/test/web_test_suite.h
index 738ca4e060f4c97def5e3a7f928fd43bcefbda25..ceac3621d51aac2163f36bfa2f361fdc7e806800 100644
--- a/ios/web/test/web_test_suite.h
+++ b/ios/web/test/web_test_suite.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/test/test_suite.h"
+#include "ios/web/public/test/scoped_testing_web_client.h"
namespace web {
@@ -19,6 +20,8 @@ class WebTestSuite : public base::TestSuite {
void Initialize() override;
private:
+ // Sets web client on construction and restores the original on destruction.
+ ScopedTestingWebClient web_client_;
DISALLOW_COPY_AND_ASSIGN(WebTestSuite);
};
« no previous file with comments | « ios/web/test/web_test.mm ('k') | ios/web/test/web_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698