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 "base/basictypes.h" | |
6 #include "net/base/net_errors.h" | 5 #include "net/base/net_errors.h" |
7 #include "net/http/http_auth_challenge_tokenizer.h" | 6 #include "net/http/http_auth_challenge_tokenizer.h" |
8 #include "net/http/http_auth_sspi_win.h" | 7 #include "net/http/http_auth_sspi_win.h" |
9 #include "net/http/mock_sspi_library_win.h" | 8 #include "net/http/mock_sspi_library_win.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 namespace net { | 11 namespace net { |
13 | 12 |
14 namespace { | 13 namespace { |
15 | 14 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 &auth_token, | 152 &auth_token, |
154 base::Bind(&UnexpectedCallback))); | 153 base::Bind(&UnexpectedCallback))); |
155 std::string second_challenge_text = "Negotiate =happyjoy="; | 154 std::string second_challenge_text = "Negotiate =happyjoy="; |
156 HttpAuthChallengeTokenizer second_challenge(second_challenge_text.begin(), | 155 HttpAuthChallengeTokenizer second_challenge(second_challenge_text.begin(), |
157 second_challenge_text.end()); | 156 second_challenge_text.end()); |
158 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, | 157 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, |
159 auth_sspi.ParseChallenge(&second_challenge)); | 158 auth_sspi.ParseChallenge(&second_challenge)); |
160 } | 159 } |
161 | 160 |
162 } // namespace net | 161 } // namespace net |
OLD | NEW |