Home
last modified time | relevance | path

Searched refs:partition_key (Results 1 – 9 of 9) sorted by relevance

/external/cronet/net/cookies/
Dcookie_partition_key_fuzzer.cc29 absl::optional<CookiePartitionKey> partition_key = in LLVMFuzzerTestOneInput() local
34 CHECK_NE(is_opaque, CookiePartitionKey::Serialize(partition_key, tmp)); in LLVMFuzzerTestOneInput()
36 CHECK_NE(is_opaque, CookiePartitionKey::Deserialize(url_str, partition_key)); in LLVMFuzzerTestOneInput()
40 partition_key); in LLVMFuzzerTestOneInput()
Dcanonical_cookie_fuzzer.cc60 const auto partition_key = absl::make_optional<CookiePartitionKey>( in LLVMFuzzerTestOneInput() local
69 data_provider.ConsumeBool() /* same_party */, partition_key); in LLVMFuzzerTestOneInput()
Dcanonical_cookie.h95 absl::optional<CookiePartitionKey> partition_key,
151 absl::optional<CookiePartitionKey> partition_key,
175 absl::optional<CookiePartitionKey> partition_key,
195 absl::optional<CookiePartitionKey> partition_key = absl::nullopt,
Dcanonical_cookie.cc374 absl::optional<CookiePartitionKey> partition_key, in CanonicalCookie() argument
390 partition_key_(std::move(partition_key)), in CanonicalCookie()
709 absl::optional<CookiePartitionKey> partition_key, in CreateSanitizedCookie() argument
830 /*is_partitioned=*/partition_key.has_value(), in CreateSanitizedCookie()
832 CookiePartitionKey::HasNonce(partition_key))) { in CreateSanitizedCookie()
850 same_party, partition_key, source_scheme, source_port); in CreateSanitizedCookie()
871 absl::optional<CookiePartitionKey> partition_key, in FromStorage() argument
886 partition_key, source_scheme, validated_port); in FromStorage()
916 absl::optional<CookiePartitionKey> partition_key, in CreateUnsafeCookieForTesting() argument
922 priority, same_party, partition_key, source_scheme, source_port); in CreateUnsafeCookieForTesting()
Dcookie_store.cc48 const absl::optional<CookiePartitionKey>& partition_key) const { in SiteHasCookieInOtherPartition()
Dcookie_monster.cc1450 CookiePartitionKey partition_key(cc->PartitionKey().value()); in InternalInsertPartitionedCookie() local
1452 partitioned_cookies_.find(partition_key); in InternalInsertPartitionedCookie()
1457 std::move(partition_key), std::make_unique<CookieMap>())) in InternalInsertPartitionedCookie()
2257 for (const auto& [partition_key, cookie_map] : partitioned_cookies_) { in DoRecordPeriodicStats()
2422 const absl::optional<CookiePartitionKey>& partition_key) const { in SiteHasCookieInOtherPartition()
2426 if (!partition_key) in SiteHasCookieInOtherPartition()
2436 if (it.first == partition_key || CookiePartitionKey::HasNonce(it.first)) in SiteHasCookieInOtherPartition()
Dcanonical_cookie_unittest.cc709 auto partition_key = absl::make_optional( in TEST() local
716 server_time, partition_key, &status); in TEST()
721 EXPECT_EQ(partition_key, cookie->PartitionKey()); in TEST()
729 server_time, partition_key, &status); in TEST()
739 creation_time, server_time, partition_key, in TEST()
744 EXPECT_EQ(partition_key, cookie->PartitionKey()); in TEST()
750 server_time, partition_key, &status); in TEST()
759 server_time, partition_key, &status); in TEST()
763 EXPECT_EQ(partition_key, cookie->PartitionKey()); in TEST()
769 partition_key, &status); in TEST()
[all …]
Dcookie_monster_unittest.cc4682 absl::optional<CookiePartitionKey> partition_key = absl::nullopt; in TEST_F() local
4687 CanonicalCookie::Create(url, cookie_line, t1, server_time, partition_key); in TEST_F()
4695 CanonicalCookie::Create(url, cookie_line, t2, server_time, partition_key); in TEST_F()
4704 CanonicalCookie::Create(url, cookie_line, t2, server_time, partition_key); in TEST_F()
5555 auto partition_key = in TEST_F() local
5559 EXPECT_FALSE(cm->SiteHasCookieInOtherPartition(site, partition_key)); in TEST_F()
5564 EXPECT_THAT(cm->SiteHasCookieInOtherPartition(site, partition_key), in TEST_F()
5570 absl::nullopt, absl::nullopt, partition_key)); in TEST_F()
5573 EXPECT_THAT(cm->SiteHasCookieInOtherPartition(site, partition_key), in TEST_F()
5591 EXPECT_THAT(cm->SiteHasCookieInOtherPartition(site, partition_key), in TEST_F()
[all …]
Dcookie_monster.h213 const absl::optional<CookiePartitionKey>& partition_key) const override;