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

Unified Diff: chrome_frame/test/test_server_test.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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: chrome_frame/test/test_server_test.cc
diff --git a/chrome_frame/test/test_server_test.cc b/chrome_frame/test/test_server_test.cc
index 74c8c976512a5584af2bc7dceb6f3500e14893fc..92d8e0e9f2abb9e1968f7c8d911a34c8fa6c958d 100644
--- a/chrome_frame/test/test_server_test.cc
+++ b/chrome_frame/test/test_server_test.cc
@@ -11,6 +11,7 @@
#include "base/strings/stringprintf.h"
#include "base/win/scoped_handle.h"
#include "chrome_frame/test/test_server.h"
+#include "net/base/request_priority.h"
#include "net/cookies/cookie_monster.h"
#include "net/disk_cache/disk_cache.h"
#include "net/dns/host_resolver_proc.h"
@@ -64,10 +65,10 @@ class ScopedInternet {
class TestURLRequest : public net::URLRequest {
public:
TestURLRequest(const GURL& url,
+ net::RequestPriority priority,
Delegate* delegate,
- net::TestURLRequestContext* context)
- : net::URLRequest(url, delegate, context) {
- }
+ const net::TestURLRequestContext* context)
+ : net::URLRequest(url, priority, delegate, context) {}
};
class UrlTaskChain {
@@ -82,7 +83,7 @@ class UrlTaskChain {
base::MessageLoopForIO loop;
net::TestURLRequestContext context;
- TestURLRequest r(GURL(url_), &delegate_, &context);
+ TestURLRequest r(GURL(url_), net::DEFAULT_PRIORITY, &delegate_, &context);
r.Start();
EXPECT_TRUE(r.is_pending());
« no previous file with comments | « chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc ('k') | cloud_print/service/service_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698