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

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

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years 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 | « no previous file | net/http/http_auth_controller.h » ('j') | net/socket/socket_test_util.cc » ('J')
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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/http/http_auth_controller.h » ('j') | net/socket/socket_test_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698