Lines Matching refs:CookieMonster
45 : public CookieMonster::PersistentCookieStore {
90 return new CookieMonster(NULL, NULL);
102 INSTANTIATE_TYPED_TEST_CASE_P(CookieMonster,
106 INSTANTIATE_TYPED_TEST_CASE_P(CookieMonster,
113 CookieList GetAllCookies(CookieMonster* cm) {
124 CookieList GetAllCookiesForURL(CookieMonster* cm,
136 CookieList GetAllCookiesForURLWithOptions(CookieMonster* cm,
149 bool SetCookieWithDetails(CookieMonster* cm,
172 int DeleteAll(CookieMonster*cm) {
184 int DeleteAllCreatedBetween(CookieMonster*cm,
199 int DeleteAllCreatedBetweenForHost(CookieMonster* cm,
215 int DeleteAllForHost(CookieMonster* cm,
227 bool DeleteCanonicalCookie(CookieMonster* cm, const CanonicalCookie& cookie) {
241 void PopulateCmForDeleteAllForHost(scoped_refptr<CookieMonster> cm) {
403 Time GetFirstCookieAccessDate(CookieMonster* cm) {
408 bool FindAndDeleteCookie(CookieMonster* cm,
424 int domain_max_cookies = CookieMonster::kDomainMaxCookies;
425 int domain_purge_cookies = CookieMonster::kDomainPurgeCookies;
430 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
447 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
487 // Instantiates a CookieMonster, adds multiple cookies (to url_google_) with
499 void TestPriorityCookieCase(CookieMonster* cm,
574 DCHECK_EQ(180U, CookieMonster::kDomainMaxCookies);
575 DCHECK_EQ(150U, CookieMonster::kDomainMaxCookies -
576 CookieMonster::kDomainPurgeCookies);
577 DCHECK_EQ(30U, CookieMonster::kDomainCookiesQuotaLow);
578 DCHECK_EQ(50U, CookieMonster::kDomainCookiesQuotaMedium);
579 DCHECK_EQ(70U, CookieMonster::kDomainCookiesQuotaHigh);
581 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
624 CookieMonster* CreateMonsterForGC(int num_cookies) {
625 CookieMonster* cm(new CookieMonster(NULL, NULL));
664 CookieMonster::GetCookieListCallback> {
671 CookieMonster::DeleteCallback> {
678 CookieMonster::DeleteCookieCallback> {
760 // This test suite verifies the task deferral behaviour of the CookieMonster.
771 cookie_monster_ = new CookieMonster(persistent_store_.get(), NULL);
846 // Returns the CookieMonster instance under test.
847 CookieMonster& cookie_monster() { return *cookie_monster_.get(); }
855 // Stores the callback passed from the CookieMonster to the
857 CookieMonster::PersistentCookieStore::LoadedCallback loaded_callback_;
858 // Stores the callback passed from the CookieMonster to the
860 std::queue<CookieMonster::PersistentCookieStore::LoadedCallback>
863 // Stores the CookieMonster under test.
864 scoped_refptr<CookieMonster> cookie_monster_;
1133 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
1164 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1208 scoped_refptr<CookieMonster> cm(
1209 new CookieMonster(NULL, NULL, kLastAccessThresholdMilliseconds));
1235 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1250 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1251 scoped_refptr<CookieMonster> cm_foo(new CookieMonster(NULL, NULL));
1267 scoped_refptr<CookieMonster> cm(
1268 new CookieMonster(NULL, NULL, kLastAccessThresholdMilliseconds));
1336 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1373 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1395 scoped_refptr<CookieMonster> cm_1(new CookieMonster(NULL, NULL));
1409 scoped_refptr<CookieMonster> cm_2(new CookieMonster(NULL, NULL));
1443 // violation of a CookieMonster invariant) even if Time::Now() doesn't
1495 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
1544 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
1561 scoped_refptr<CookieMonster> cm(
1562 new CookieMonster(store.get(), delegate.get()));
1635 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1762 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1834 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1838 // CookieMonster and confirm that none of them have duplicate
1912 // expected behavior of GetEffectiveDomain within the CookieMonster.
1914 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
1959 scoped_refptr<CookieMonster> cmout(new CookieMonster(store.get(), NULL));
1981 scoped_refptr<CookieMonster> cmin(new CookieMonster(store.get(), NULL));
2010 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2069 scoped_refptr<CookieMonster> cm(
2070 CreateMonsterForGC(CookieMonster::kMaxCookies * 2));
2071 EXPECT_EQ(CookieMonster::kMaxCookies * 2, GetAllCookies(cm.get()).size());
2073 EXPECT_EQ(CookieMonster::kMaxCookies * 2 + 1,
2089 CookieMonster::kMaxCookies * 2,
2091 CookieMonster::kMaxCookies * 2,
2092 CookieMonster::kMaxCookies * 2 + 1
2095 CookieMonster::kMaxCookies * 2,
2096 CookieMonster::kMaxCookies / 2,
2097 CookieMonster::kMaxCookies * 2,
2098 CookieMonster::kMaxCookies * 2 - CookieMonster::kMaxCookies / 2 + 1
2101 CookieMonster::kMaxCookies * 2,
2102 CookieMonster::kMaxCookies + CookieMonster::kPurgeCookies + 1,
2103 CookieMonster::kMaxCookies * 2,
2104 CookieMonster::kMaxCookies - CookieMonster::kPurgeCookies
2108 CookieMonster::kMaxCookies * 2,
2109 CookieMonster::kMaxCookies * 3 / 2,
2110 CookieMonster::kMaxCookies * 2,
2111 CookieMonster::kMaxCookies - CookieMonster::kPurgeCookies
2117 scoped_refptr<CookieMonster> cm(
2120 CookieMonster::kSafeFromGlobalPurgeDays * 2));
2132 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2164 class FlushablePersistentStore : public CookieMonster::PersistentCookieStore {
2229 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
2264 cm = new CookieMonster(NULL, NULL);
2278 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2319 // Helper methods for calling the asynchronous CookieMonster methods
2322 void GetAllCookiesTask(CookieMonster* cm,
2328 void GetAllCookiesForURLTask(CookieMonster* cm,
2336 void GetAllCookiesForURLWithOptionsTask(CookieMonster* cm,
2345 void SetCookieWithDetailsTask(CookieMonster* cm, const GURL& url,
2365 void DeleteAllCreatedBetweenTask(CookieMonster* cm,
2375 void DeleteAllForHostTask(CookieMonster* cm,
2385 CookieMonster* cm,
2397 void DeleteCanonicalCookieTask(CookieMonster* cm,
2421 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2444 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2467 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2492 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2514 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2534 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2551 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2594 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL));
2623 // Test that CookieMonster writes session cookies into the underlying
2628 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
2665 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));
2736 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL));