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

Unified Diff: net/test/url_request/url_request_failed_job.cc

Issue 2069303002: Add new Cronet exception class for QUIC errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 4 years, 6 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/test/url_request/url_request_failed_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_failed_job.cc
diff --git a/net/test/url_request/url_request_failed_job.cc b/net/test/url_request/url_request_failed_job.cc
index 68652ccb67fd9def70815abea7bcd877bbcce014..3e1e5664934baeb20ee2d2f432a0d46902ff6284 100644
--- a/net/test/url_request/url_request_failed_job.cc
+++ b/net/test/url_request/url_request_failed_job.cc
@@ -124,6 +124,13 @@ void URLRequestFailedJob::GetResponseInfo(HttpResponseInfo* info) {
*info = response_info_;
}
+void URLRequestFailedJob::PopulateNetErrorDetails(
+ NetErrorDetails* details) const {
+ if (net_error_ == ERR_QUIC_PROTOCOL_ERROR) {
+ details->quic_connection_error = QUIC_INTERNAL_ERROR;
+ }
+}
+
// static
void URLRequestFailedJob::AddUrlHandler() {
return AddUrlHandlerForHostname(kMockHostname);
« no previous file with comments | « net/test/url_request/url_request_failed_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698