Lines Matching refs:cm
51 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL)); in TEST() local
61 EXPECT_TRUE(cm->SetCookie(kUrlGoogle, *it)); in TEST()
68 cm->GetCookies(kUrlGoogle); in TEST()
73 cm->DeleteAll(false); in TEST()
78 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL)); in TEST() local
89 EXPECT_TRUE(cm->SetCookie(*it, cookie)); in TEST()
96 cm->GetCookies(*it); in TEST()
101 cm->DeleteAll(false); in TEST()
110 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL)); in TEST() local
120 EXPECT_EQ("top.com", cm->GetKey(domain_base_1)); in TEST()
124 EXPECT_EQ("top.com", cm->GetKey(domain_base_2)); in TEST()
128 EXPECT_EQ("top.com", cm->GetKey(domain_base_3)); in TEST()
132 EXPECT_EQ("top.com", cm->GetKey(domain_base_4)); in TEST()
146 EXPECT_TRUE(cm->SetCookie(gurl, cookie)); in TEST()
148 EXPECT_EQ(31u, cm->GetAllCookies().size()); in TEST()
152 cookie_line = cm->GetCookies(probe_gurl); in TEST()
157 cm->GetCookies(probe_gurl); in TEST()
164 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL)); in TEST() local
188 EXPECT_TRUE(cm->SetCookie(gurl, cookie)); in TEST()
191 EXPECT_EQ(32u, cm->GetAllCookies().size()); in TEST()
193 cookie_line = cm->GetCookies(probe_gurl); in TEST()
197 cm->GetCookies(probe_gurl); in TEST()
224 scoped_refptr<CookieMonster> cm(new CookieMonster(store, NULL)); in TEST() local
230 cm->GetCookiesWithOptions(gurl, options); in TEST()
234 EXPECT_EQ("domain_1.com", cm->GetKey("www.Domain_1.com")); in TEST()
238 scoped_refptr<CookieMonster> cm(new CookieMonster(NULL, NULL)); in TEST() local
241 cm->GetKey("www.google.com"); in TEST()
288 scoped_refptr<CookieMonster> cm( in TEST() local
296 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); in TEST()
300 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); in TEST()