Index: webkit/support/weburl_loader_mock.cc |
diff --git a/webkit/support/weburl_loader_mock.cc b/webkit/support/weburl_loader_mock.cc |
index ccdf622a022d664ea0ca18fce0ed0bd527504547..06aff4da960d5828be825dfed1a002c3d855166d 100644 |
--- a/webkit/support/weburl_loader_mock.cc |
+++ b/webkit/support/weburl_loader_mock.cc |
@@ -58,6 +58,9 @@ void WebURLLoaderMock::loadSynchronously(const WebKit::WebURLRequest& request, |
factory_->LoadSynchronously(request, &response, &error, &data); |
return; |
} |
+ DCHECK(static_cast<const GURL&>(request.url()).SchemeIs("data")) |
jamesr
2013/06/20 04:36:21
oh C++. you so silly
|
+ << "loadSynchronously shouldn't be falling back: " |
+ << request.url().spec().data(); |
using_default_loader_ = true; |
default_loader_->loadSynchronously(request, response, error, data); |
} |
@@ -69,6 +72,9 @@ void WebURLLoaderMock::loadAsynchronously(const WebKit::WebURLRequest& request, |
factory_->LoadAsynchronouly(request, this); |
return; |
} |
+ DCHECK(static_cast<const GURL&>(request.url()).SchemeIs("data")) |
+ << "loadAsynchronously shouldn't be falling back: " |
+ << request.url().spec().data(); |
using_default_loader_ = true; |
default_loader_->loadAsynchronously(request, client); |
} |