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

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

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_suite.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_test_suite.mm
diff --git a/ios/web/test/web_test_suite.cc b/ios/web/test/web_test_suite.mm
similarity index 80%
rename from ios/web/test/web_test_suite.cc
rename to ios/web/test/web_test_suite.mm
index ec72565024b87a8d2dc14b450f73acb198b1fbea..e167e98f9ef66916f9ec61b90b4f983bfc4c514c 100644
--- a/ios/web/test/web_test_suite.cc
+++ b/ios/web/test/web_test_suite.mm
@@ -5,7 +5,10 @@
#include "ios/web/test/web_test_suite.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/statistics_recorder.h"
+#import "ios/web/public/test/test_web_client.h"
+#include "ios/web/public/url_schemes.h"
#include "ios/web/web_thread_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -23,11 +26,10 @@ class WebTestSuiteListener : public testing::EmptyTestEventListener {
};
WebTestSuite::WebTestSuite(int argc, char** argv)
- : base::TestSuite(argc, argv) {
-}
+ : base::TestSuite(argc, argv),
+ web_client_(base::WrapUnique(new TestWebClient)) {}
-WebTestSuite::~WebTestSuite() {
-}
+WebTestSuite::~WebTestSuite() {}
void WebTestSuite::Initialize() {
base::TestSuite::Initialize();
@@ -39,6 +41,8 @@ void WebTestSuite::Initialize() {
testing::UnitTest::GetInstance()->listeners().Append(
new WebTestSuiteListener);
+
+ RegisterWebSchemes(false);
}
} // namespace web
« no previous file with comments | « ios/web/test/web_test_suite.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698