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

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: 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: 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..427858f163e440b9986d66dc85de7c3fd5a76bd0 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"
@@ -22,6 +23,10 @@
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
+namespace net {
+class NetworkDelegate;
+} // namespace net
+
class TestServerTest: public testing::Test {
protected:
virtual void SetUp() {
@@ -64,10 +69,11 @@ 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::NetworkDelegate* network_delegate)
+ : net::URLRequest(url, priority, delegate, context, network_delegate) {}
};
class UrlTaskChain {
@@ -82,7 +88,8 @@ class UrlTaskChain {
base::MessageLoopForIO loop;
net::TestURLRequestContext context;
- TestURLRequest r(GURL(url_), &delegate_, &context);
+ TestURLRequest r(
+ GURL(url_), net::DEFAULT_PRIORITY, &delegate_, &context, NULL);
r.Start();
EXPECT_TRUE(r.is_pending());

Powered by Google App Engine
This is Rietveld 408576698