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

Unified Diff: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years 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 | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
diff --git a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
index a5170da86e02d0384a0f989627330e6b520dde8f..e66a16e04ac70e065ad1766851c453ae5a84f8f8 100644
--- a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
+++ b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
@@ -164,9 +164,10 @@ class AndroidStreamReaderURLRequestJobTest : public Test {
stream_reader_delegate.Pass(),
stream_reader.Pass());
// The Interceptor is owned by the |factory_|.
- TestJobInterceptor* interceptor = new TestJobInterceptor;
- interceptor->set_main_intercept_job(test_stream_reader_job);
- factory_.AddInterceptor(interceptor);
+ TestJobInterceptor* protocol_handler = new TestJobInterceptor;
+ protocol_handler->set_main_intercept_job(test_stream_reader_job);
+ bool set_protocol = factory_.SetProtocolHandler("http", protocol_handler);
+ DCHECK(set_protocol);
}
MessageLoop loop_;
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698