OLD | NEW |
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 Loading... |
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 |
OLD | NEW |