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

Unified Diff: net/http/http_auth_handler_basic_unittest.cc

Issue 1151843002: DO NOT LAND Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 years, 7 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: net/http/http_auth_handler_basic_unittest.cc
diff --git a/net/http/http_auth_handler_basic_unittest.cc b/net/http/http_auth_handler_basic_unittest.cc
index 60e588291ca1fab44a2b9278e74932c2feff1c73..5c71395bdfe66aa2c98e09fbc8173136dcd9fd8e 100644
--- a/net/http/http_auth_handler_basic_unittest.cc
+++ b/net/http/http_auth_handler_basic_unittest.cc
@@ -14,6 +14,7 @@
#include "net/http/http_auth_handler_basic.h"
#include "net/http/http_request_info.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "url/origin.h"
namespace net {
@@ -31,7 +32,7 @@ TEST(HttpAuthHandlerBasicTest, GenerateAuthToken) {
// Empty username and empty password.
{ "", "", "Basic Og==" },
};
- GURL origin("http://www.example.com");
+ url::Origin origin("http://www.example.com");
HttpAuthHandlerBasic::Factory factory;
for (size_t i = 0; i < arraysize(tests); ++i) {
std::string challenge = "Basic realm=\"Atlantis\"";
@@ -85,7 +86,7 @@ TEST(HttpAuthHandlerBasicTest, HandleAnotherChallenge) {
}
};
- GURL origin("http://www.example.com");
+ url::Origin origin("http://www.example.com");
HttpAuthHandlerBasic::Factory factory;
scoped_ptr<HttpAuthHandler> basic;
EXPECT_EQ(OK, factory.CreateAuthHandlerFromString(
@@ -184,7 +185,7 @@ TEST(HttpAuthHandlerBasicTest, InitFromChallenge) {
},
};
HttpAuthHandlerBasic::Factory factory;
- GURL origin("http://www.example.com");
+ url::Origin origin("http://www.example.com");
for (size_t i = 0; i < arraysize(tests); ++i) {
std::string challenge = tests[i].challenge;
scoped_ptr<HttpAuthHandler> basic;

Powered by Google App Engine
This is Rietveld 408576698