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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 2373003003: Switch to use net::FilterSourceStream from net::Filter (Closed)
Patch Set: rebased onto sdch fix Created 4 years, 2 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 | « net/url_request/url_request_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 5a026d395342b32da3904ca1d8ad46d70eccc2ee..8f82bc897e5e9b77f624b607512c11ed77a036f9 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -194,6 +194,7 @@ TestDelegate::TestDelegate()
certificate_errors_are_fatal_(false),
auth_required_(false),
have_full_request_headers_(false),
+ response_completed_(false),
request_status_(ERR_IO_PENDING),
buf_(new IOBuffer(kBufferSize)) {}
@@ -317,6 +318,7 @@ void TestDelegate::OnReadCompleted(URLRequest* request, int bytes_read) {
}
void TestDelegate::OnResponseCompleted(URLRequest* request) {
+ response_completed_ = true;
if (quit_on_complete_)
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698