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

Unified Diff: net/http/http_auth_handler_unittest.cc

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 years, 5 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.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
===================================================================
--- net/http/http_auth_handler_unittest.cc (revision 53997)
+++ net/http/http_auth_handler_unittest.cc (working copy)
@@ -4,6 +4,7 @@
#include "net/http/http_auth_handler.h"
+#include "base/string_util.h"
#include "net/base/capturing_net_log.h"
#include "net/base/net_errors.h"
#include "net/base/net_log_unittest.h"
@@ -18,8 +19,8 @@
NetLog::Source source;
GURL origin("http://www.example.com");
std::string challenge = "Mock asdf";
- std::wstring username = L"user";
- std::wstring password = L"pass";
+ string16 username = ASCIIToUTF16("user");
+ string16 password = ASCIIToUTF16("pass");
std::string auth_token;
HttpRequestInfo request;
« no previous file with comments | « net/http/http_auth_handler_ntlm.cc ('k') | net/http/http_auth_sspi_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698