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()); |