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

Side by Side Diff: net/http/http_auth_handler_basic_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_auth_cache_unittest.cc ('k') | net/http/http_auth_handler_digest_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h"
9 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
10 #include "net/http/http_auth_handler_basic.h" 11 #include "net/http/http_auth_handler_basic.h"
11 #include "net/http/http_request_info.h" 12 #include "net/http/http_request_info.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 TEST(HttpAuthHandlerBasicTest, GenerateAuthToken) { 17 TEST(HttpAuthHandlerBasicTest, GenerateAuthToken) {
17 static const struct { 18 static const struct {
18 const char* username; 19 const char* username;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 scoped_ptr<HttpAuthHandler> basic; 74 scoped_ptr<HttpAuthHandler> basic;
74 int rv = factory.CreateAuthHandlerFromString( 75 int rv = factory.CreateAuthHandlerFromString(
75 challenge, HttpAuth::AUTH_SERVER, origin, BoundNetLog(), &basic); 76 challenge, HttpAuth::AUTH_SERVER, origin, BoundNetLog(), &basic);
76 EXPECT_EQ(tests[i].expected_rv, rv); 77 EXPECT_EQ(tests[i].expected_rv, rv);
77 if (rv == OK) 78 if (rv == OK)
78 EXPECT_EQ(tests[i].expected_realm, basic->realm()); 79 EXPECT_EQ(tests[i].expected_realm, basic->realm());
79 } 80 }
80 } 81 }
81 82
82 } // namespace net 83 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_cache_unittest.cc ('k') | net/http/http_auth_handler_digest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698