Lines Matching refs:Path
56 // * Two domain path cookies (.c.b.a/dir1, .c.b.a/dir1/dir2)
57 // * Two host path cookies (w.c.b.a/dir1, w.c.b.a/dir1/dir2)
95 // Domain path cookies
105 // Host path cookies
157 "aBc=" + input + " ; path=\"/\" ; httponly ");
165 // If a path was quoted, the path attribute keeps the quotes. This will
166 // make the cookie effectively useless, but path parameters aren't supposed
168 EXPECT_EQ("\"/\"", pc.Path());
173 CookieMonster::ParsedCookie pc("BLAHHH; path=/; secure;");
177 EXPECT_EQ("/", pc.Path());
183 CookieMonster::ParsedCookie pc("BLAHHH; Path=/; sECuRe; httpONLY");
188 EXPECT_EQ("/", pc.Path());
195 CookieMonster::ParsedCookie pc("\"BLA\\\"HHH\"; path=/; secure;");
199 EXPECT_EQ("/", pc.Path());
222 CookieMonster::ParsedCookie pc("ABC=; path = /wee");
227 EXPECT_EQ("/wee", pc.Path());
259 "path=/ ; ");
266 EXPECT_EQ("/", pc.Path());
273 "path=/ ; ");
279 EXPECT_EQ("/", pc.Path());
364 static const char kValidCookieLine[] = "A=B; path=/";
365 static const char kValidDomainCookieLine[] = "A=B; path=/; domain=google.izzle";
657 EXPECT_TRUE(cm->SetCookie(GURL(url), "A=B; path=/wee"));
665 // If we add a 0 length path, it should default to /
666 EXPECT_TRUE(cm->SetCookie(GURL(url), "A=C; path="));
1176 path");
1177 GURL http_url("http://host/path");
1264 "A=B; path=/foo;",
1267 "C=D; path=/bar;",
1278 EXPECT_EQ("/foo", it->Path());
1282 EXPECT_EQ("/", it->Path());
1291 EXPECT_EQ("/bar", it->Path());
1295 EXPECT_EQ("/", it->Path());
1304 EXPECT_TRUE(cm->SetCookie(url_google, "A=A1; path=/"));
1305 EXPECT_TRUE(cm->SetCookie(url_google, "A=A2; path=/foo"));
1306 EXPECT_TRUE(cm->SetCookie(url_google, "A=A3; path=/bar"));
1307 EXPECT_TRUE(cm->SetCookie(url_google, "B=B1; path=/"));
1308 EXPECT_TRUE(cm->SetCookie(url_google, "B=B2; path=/foo"));
1309 EXPECT_TRUE(cm->SetCookie(url_google, "B=B3; path=/bar"));
1332 // Insert a cookie "a" for path "/path1"
1334 cm->SetCookie(url_google, "a=val1; path=/path1; "
1339 // Insert a cookie "b" for path "/path1"
1341 cm->SetCookie(url_google, "b=val1; path=/path1; "
1346 // Insert a cookie "b" for path "/path1", that is httponly. This should
1352 "b=val2; path=/path1; httponly; "
1359 // Insert a cookie "a" for path "/path1". This should overwrite.
1361 "a=val33; path=/path1; "
1367 // Insert a cookie "a" for path "/path2". This should NOT overwrite
1368 // cookie "a", since the path is different.
1370 "a=val9; path=/path2; "
1375 // Insert a cookie "a" for path "/path1", but this time for "chromium.org".
1376 // Although the name and path match, the hostnames do not, so shouldn't
1379 "a=val99; path=/path1; "
1407 // Insert 4 cookies with name "X" on path "/", with varying creation
1412 "X=1; path=/; expires=Mon, 18-Apr-22 22:50:14 GMT",
1417 "X=2; path=/; expires=Mon, 18-Apr-22 22:50:14 GMT",
1423 "X=3; path=/; expires=Mon, 18-Apr-22 22:50:14 GMT",
1428 "X=4; path=/; expires=Mon, 18-Apr-22 22:50:14 GMT",
1432 // Insert 2 cookies with name "X" on path "/2", with varying creation
1437 "X=a1; path=/2; expires=Mon, 18-Apr-22 22:50:14 GMT",
1442 "X=a2; path=/2; expires=Mon, 18-Apr-22 22:50:14 GMT",
1446 // Insert 1 cookie with name "Y" on path "/".
1448 "Y=a; path=/; expires=Mon, 18-Apr-22 22:50:14 GMT",
1457 // Verify that duplicates were not imported for path "/".
1461 // Verify that same-named cookie on a different path ("/x2") didn't get
1493 AddCookieToList("www.google.com", "X=1; path=/", now, &initial_cookies);
1494 AddCookieToList("www.google.com", "X=2; path=/", now, &initial_cookies);
1495 AddCookieToList("www.google.com", "X=3; path=/", now, &initial_cookies);
1496 AddCookieToList("www.google.com", "X=4; path=/", now, &initial_cookies);
1498 AddCookieToList("www.google.com", "Y=1; path=/", earlier, &initial_cookies);
1499 AddCookieToList("www.google.com", "Y=2; path=/", earlier, &initial_cookies);
1500 AddCookieToList("www.google.com", "Y=3; path=/", earlier, &initial_cookies);
1501 AddCookieToList("www.google.com", "Y=4; path=/", earlier, &initial_cookies);
1559 // Insert a cookie "a" for path "/path1"
1561 cm->SetCookie(url_google, "a=val1; path=/path1; "
1572 // Insert a cookie "a" for path "/path1", that is httponly. This should
1578 "a=val2; path=/path1; httponly; "
1638 EXPECT_EQ("/foo", it->Path());
1652 EXPECT_EQ("/bar", it->Path());
1664 EXPECT_EQ("/", it->Path());
1678 // * URL with path, mid-level (https:/w.c.b.a/dir1/xx)
1681 // path cookies. http_only, secure, and paths are ignored by
1847 std::string path;
1853 {"http://a.b.google.com", "a", "1", "", "/path/to/cookie", expires,
1855 {"https://www.google.com", "b", "2", ".google.com", "/path/from/cookie",
1857 {"https://google.com", "c", "3", "", "/another/path/to/cookie",
1869 p->domain, p->path, p->expires,
1873 input_info[INPUT_DELETE].path),
1882 // Ordering is path length, then creation time. So second cookie
1893 EXPECT_EQ(input->path, output->Path());