| 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/string16.h" | 7 #include "base/string16.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 return HttpAuth::AUTHORIZATION_RESULT_REJECT; | 35 return HttpAuth::AUTHORIZATION_RESULT_REJECT; |
| 36 } | 36 } |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) { | 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) { |
| 40 return false; // Unused. | 40 return false; // Unused. |
| 41 } | 41 } |
| 42 | 42 |
| 43 virtual int GenerateAuthTokenImpl(const AuthCredentials*, | 43 virtual int GenerateAuthTokenImpl(const AuthCredentials*, |
| 44 const HttpRequestInfo*, | 44 const HttpRequestInfo*, |
| 45 OldCompletionCallback* callback, | 45 const CompletionCallback& callback, |
| 46 std::string* auth_token) { | 46 std::string* auth_token) { |
| 47 *auth_token = "mock-credentials"; | 47 *auth_token = "mock-credentials"; |
| 48 return OK; | 48 return OK; |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 ~MockAuthHandler() {} | 53 ~MockAuthHandler() {} |
| 54 }; | 54 }; |
| 55 | 55 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 CheckPathExistence(0, i, false); | 612 CheckPathExistence(0, i, false); |
| 613 | 613 |
| 614 for (int i = 0; i < kMaxPaths; ++i) | 614 for (int i = 0; i < kMaxPaths; ++i) |
| 615 CheckPathExistence(0, i + 3, true); | 615 CheckPathExistence(0, i + 3, true); |
| 616 | 616 |
| 617 for (int i = 0; i < kMaxRealms; ++i) | 617 for (int i = 0; i < kMaxRealms; ++i) |
| 618 CheckRealmExistence(i, true); | 618 CheckRealmExistence(i, true); |
| 619 } | 619 } |
| 620 | 620 |
| 621 } // namespace net | 621 } // namespace net |
| OLD | NEW |