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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
11 #include "net/http/http_auth_challenge_tokenizer.h" | 11 #include "net/http/http_auth_challenge_tokenizer.h" |
12 #include "net/http/http_auth_handler_digest.h" | 12 #include "net/http/http_auth_handler_digest.h" |
13 #include "net/http/http_request_info.h" | 13 #include "net/http/http_request_info.h" |
| 14 #include "net/log/net_log_with_source.h" |
14 #include "net/ssl/ssl_info.h" | 15 #include "net/ssl/ssl_info.h" |
15 #include "net/test/gtest_util.h" | 16 #include "net/test/gtest_util.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 using net::test::IsOk; | 20 using net::test::IsOk; |
20 | 21 |
21 namespace net { | 22 namespace net { |
22 | 23 |
23 namespace { | 24 namespace { |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 EXPECT_EQ("Digest username=\"foo\", realm=\"Oblivion\", " | 695 EXPECT_EQ("Digest username=\"foo\", realm=\"Oblivion\", " |
695 "nonce=\"nonce-value\", uri=\"/path/to/resource\", " | 696 "nonce=\"nonce-value\", uri=\"/path/to/resource\", " |
696 "response=\"5b1459beda5cee30d6ff9e970a69c0ea\", " | 697 "response=\"5b1459beda5cee30d6ff9e970a69c0ea\", " |
697 "opaque=\"opaque text\", " | 698 "opaque=\"opaque text\", " |
698 "qop=auth, nc=00000001, cnonce=\"client_nonce\"", | 699 "qop=auth, nc=00000001, cnonce=\"client_nonce\"", |
699 auth_token); | 700 auth_token); |
700 } | 701 } |
701 | 702 |
702 | 703 |
703 } // namespace net | 704 } // namespace net |
OLD | NEW |