OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/http/http_auth_gssapi_posix.h" | 5 #include "net/http/http_auth_gssapi_posix.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
10 #include "base/native_library.h" | 9 #include "base/native_library.h" |
11 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
12 #include "net/http/http_auth_challenge_tokenizer.h" | 11 #include "net/http/http_auth_challenge_tokenizer.h" |
13 #include "net/http/mock_gssapi_library_posix.h" | 12 #include "net/http/mock_gssapi_library_posix.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
16 namespace net { | 15 namespace net { |
17 | 16 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 &auth_token, | 274 &auth_token, |
276 base::Bind(&UnexpectedCallback))); | 275 base::Bind(&UnexpectedCallback))); |
277 std::string second_challenge_text = "Negotiate =happyjoy="; | 276 std::string second_challenge_text = "Negotiate =happyjoy="; |
278 HttpAuthChallengeTokenizer second_challenge(second_challenge_text.begin(), | 277 HttpAuthChallengeTokenizer second_challenge(second_challenge_text.begin(), |
279 second_challenge_text.end()); | 278 second_challenge_text.end()); |
280 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, | 279 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, |
281 auth_gssapi.ParseChallenge(&second_challenge)); | 280 auth_gssapi.ParseChallenge(&second_challenge)); |
282 } | 281 } |
283 | 282 |
284 } // namespace net | 283 } // namespace net |
OLD | NEW |