| 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 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 5 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 this->GetCookies(cs, this->https_www_google_.url())); | 1118 this->GetCookies(cs, this->https_www_google_.url())); |
| 1119 | 1119 |
| 1120 EXPECT_TRUE(this->SetCookie(cs, this->https_www_google_.url(), "A=B")); | 1120 EXPECT_TRUE(this->SetCookie(cs, this->https_www_google_.url(), "A=B")); |
| 1121 // The non-secure should overwrite the secure. | 1121 // The non-secure should overwrite the secure. |
| 1122 this->MatchCookieLines("A=B", | 1122 this->MatchCookieLines("A=B", |
| 1123 this->GetCookies(cs, this->http_www_google_.url())); | 1123 this->GetCookies(cs, this->http_www_google_.url())); |
| 1124 this->MatchCookieLines("D=E; A=B", | 1124 this->MatchCookieLines("D=E; A=B", |
| 1125 this->GetCookies(cs, this->https_www_google_.url())); | 1125 this->GetCookies(cs, this->https_www_google_.url())); |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 static const int kLastAccessThresholdMilliseconds = 200; | |
| 1129 | |
| 1130 // Formerly NetUtilTest.CookieTest back when we used wininet's cookie handling. | 1128 // Formerly NetUtilTest.CookieTest back when we used wininet's cookie handling. |
| 1131 TYPED_TEST_P(CookieStoreTest, NetUtilCookieTest) { | 1129 TYPED_TEST_P(CookieStoreTest, NetUtilCookieTest) { |
| 1132 const GURL test_url("http://mojo.jojo.google.izzle/"); | 1130 const GURL test_url("http://mojo.jojo.google.izzle/"); |
| 1133 | 1131 |
| 1134 CookieStore* cs = this->GetCookieStore(); | 1132 CookieStore* cs = this->GetCookieStore(); |
| 1135 | 1133 |
| 1136 EXPECT_TRUE(this->SetCookie(cs, test_url, "foo=bar")); | 1134 EXPECT_TRUE(this->SetCookie(cs, test_url, "foo=bar")); |
| 1137 std::string value = this->GetCookies(cs, test_url); | 1135 std::string value = this->GetCookies(cs, test_url); |
| 1138 this->MatchCookieLines("foo=bar", value); | 1136 this->MatchCookieLines("foo=bar", value); |
| 1139 | 1137 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 OverwritePersistentCookie, | 1406 OverwritePersistentCookie, |
| 1409 CookieOrdering, | 1407 CookieOrdering, |
| 1410 GetAllCookiesAsync, | 1408 GetAllCookiesAsync, |
| 1411 DeleteCookieAsync, | 1409 DeleteCookieAsync, |
| 1412 DeleteCanonicalCookieAsync, | 1410 DeleteCanonicalCookieAsync, |
| 1413 DeleteSessionCookie); | 1411 DeleteSessionCookie); |
| 1414 | 1412 |
| 1415 } // namespace net | 1413 } // namespace net |
| 1416 | 1414 |
| 1417 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 1415 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| OLD | NEW |