| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_challenge_tokenizer.h" | 5 #include "net/http/http_auth_challenge_tokenizer.h" |
| 6 #include "net/http/http_auth_multi_round_parse.h" | 6 #include "net/http/http_auth_multi_round_parse.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ParseAnotherNegotiateChallenge_InvalidToken) { | 68 ParseAnotherNegotiateChallenge_InvalidToken) { |
| 69 std::string challenge_text = "Negotiate ***"; | 69 std::string challenge_text = "Negotiate ***"; |
| 70 HttpAuthChallengeTokenizer challenge(challenge_text.begin(), | 70 HttpAuthChallengeTokenizer challenge(challenge_text.begin(), |
| 71 challenge_text.end()); | 71 challenge_text.end()); |
| 72 std::string encoded_token; | 72 std::string encoded_token; |
| 73 std::string decoded_token; | 73 std::string decoded_token; |
| 74 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, | 74 EXPECT_EQ(HttpAuth::AUTHORIZATION_RESULT_INVALID, |
| 75 ParseLaterRoundChallenge("negotiate", &challenge, &encoded_token, | 75 ParseLaterRoundChallenge("negotiate", &challenge, &encoded_token, |
| 76 &decoded_token)); | 76 &decoded_token)); |
| 77 } | 77 } |
| 78 } | 78 |
| 79 } // namespace net |
| OLD | NEW |