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

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

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/ftp/ftp_util_unittest.cc ('k') | net/http/http_auth_controller_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/http/http_auth_cache.h" 12 #include "net/http/http_auth_cache.h"
13 #include "net/http/http_auth_handler.h" 13 #include "net/http/http_auth_handler.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using base::ASCIIToUTF16;
17
16 namespace net { 18 namespace net {
17 19
18 namespace { 20 namespace {
19 21
20 class MockAuthHandler : public HttpAuthHandler { 22 class MockAuthHandler : public HttpAuthHandler {
21 public: 23 public:
22 MockAuthHandler(HttpAuth::Scheme scheme, 24 MockAuthHandler(HttpAuth::Scheme scheme,
23 const std::string& realm, 25 const std::string& realm,
24 HttpAuth::Target target) { 26 HttpAuth::Target target) {
25 // Can't use initializer list since these are members of the base class. 27 // Can't use initializer list since these are members of the base class.
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 CheckPathExistence(0, i, false); 619 CheckPathExistence(0, i, false);
618 620
619 for (int i = 0; i < kMaxPaths; ++i) 621 for (int i = 0; i < kMaxPaths; ++i)
620 CheckPathExistence(0, i + 3, true); 622 CheckPathExistence(0, i + 3, true);
621 623
622 for (int i = 0; i < kMaxRealms; ++i) 624 for (int i = 0; i < kMaxRealms; ++i)
623 CheckRealmExistence(i, true); 625 CheckRealmExistence(i, true);
624 } 626 }
625 627
626 } // namespace net 628 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_util_unittest.cc ('k') | net/http/http_auth_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698