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

Unified Diff: net/http/http_auth_handler_unittest.cc

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comments Created 9 years, 2 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
« no previous file with comments | « net/http/http_auth_handler_ntlm_portable.cc ('k') | net/http/http_auth_sspi_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_unittest.cc
diff --git a/net/http/http_auth_handler_unittest.cc b/net/http/http_auth_handler_unittest.cc
index 9b3de57604738afdc12d260317491c20739de684..8fc6d68caa355edfd0a35701d3ad7687d295d986 100644
--- a/net/http/http_auth_handler_unittest.cc
+++ b/net/http/http_auth_handler_unittest.cc
@@ -20,8 +20,7 @@ TEST(HttpAuthHandlerTest, NetLog) {
NetLog::Source source;
GURL origin("http://www.example.com");
std::string challenge = "Mock asdf";
- string16 username = ASCIIToUTF16("user");
- string16 password = ASCIIToUTF16("pass");
+ AuthCredentials credentials(ASCIIToUTF16("user"), ASCIIToUTF16("pass"));
std::string auth_token;
HttpRequestInfo request;
@@ -44,7 +43,7 @@ TEST(HttpAuthHandlerTest, NetLog) {
mock_handler.InitFromChallenge(&tokenizer, target,
origin, bound_net_log);
mock_handler.SetGenerateExpectation(async, rv);
- mock_handler.GenerateAuthToken(&username, &password, &request,
+ mock_handler.GenerateAuthToken(&credentials, &request,
&test_callback, &auth_token);
if (async)
test_callback.WaitForResult();
« no previous file with comments | « net/http/http_auth_handler_ntlm_portable.cc ('k') | net/http/http_auth_sspi_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698