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/basictypes.h" | |
8 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
10 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
11 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
12 #include "net/http/http_auth_challenge_tokenizer.h" | 11 #include "net/http/http_auth_challenge_tokenizer.h" |
13 #include "net/http/http_auth_handler_digest.h" | 12 #include "net/http/http_auth_handler_digest.h" |
14 #include "net/http/http_request_info.h" | 13 #include "net/http/http_request_info.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 | 15 |
17 namespace net { | 16 namespace net { |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 EXPECT_EQ("Digest username=\"foo\", realm=\"Oblivion\", " | 688 EXPECT_EQ("Digest username=\"foo\", realm=\"Oblivion\", " |
690 "nonce=\"nonce-value\", uri=\"/path/to/resource\", " | 689 "nonce=\"nonce-value\", uri=\"/path/to/resource\", " |
691 "response=\"5b1459beda5cee30d6ff9e970a69c0ea\", " | 690 "response=\"5b1459beda5cee30d6ff9e970a69c0ea\", " |
692 "opaque=\"opaque text\", " | 691 "opaque=\"opaque text\", " |
693 "qop=auth, nc=00000001, cnonce=\"client_nonce\"", | 692 "qop=auth, nc=00000001, cnonce=\"client_nonce\"", |
694 auth_token); | 693 auth_token); |
695 } | 694 } |
696 | 695 |
697 | 696 |
698 } // namespace net | 697 } // namespace net |
OLD | NEW |