Index: net/http/http_network_transaction_unittest.cc |
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc |
index 09919406616830dae1f7790e2fc6f618ca2b169f..57eeb7b6f474eb22b56689f980f006b21aa92f00 100644 |
--- a/net/http/http_network_transaction_unittest.cc |
+++ b/net/http/http_network_transaction_unittest.cc |
@@ -80,6 +80,7 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
#include "url/gurl.h" |
+#include "url/origin.h" |
using base::ASCIIToUTF16; |
@@ -10093,7 +10094,7 @@ TEST_P(HttpNetworkTransactionTest, GenerateAuthToken) { |
for (int n = 0; n < 2; n++) { |
HttpAuthHandlerMock* auth_handler(new HttpAuthHandlerMock()); |
std::string auth_challenge = "Mock realm=proxy"; |
- GURL origin(test_config.proxy_url); |
+ url::Origin origin(test_config.proxy_url); |
HttpAuthChallengeTokenizer tokenizer(auth_challenge.begin(), |
auth_challenge.end()); |
auth_handler->InitFromChallenge(&tokenizer, HttpAuth::AUTH_PROXY, |
@@ -10107,7 +10108,7 @@ TEST_P(HttpNetworkTransactionTest, GenerateAuthToken) { |
if (test_config.server_auth_timing != AUTH_NONE) { |
HttpAuthHandlerMock* auth_handler(new HttpAuthHandlerMock()); |
std::string auth_challenge = "Mock realm=server"; |
- GURL origin(test_config.server_url); |
+ url::Origin origin(test_config.server_url); |
HttpAuthChallengeTokenizer tokenizer(auth_challenge.begin(), |
auth_challenge.end()); |
auth_handler->InitFromChallenge(&tokenizer, HttpAuth::AUTH_SERVER, |
@@ -10201,7 +10202,7 @@ TEST_P(HttpNetworkTransactionTest, MultiRoundAuth) { |
HttpAuthHandlerMock* auth_handler(new HttpAuthHandlerMock()); |
auth_handler->set_connection_based(true); |
std::string auth_challenge = "Mock realm=server"; |
- GURL origin("http://www.example.com"); |
+ url::Origin origin("http://www.example.com"); |
HttpAuthChallengeTokenizer tokenizer(auth_challenge.begin(), |
auth_challenge.end()); |
auth_handler->InitFromChallenge(&tokenizer, HttpAuth::AUTH_SERVER, |
@@ -10212,7 +10213,7 @@ TEST_P(HttpNetworkTransactionTest, MultiRoundAuth) { |
const HttpResponseInfo* response = NULL; |
HttpRequestInfo request; |
request.method = "GET"; |
- request.url = origin; |
+ request.url = GURL(origin.string()); |
request.load_flags = 0; |
scoped_refptr<HttpNetworkSession> session(CreateSession(&session_deps_)); |
@@ -14218,7 +14219,7 @@ TEST_P(HttpNetworkTransactionTest, ProxyHeadersNotSentOverWsTunnel) { |
session_deps_.socket_factory->AddSocketDataProvider(&data); |
session->http_auth_cache()->Add( |
- GURL("http://myproxy:70/"), "MyRealm1", HttpAuth::AUTH_SCHEME_BASIC, |
+ url::Origin("http://myproxy:70"), "MyRealm1", HttpAuth::AUTH_SCHEME_BASIC, |
"Basic realm=MyRealm1", AuthCredentials(kFoo, kBar), "/"); |
scoped_ptr<HttpTransaction> trans( |