| Index: chrome/browser/net/chrome_network_delegate_unittest.cc
|
| diff --git a/chrome/browser/net/chrome_network_delegate_unittest.cc b/chrome/browser/net/chrome_network_delegate_unittest.cc
|
| index 831e674a9eee99c27439fc691ed45ab0b932e46f..63bbc51cc839037b4dd12d393cd5796a317e38e5 100644
|
| --- a/chrome/browser/net/chrome_network_delegate_unittest.cc
|
| +++ b/chrome/browser/net/chrome_network_delegate_unittest.cc
|
| @@ -16,6 +16,7 @@
|
| #include "chrome/test/base/testing_profile.h"
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| #include "net/base/completion_callback.h"
|
| +#include "net/base/request_priority.h"
|
| #include "net/url_request/url_request.h"
|
| #include "net/url_request/url_request_test_util.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -47,12 +48,18 @@ class ChromeNetworkDelegateTest : public testing::Test {
|
| scoped_ptr<ChromeNetworkDelegate> delegate(CreateNetworkDelegate());
|
|
|
| net::TestURLRequestContext context;
|
| - net::TestURLRequest extension_request(
|
| - GURL("http://example.com/"), NULL, &context, NULL);
|
| + net::TestURLRequest extension_request(GURL("http://example.com/"),
|
| + net::DEFAULT_PRIORITY,
|
| + NULL,
|
| + &context,
|
| + NULL);
|
| extension_request.set_first_party_for_cookies(
|
| GURL("chrome-extension://abcdef/bingo.html"));
|
| - net::TestURLRequest web_page_request(
|
| - GURL("http://example.com/"), NULL, &context, NULL);
|
| + net::TestURLRequest web_page_request(GURL("http://example.com/"),
|
| + net::DEFAULT_PRIORITY,
|
| + NULL,
|
| + &context,
|
| + NULL);
|
| web_page_request.set_first_party_for_cookies(
|
| GURL("http://example.com/helloworld.html"));
|
|
|
| @@ -126,8 +133,11 @@ class ChromeNetworkDelegateSafeSearchTest : public testing::Test {
|
| // Show the URL in the trace so we know where we failed.
|
| SCOPED_TRACE(url_string);
|
|
|
| - net::TestURLRequest request(
|
| - GURL(url_string), &delegate_, &context_, network_delegate_);
|
| + net::TestURLRequest request(GURL(url_string),
|
| + net::DEFAULT_PRIORITY,
|
| + &delegate_,
|
| + &context_,
|
| + network_delegate_);
|
|
|
| request.Start();
|
| base::MessageLoop::current()->RunUntilIdle();
|
|
|