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 <string> | 5 #include <string> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
10 #include "net/cookies/cookie_util.h" | 9 #include "net/cookies/cookie_util.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
12 | 11 |
13 namespace net { | 12 namespace net { |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 struct RequestCookieParsingTest { | 16 struct RequestCookieParsingTest { |
18 std::string str; | 17 std::string str; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 cookie_util::GetEffectiveDomain("ws", "www.example.com")); | 202 cookie_util::GetEffectiveDomain("ws", "www.example.com")); |
204 EXPECT_EQ("example.com", | 203 EXPECT_EQ("example.com", |
205 cookie_util::GetEffectiveDomain("wss", "www.example.com")); | 204 cookie_util::GetEffectiveDomain("wss", "www.example.com")); |
206 EXPECT_EQ("www.example.com", | 205 EXPECT_EQ("www.example.com", |
207 cookie_util::GetEffectiveDomain("ftp", "www.example.com")); | 206 cookie_util::GetEffectiveDomain("ftp", "www.example.com")); |
208 } | 207 } |
209 | 208 |
210 } // namespace | 209 } // namespace |
211 | 210 |
212 } // namespace net | 211 } // namespace net |
OLD | NEW |