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

Unified Diff: ios/web/public/test/test_browser_state.cc

Issue 1230033005: WKWebView: Added cert verification API to web controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment (s/used/user); Created 5 years, 3 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
Index: ios/web/public/test/test_browser_state.cc
diff --git a/ios/web/public/test/test_browser_state.cc b/ios/web/public/test/test_browser_state.cc
index d001bc3f90ddd3998ccb0da420cd8fc582efcde4..cdb050a2b12318b73be81ec1396a98cba0c4e8ce 100644
--- a/ios/web/public/test/test_browser_state.cc
+++ b/ios/web/public/test/test_browser_state.cc
@@ -15,7 +15,9 @@ namespace {
class TestContextURLRequestContextGetter : public net::URLRequestContextGetter {
public:
TestContextURLRequestContextGetter()
- : null_task_runner_(new base::NullTaskRunner) {}
+ : null_task_runner_(new base::NullTaskRunner) {
+ context_.set_net_log(&net_log_);
+ }
net::URLRequestContext* GetURLRequestContext() override { return &context_; }
@@ -28,6 +30,7 @@ class TestContextURLRequestContextGetter : public net::URLRequestContextGetter {
~TestContextURLRequestContextGetter() override {}
net::TestURLRequestContext context_;
+ net::NetLog net_log_;
scoped_refptr<base::SingleThreadTaskRunner> null_task_runner_;
};
« no previous file with comments | « ios/web/net/crw_cert_verification_controller_unittest.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698