Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: net/cookies/cookie_store_unittest.h

Issue 2007563003: Access-time threshold unit failure in CookieMonster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: empty Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 this->GetCookies(cs, this->https_www_google_.url())); 1088 this->GetCookies(cs, this->https_www_google_.url()));
1089 1089
1090 EXPECT_TRUE(this->SetCookie(cs, this->https_www_google_.url(), "A=B")); 1090 EXPECT_TRUE(this->SetCookie(cs, this->https_www_google_.url(), "A=B"));
1091 // The non-secure should overwrite the secure. 1091 // The non-secure should overwrite the secure.
1092 this->MatchCookieLines("A=B", 1092 this->MatchCookieLines("A=B",
1093 this->GetCookies(cs, this->http_www_google_.url())); 1093 this->GetCookies(cs, this->http_www_google_.url()));
1094 this->MatchCookieLines("D=E; A=B", 1094 this->MatchCookieLines("D=E; A=B",
1095 this->GetCookies(cs, this->https_www_google_.url())); 1095 this->GetCookies(cs, this->https_www_google_.url()));
1096 } 1096 }
1097 1097
1098 static const int kLastAccessThresholdMilliseconds = 200;
1099
1100 // Formerly NetUtilTest.CookieTest back when we used wininet's cookie handling. 1098 // Formerly NetUtilTest.CookieTest back when we used wininet's cookie handling.
1101 TYPED_TEST_P(CookieStoreTest, NetUtilCookieTest) { 1099 TYPED_TEST_P(CookieStoreTest, NetUtilCookieTest) {
1102 const GURL test_url("http://mojo.jojo.google.izzle/"); 1100 const GURL test_url("http://mojo.jojo.google.izzle/");
1103 1101
1104 CookieStore* cs = this->GetCookieStore(); 1102 CookieStore* cs = this->GetCookieStore();
1105 1103
1106 EXPECT_TRUE(this->SetCookie(cs, test_url, "foo=bar")); 1104 EXPECT_TRUE(this->SetCookie(cs, test_url, "foo=bar"));
1107 std::string value = this->GetCookies(cs, test_url); 1105 std::string value = this->GetCookies(cs, test_url);
1108 this->MatchCookieLines("foo=bar", value); 1106 this->MatchCookieLines("foo=bar", value);
1109 1107
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 OverwritePersistentCookie, 1376 OverwritePersistentCookie,
1379 CookieOrdering, 1377 CookieOrdering,
1380 GetAllCookiesAsync, 1378 GetAllCookiesAsync,
1381 DeleteCookieAsync, 1379 DeleteCookieAsync,
1382 DeleteCanonicalCookieAsync, 1380 DeleteCanonicalCookieAsync,
1383 DeleteSessionCookie); 1381 DeleteSessionCookie);
1384 1382
1385 } // namespace net 1383 } // namespace net
1386 1384
1387 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ 1385 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698