Home | History | Annotate | Download | only in http

Lines Matching refs:HttpAuth

22   MockAuthHandler(HttpAuth::Scheme scheme,
24 HttpAuth::Target target) {
33 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge(
34 HttpAuth::ChallengeTokenizer* challenge) {
35 return HttpAuth::AUTHORIZATION_RESULT_REJECT;
39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) {
84 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC,
86 HttpAuth::AUTH_SERVER));
92 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC,
94 HttpAuth::AUTH_SERVER));
100 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC,
102 HttpAuth::AUTH_PROXY));
109 new MockAuthHandler(HttpAuth::AUTH_SCHEME_DIGEST,
111 HttpAuth::AUTH_PROXY));
118 new MockAuthHandler(HttpAuth::AUTH_SCHEME_BASIC,
120 HttpAuth::AUTH_SERVER));
127 entry = cache.Lookup(origin, kRealm5, HttpAuth::AUTH_SCHEME_BASIC);
132 HttpAuth::AUTH_SCHEME_BASIC);
137 (GURL("http://www.google.com"), kRealm1, HttpAuth::AUTH_SCHEME_DIGEST);
142 GURL("http://www.google.com:80"), kRealm3, HttpAuth::AUTH_SCHEME_BASIC);
144 EXPECT_EQ(HttpAuth::AUTH_SCHEME_BASIC, entry->scheme());
153 GURL("http://www.google.com:80"), kRealm3, HttpAuth::AUTH_SCHEME_DIGEST);
155 EXPECT_EQ(HttpAuth::AUTH_SCHEME_DIGEST, entry->scheme());
162 entry = cache.Lookup(origin, kRealm2, HttpAuth::AUTH_SCHEME_BASIC);
164 EXPECT_EQ(HttpAuth::AUTH_SCHEME_BASIC, entry->scheme());
172 origin, kRealm2, HttpAuth::AUTH_SCHEME_BASIC);
174 origin, kRealm4, HttpAuth::AUTH_SCHEME_BASIC);
201 cache.Lookup(origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST);
212 cache.Lookup(origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST);
224 EXPECT_EQ(HttpAuth::AUTH_SCHEME_BASIC, entry->scheme());
269 HttpAuth::AUTH_SCHEME_BASIC, "MyRealm", HttpAuth::AUTH_SERVER));
279 origin, "MyRealm", HttpAuth::AUTH_SCHEME_BASIC);
295 HttpAuth::AUTH_SCHEME_BASIC, kRealm1, HttpAuth::AUTH_SERVER));
299 HttpAuth::AUTH_SCHEME_BASIC, kRealm2, HttpAuth::AUTH_SERVER));
303 HttpAuth::AUTH_SCHEME_BASIC, kRealm3, HttpAuth::AUTH_SERVER));
307 HttpAuth::AUTH_SCHEME_DIGEST, kRealm3, HttpAuth::AUTH_SERVER));
324 origin, kRealm5, HttpAuth::AUTH_SCHEME_BASIC, kAlice, k123));
329 HttpAuth::AUTH_SCHEME_BASIC,
335 origin, kRealm1, HttpAuth::AUTH_SCHEME_BASIC, kAlice2, k123));
339 origin, kRealm1, HttpAuth::AUTH_SCHEME_BASIC, kAlice, k1234));
343 origin, kRealm1, HttpAuth::AUTH_SCHEME_DIGEST, kAlice, k123));
347 origin, kRealm1, HttpAuth::AUTH_SCHEME_BASIC, kAlice, k123));
351 origin, kRealm1, HttpAuth::AUTH_SCHEME_BASIC, kAlice, k123));
355 origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST, kRoot, kWileCoyote));
362 origin, kRealm3, HttpAuth::AUTH_SCHEME_BASIC, kAdmin, kPassword));
367 origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST);
376 HttpAuth::AUTH_SCHEME_DIGEST, kRealm1, HttpAuth::AUTH_PROXY));
440 cache_.Add(origin_, GenerateRealm(realm_i), HttpAuth::AUTH_SCHEME_BASIC, "",
447 origin_, GenerateRealm(realm_i), HttpAuth::AUTH_SCHEME_BASIC);