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 "chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.h" | 5 #include "chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/http/http_request_info.h" | 14 #include "net/http/http_request_info.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kValidOrigin[] = "https://www.proxy.com/"; | 19 const char kValidOrigin[] = "https://www.proxy.com/"; |
20 const char kValidChallenge[] = "SpdyProxy realm=\"SpdyProxy\", " | 20 const char kValidChallenge[] = "SpdyProxy realm=\"SpdyProxy\", " |
21 "ps=\"1-2-3-4\""; | 21 "ps=\"1-2-3-4\""; |
22 | 22 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 EXPECT_EQ(tests[i].expected_realm, spdyproxy->realm()); | 152 EXPECT_EQ(tests[i].expected_realm, spdyproxy->realm()); |
153 HttpAuthHandlerSpdyProxy* as_spdyproxy = | 153 HttpAuthHandlerSpdyProxy* as_spdyproxy = |
154 static_cast<HttpAuthHandlerSpdyProxy*>(spdyproxy.get()); | 154 static_cast<HttpAuthHandlerSpdyProxy*>(spdyproxy.get()); |
155 EXPECT_EQ(tests[i].expected_ps, | 155 EXPECT_EQ(tests[i].expected_ps, |
156 as_spdyproxy->ps_token_); | 156 as_spdyproxy->ps_token_); |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 } // namespace spdyproxy | 161 } // namespace spdyproxy |
OLD | NEW |