• Home
  • Raw
  • Download

Lines Matching refs:cookies

95   TestVisitor(CookieVector* cookies,  in TestVisitor()  argument
98 : cookies_(cookies), in TestVisitor()
128 const CookieVector& cookies, in SetCookies() argument
131 CookieVector::const_iterator it = cookies.begin(); in SetCookies()
132 for (; it != cookies.end(); ++it) { in SetCookies()
171 CookieVector cookies; in CreateCookie() local
172 cookies.push_back(cookie); in CreateCookie()
174 SetCookies(manager, kTestUrl, cookies, true, event); in CreateCookie()
181 CookieVector& cookies, in VisitUrlCookies() argument
186 new TestVisitor(&cookies, deleteCookies, std::move(callback)))); in VisitUrlCookies()
193 CookieVector& cookies, in VisitUrlCookies() argument
196 VisitUrlCookies(manager, url, includeHttpOnly, cookies, deleteCookies, in VisitUrlCookies()
203 CookieVector& cookies, in VisitAllCookies() argument
207 new TestVisitor(&cookies, deleteCookies, std::move(callback)))); in VisitAllCookies()
212 CookieVector& cookies, in VisitAllCookies() argument
215 VisitAllCookies(manager, cookies, deleteCookies, in VisitAllCookies()
228 CookieVector cookies; in GetCookie() local
231 VisitUrlCookies(manager, kTestUrl, false, cookies, deleteCookies, event); in GetCookie()
233 EXPECT_EQ(1U, cookies.size()); in GetCookie()
234 if (cookies.size() != 1U) in GetCookie()
237 const CefCookie& cookie_read = cookies[0]; in GetCookie()
263 CookieVector cookies; in VerifyNoCookies() local
267 VisitUrlCookies(manager, kTestUrl, false, cookies, false, event); in VerifyNoCookies()
269 VisitAllCookies(manager, cookies, false, event); in VerifyNoCookies()
272 EXPECT_EQ(0U, cookies.size()); in VerifyNoCookies()
311 CookieVector cookies; in TestInvalidCookie() local
319 cookies.push_back(cookie); in TestInvalidCookie()
322 SetCookies(manager, kUrl, cookies, false, event); in TestInvalidCookie()
330 CookieVector cookies; in TestMultipleCookies() local
345 cookies.push_back(cookie); in TestMultipleCookies()
349 SetCookies(manager, kTestUrl, cookies, true, event); in TestMultipleCookies()
350 cookies.clear(); in TestMultipleCookies()
353 VisitUrlCookies(manager, kTestUrl, false, cookies, false, event); in TestMultipleCookies()
355 EXPECT_EQ((CookieVector::size_type)kNumCookies, cookies.size()); in TestMultipleCookies()
357 CookieVector::const_iterator it = cookies.begin(); in TestMultipleCookies()
358 for (i = 0; it != cookies.end(); ++it, ++i) { in TestMultipleCookies()
369 cookies.clear(); in TestMultipleCookies()
375 VisitUrlCookies(manager, kTestUrl, false, cookies, false, event); in TestMultipleCookies()
377 EXPECT_EQ(3U, cookies.size()); in TestMultipleCookies()
378 if (cookies.size() != 3U) in TestMultipleCookies()
381 EXPECT_EQ(CefString(&cookies[0].name), "my_cookie0"); in TestMultipleCookies()
382 EXPECT_EQ(CefString(&cookies[1].name), "my_cookie2"); in TestMultipleCookies()
383 EXPECT_EQ(CefString(&cookies[2].name), "my_cookie3"); in TestMultipleCookies()
385 cookies.clear(); in TestMultipleCookies()
391 VisitUrlCookies(manager, kTestUrl, false, cookies, false, event); in TestMultipleCookies()
393 EXPECT_EQ(0U, cookies.size()); in TestMultipleCookies()
406 cookies.push_back(cookie); in TestMultipleCookies()
410 VisitUrlCookies(manager, kTestUrl, false, cookies, true, event); in TestMultipleCookies()
412 cookies.clear(); in TestMultipleCookies()
415 VisitUrlCookies(manager, kTestUrl, false, cookies, false, event); in TestMultipleCookies()
417 EXPECT_EQ(0U, cookies.size()); in TestMultipleCookies()
422 CookieVector cookies; in TestAllCookies() local
429 VisitAllCookies(manager, cookies, false, event); in TestAllCookies()
431 EXPECT_EQ(0U, cookies.size()); in TestAllCookies()
439 cookies.push_back(cookie1); in TestAllCookies()
440 SetCookies(manager, kUrl1, cookies, true, event); in TestAllCookies()
441 cookies.clear(); in TestAllCookies()
448 cookies.push_back(cookie2); in TestAllCookies()
449 SetCookies(manager, kUrl2, cookies, true, event); in TestAllCookies()
450 cookies.clear(); in TestAllCookies()
453 VisitAllCookies(manager, cookies, false, event); in TestAllCookies()
455 EXPECT_EQ(2U, cookies.size()); in TestAllCookies()
456 if (cookies.size() != 2U) in TestAllCookies()
459 EXPECT_EQ(CefString(&cookies[0].name), "my_cookie1"); in TestAllCookies()
460 EXPECT_EQ(CefString(&cookies[0].value), "My Value 1"); in TestAllCookies()
461 EXPECT_EQ(CefString(&cookies[0].domain), "www.foo.com"); in TestAllCookies()
462 EXPECT_EQ(CefString(&cookies[1].name), "my_cookie2"); in TestAllCookies()
463 EXPECT_EQ(CefString(&cookies[1].value), "My Value 2"); in TestAllCookies()
464 EXPECT_EQ(CefString(&cookies[1].domain), "www.bar.com"); in TestAllCookies()
465 cookies.clear(); in TestAllCookies()
468 VisitUrlCookies(manager, kUrl1, false, cookies, false, event); in TestAllCookies()
470 EXPECT_EQ(1U, cookies.size()); in TestAllCookies()
471 if (cookies.size() != 1U) in TestAllCookies()
474 EXPECT_EQ(CefString(&cookies[0].name), "my_cookie1"); in TestAllCookies()
475 EXPECT_EQ(CefString(&cookies[0].value), "My Value 1"); in TestAllCookies()
476 EXPECT_EQ(CefString(&cookies[0].domain), "www.foo.com"); in TestAllCookies()
477 cookies.clear(); in TestAllCookies()
479 VisitUrlCookies(manager, kUrl2, false, cookies, false, event); in TestAllCookies()
481 EXPECT_EQ(1U, cookies.size()); in TestAllCookies()
482 if (cookies.size() != 1U) in TestAllCookies()
485 EXPECT_EQ(CefString(&cookies[0].name), "my_cookie2"); in TestAllCookies()
486 EXPECT_EQ(CefString(&cookies[0].value), "My Value 2"); in TestAllCookies()
487 EXPECT_EQ(CefString(&cookies[0].domain), "www.bar.com"); in TestAllCookies()
488 cookies.clear(); in TestAllCookies()