• Home
  • Raw
  • Download

Lines Matching +full:post +full:- +full:dates

2 // Use of this source code is governed by a BSD-style license that can be
25 #include "third_party/abseil-cpp/absl/types/optional.h"
35 // Used for malformed cookies where the parsed-then-serialized string does not
63 // A cookie domain containing non-ASCII characters is not allowed, even if it
109 // A cookie domain string containing %-encoding is not allowed.
150 // domain, even if its capitalization is non-canonical.
169 // A cookie domain with a different eTLD+1 ("organization-identifying host")
252 // rfc6265bis-11#5.1.2 and will cause GetDomainAndRegistry to return an empty
286 // A cookie domain with a dot-prefixed IP is allowed, if the IP matches
312 {"Sat, 15-Apr-17 21:01:22 GMT", true, 1492290082}, in TEST()
313 {"Thu, 19-Apr-2007 16:00:00 GMT", true, 1176998400}, in TEST()
317 {"Wednesday, 1-Jan-2003 00:00:00 GMT", true, 1041379200}, in TEST()
318 {", 1-Jan-2003 00:00:00 GMT", true, 1041379200}, in TEST()
319 {" 1-Jan-2003 00:00:00 GMT", true, 1041379200}, in TEST()
320 {"1-Jan-2003 00:00:00 GMT", true, 1041379200}, in TEST()
321 {"Wed,18-Apr-07 22:50:12 GMT", true, 1176936612}, in TEST()
322 {"WillyWonka , 18-Apr-07 22:50:12 GMT", true, 1176936612}, in TEST()
323 {"WillyWonka , 18-Apr-07 22:50:12", true, 1176936612}, in TEST()
324 {"WillyWonka , 18-apr-07 22:50:12", true, 1176936612}, in TEST()
325 {"Mon, 18-Apr-1977 22:50:13 GMT", true, 230251813}, in TEST()
326 {"Mon, 18-Apr-77 22:50:13 GMT", true, 230251813}, in TEST()
329 {"\"Sat, 15-Apr-17\\\"21:01:22\\\"GMT\"", true, 1492290082}, in TEST()
331 {"Partyday, 18- April-07 22:50:12", true, 1176936612}, in TEST()
332 {"Partyday, 18 - Apri-07 22:50:12", true, 1176936612}, in TEST()
333 {"Wednes, 1-Januar-2003 00:00:00 GMT", true, 1041379200}, in TEST()
337 {"Sat, 15-Apr-17 21:01:22", true, 1492290082}, in TEST()
338 {"Sat, 15-Apr-17 21:01:22 GMT-2", true, 1492290082}, in TEST()
339 {"Sat, 15-Apr-17 21:01:22 GMT BLAH", true, 1492290082}, in TEST()
340 {"Sat, 15-Apr-17 21:01:22 GMT-0400", true, 1492290082}, in TEST()
341 {"Sat, 15-Apr-17 21:01:22 GMT-0400 (EDT)", true, 1492290082}, in TEST()
342 {"Sat, 15-Apr-17 21:01:22 DST", true, 1492290082}, in TEST()
343 {"Sat, 15-Apr-17 21:01:22 -0400", true, 1492290082}, in TEST()
344 {"Sat, 15-Apr-17 21:01:22 (hello there)", true, 1492290082}, in TEST()
347 {"Sat, 15-Apr-17 21:01:22 11:22:33", true, 1492290082}, in TEST()
348 {"Sat, 15-Apr-17 ::00 21:01:22", true, 1492290082}, in TEST()
349 {"Sat, 15-Apr-17 boink:z 21:01:22", true, 1492290082}, in TEST()
351 {"Sat, 15-Apr-17 91:22:33 21:01:22", false, 0}, in TEST()
362 {"Sat, 15-Apr-17 21:01:22 GMT", true, 1492290082}, in TEST()
363 {"15-Sat, Apr-17 21:01:22 GMT", true, 1492290082}, in TEST()
364 {"15-Sat, Apr 21:01:22 GMT 17", true, 1492290082}, in TEST()
365 {"15-Sat, Apr 21:01:22 GMT 2017", true, 1492290082}, in TEST()
372 // Test two-digit abbreviated year numbers. in TEST()
373 {"1-Jan-71 00:00:00 GMT" /* 1971 */, true, 31536000}, in TEST()
374 {"1-Jan-70 00:00:00 GMT" /* 1970 */, true, 0}, in TEST()
375 {"1-Jan-69 00:00:00 GMT" /* 2069 */, true, 3124224000}, in TEST()
376 {"1-Jan-68 00:00:00 GMT" /* 2068 */, true, 3092601600}, in TEST()
377 // Some invalid dates in TEST()
379 {"Thu, 012-Aug-2008 20:49:07 GMT", false, 0}, in TEST()
380 {"Thu, 12-Aug-9999999999 20:49:07 GMT", false, 0}, in TEST()
381 {"Thu, 999999999999-Aug-2007 20:49:07 GMT", false, 0}, in TEST()
382 {"Thu, 12-Aug-2007 20:61:99999999999 GMT", false, 0}, in TEST()
386 {"Thu, 33-Aug-31841 20:49:07 GMT", false, 0}, in TEST()
401 // Tests parsing dates that are beyond 2038. 32-bit (non-Mac) POSIX systems are
408 "Thu, 12-Aug-31841 20:49:07 GMT", "2039 April 15 21:01:22", in TEST()
424 // Tests parsing dates that are prior to (or around) 1970. Non-Mac POSIX systems
433 "1-Jan-70 00:00:00", in TEST()
673 // cross-site redirects.
764 // chains that are same-site or cross-site with respect to kSiteUrl.
779 // Same-site-same-scheme URLs are always same-site. (ws counts as in GetSameSiteUrls()
780 // same-scheme with http.) in GetSameSiteUrls()
783 // If schemeless, the cross-scheme URLs are also same-site. in GetSameSiteUrls()
809 // If schemeless, the cross-scheme SFC is also same-site. in GetSameSiteSitesForCookies()
838 // If schemeless, the cross-scheme origins are also same-site. in GetSameSiteInitiators()
858 // current request URL, and are completely same-site. `url` is expected to be
859 // same-site to kSiteUrl.
873 // current request URL, and are cross-site. `url` is expected to be same-site
947 // If the SiteForCookies and URL are cross-site, then the context is always in TEST_P()
948 // cross-site. in TEST_P()
953 for (const std::string& method : {"GET", "POST", "PUT", "HEAD"}) { in TEST_P()
974 // If the current request URL is cross-site to the site-for-cookies, in TEST_P()
975 // the request context is always cross-site even if the URL chain in TEST_P()
976 // contains members that are same-site to the site-for-cookies. in TEST_P()
1002 // schemefully same-site, the schemeful context type will be cross-site. in TEST_P()
1014 for (const std::string& method : {"GET", "POST", "PUT", "HEAD"}) { in TEST_P()
1024 // If the site-for-cookies isn't schemefully_same, this cannot be a in TEST_P()
1049 // Same-site site-for-cookies. in TEST_P()
1050 // (Cross-site cases covered above in UrlAndSiteForCookiesCrossSite test.) in TEST_P()
1053 // Cross-site initiator -> it's same-site lax. in TEST_P()
1062 // Same-site initiator -> it's same-site strict. in TEST_P()
1123 // Same-site site-for-cookies. in TEST_P()
1124 // (Cross-site cases covered above in UrlAndSiteForCookiesCrossSite test.) in TEST_P()
1127 // Same-Site initiator -> it's same-site strict. in TEST_P()
1130 for (const std::string& method : {"GET", "POST", "PUT", "HEAD"}) { in TEST_P()
1142 // Cross-Site initiator -> it's same-site lax iff the method is safe. in TEST_P()
1145 // For main frame navigations, the context is Lax (or Lax-unsafe). in TEST_P()
1155 for (const std::string& method : {"POST", "PUT"}) { in TEST_P()
1165 // For non-main-frame-navigation requests, the context should be in TEST_P()
1166 // cross-site. in TEST_P()
1167 for (const std::string& method : {"GET", "POST", "PUT", "HEAD"}) { in TEST_P()
1183 // Cross-scheme URL and site-for-cookies with (schemelessly) same-site in TEST_P()
1185 // (The request cannot be a main frame navigation if the site-for-cookies is in TEST_P()
1186 // not schemefully same-site). in TEST_P()
1187 for (const std::string& method : {"GET", "POST"}) { in TEST_P()
1202 // Schemefully same-site URL and site-for-cookies with cross-scheme in TEST_P()
1227 "POST", {kSecureSiteUrl}, kSecureSiteForCookies, in TEST_P()
1233 "POST", {kSiteUrl}, kSiteForCookies, kSecureSiteInitiator, in TEST_P()
1238 // Cross-scheme URL and site-for-cookies with cross-site initiator. in TEST_P()
1239 // (The request cannot be a main frame navigation if the site-for-cookies is in TEST_P()
1240 // not schemefully same-site). in TEST_P()
1253 "POST", {kSiteUrl}, kSecureSiteForCookies, kCrossSiteInitiator, in TEST_P()
1258 "POST", {kSecureSiteUrl}, kSiteForCookies, kCrossSiteInitiator, in TEST_P()
1291 // member (current request URL) is same-site to kSiteUrl. (Everything is listed
1292 // as same-site or cross-site relative to kSiteUrl.)
1300 ContextType expected_context_type; // for non-main-frame-nav requests. in TEST_P()
1308 // If the url chain is same-site, then the result is the same with or in TEST_P()
1326 // If the url chain is cross-site, then the result will differ depending in TEST_P()
1327 // on whether the redirect chain is considered, when the site-for-cookies in TEST_P()
1328 // and initiator are both same-site. in TEST_P()
1345 // If the url chain is same-site, then the result is the same with or in TEST_P()
1347 {"POST", true, true, true, ContextType::SAME_SITE_STRICT, in TEST_P()
1351 {"POST", true, true, false, ContextType::CROSS_SITE, in TEST_P()
1355 {"POST", true, false, true, ContextType::CROSS_SITE, in TEST_P()
1359 {"POST", true, false, false, ContextType::CROSS_SITE, in TEST_P()
1363 // If the url chain is cross-site, then the result will differ depending in TEST_P()
1364 // on whether the redirect chain is considered, when the site-for-cookies in TEST_P()
1365 // and initiator are both same-site. in TEST_P()
1366 {"POST", false, true, true, ContextType::CROSS_SITE, in TEST_P()
1370 {"POST", false, true, false, ContextType::CROSS_SITE, in TEST_P()
1374 {"POST", false, false, true, ContextType::CROSS_SITE, in TEST_P()
1378 {"POST", false, false, false, ContextType::CROSS_SITE, in TEST_P()
1419 << (initiator ? initiator->Serialize() : "nullopt"); in TEST_P()
1438 << (initiator ? initiator->Serialize() : "nullopt"); in TEST_P()
1449 // Same-site site-for-cookies -> it's same-site lax. in TEST_P()
1450 // (Cross-site cases covered above in UrlAndSiteForCookiesCrossSite test.) in TEST_P()
1489 // Same-site site-for-cookies. in TEST_P()
1490 // (Cross-site cases covered above in UrlAndSiteForCookiesCrossSite test.) in TEST_P()
1505 // For non-main-frame-navigation requests, the context should be lax iff in TEST_P()
1506 // the initiator is same-site, and cross-site otherwise. in TEST_P()
1531 // URL and site-for-cookies are cross-scheme. in TEST_P()
1532 // (If the URL and site-for-cookies are not schemefully same-site, this cannot in TEST_P()
1534 // With same-site initiator: in TEST_P()
1547 // With cross-site initiator: in TEST_P()
1559 // Schemefully same-site URL and site-for-cookies with cross-scheme in TEST_P()
1584 // Same-site initiators. in TEST_P()
1592 // Cross-site initiators. in TEST_P()
1604 // member (current request URL) is same-site to kSiteUrl. (Everything is listed
1605 // as same-site or cross-site relative to kSiteUrl.)
1612 ContextType expected_context_type; // for non-main-frame-nav requests. in TEST_P()
1620 // If the url chain is same-site, then the result is the same with or in TEST_P()
1634 // If the url chain is cross-site, then the result will differ depending in TEST_P()
1635 // on whether the redirect chain is considered, when the site-for-cookies in TEST_P()
1636 // and initiator are both same-site. in TEST_P()
1687 << (initiator ? initiator->Serialize() : "nullopt"); in TEST_P()
1706 << (initiator ? initiator->Serialize() : "nullopt"); in TEST_P()
1715 // Same-site site-for-cookies. in TEST_P()
1716 // (Cross-site cases covered above in UrlAndSiteForCookiesCrossSite test.) in TEST_P()
1756 // force_ignore_site_for_cookies overrides all checks and returns same-site in TEST_P()
1761 for (const std::string& method : {"GET", "POST", "PUT", "HEAD"}) { in TEST_P()
1930 // Note: some SameParty cookie configurations (e.g. non-Secure cookies) are in TEST()