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

Unified Diff: net/http/http_auth_handler_negotiate_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_negotiate_unittest.cc
diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc
index eaee8e5f40a6ace0affe30fd5813ee21eb17f9f0..06407a68b2c3e70bd629031d389ea8e0c1b8fb2a 100644
--- a/net/http/http_auth_handler_negotiate_unittest.cc
+++ b/net/http/http_auth_handler_negotiate_unittest.cc
@@ -18,6 +18,7 @@
#endif
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
+#include "url/origin.h"
namespace net {
@@ -179,7 +180,7 @@ class HttpAuthHandlerNegotiateTest : public PlatformTest {
factory_->set_disable_cname_lookup(disable_cname_lookup);
factory_->set_use_port(use_port);
resolver_->set_synchronous_mode(synchronous_resolve_mode);
- GURL gurl(url_string);
+ url::Origin origin(url_string);
// Note: This is a little tricky because CreateAuthHandlerFromString
// expects a scoped_ptr<HttpAuthHandler>* rather than a
@@ -187,11 +188,9 @@ class HttpAuthHandlerNegotiateTest : public PlatformTest {
// after creating the handler, and make sure that generic_handler
// no longer holds on to the HttpAuthHandlerNegotiate object.
scoped_ptr<HttpAuthHandler> generic_handler;
- int rv = factory_->CreateAuthHandlerFromString("Negotiate",
- HttpAuth::AUTH_SERVER,
- gurl,
- BoundNetLog(),
- &generic_handler);
+ int rv = factory_->CreateAuthHandlerFromString(
+ "Negotiate", HttpAuth::AUTH_SERVER, origin, BoundNetLog(),
+ &generic_handler);
if (rv != OK)
return rv;
HttpAuthHandlerNegotiate* negotiate_handler =

Powered by Google App Engine
This is Rietveld 408576698