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

Unified Diff: webkit/browser/appcache/appcache_request_handler_unittest.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error from rebase Created 7 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
Index: webkit/browser/appcache/appcache_request_handler_unittest.cc
diff --git a/webkit/browser/appcache/appcache_request_handler_unittest.cc b/webkit/browser/appcache/appcache_request_handler_unittest.cc
index 286fd79c683eb2df9630762c9dbe5dca2c11fd0d..d03c674ee92a1e93ff26b93c8af06d10928b9095 100644
--- a/webkit/browser/appcache/appcache_request_handler_unittest.cc
+++ b/webkit/browser/appcache/appcache_request_handler_unittest.cc
@@ -13,6 +13,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
#include "net/base/net_errors.h"
+#include "net/base/request_priority.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -117,13 +118,15 @@ class AppCacheRequestHandlerTest : public testing::Test {
class MockURLRequest : public net::URLRequest {
public:
- MockURLRequest(
- const GURL& url,
- net::URLRequestContext* context,
- net::NetworkDelegate* network_delegate) :
- net::URLRequest(url, NULL, context, network_delegate),
- network_delegate_(network_delegate) {
- }
+ MockURLRequest(const GURL& url,
+ net::URLRequestContext* context,
+ net::NetworkDelegate* network_delegate)
+ : net::URLRequest(url,
+ net::DEFAULT_PRIORITY,
+ NULL,
+ context,
+ network_delegate),
+ network_delegate_(network_delegate) {}
void SimulateResponseCode(int http_response_code) {
mock_factory_job_ = new MockURLRequestJob(

Powered by Google App Engine
This is Rietveld 408576698