OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 base::Time remove_begin; | 111 base::Time remove_begin; |
112 base::Time remove_end; | 112 base::Time remove_end; |
113 StoragePartition::OriginMatcherFunction origin_matcher; | 113 StoragePartition::OriginMatcherFunction origin_matcher; |
114 StoragePartition::CookieMatcherFunction cookie_matcher; | 114 StoragePartition::CookieMatcherFunction cookie_matcher; |
115 | 115 |
116 StoragePartitionRemovalData() {} | 116 StoragePartitionRemovalData() {} |
117 }; | 117 }; |
118 | 118 |
119 net::CanonicalCookie CreateCookieWithHost(const GURL& source) { | 119 net::CanonicalCookie CreateCookieWithHost(const GURL& source) { |
120 std::unique_ptr<net::CanonicalCookie> cookie(net::CanonicalCookie::Create( | 120 std::unique_ptr<net::CanonicalCookie> cookie(net::CanonicalCookie::Create( |
121 source, "A", "1", std::string(), "/", base::Time::Now(), | 121 "A", "1", "." + source.host(), "/", base::Time::Now(), base::Time::Now(), |
mmenke
2017/05/05 17:51:56
I think this used to be exact matches? (i.e., no
Randy Smith (Not in Mondays)
2017/05/05 21:12:58
Yep, oops. Doesn't change the test outcome to fix
| |
122 base::Time::Now(), false, false, net::CookieSameSite::DEFAULT_MODE, | 122 base::Time(), false, false, net::CookieSameSite::DEFAULT_MODE, |
123 net::COOKIE_PRIORITY_MEDIUM)); | 123 net::COOKIE_PRIORITY_MEDIUM)); |
124 EXPECT_TRUE(cookie); | 124 EXPECT_TRUE(cookie); |
125 return *cookie; | 125 return *cookie; |
126 } | 126 } |
127 | 127 |
128 class TestStoragePartition : public StoragePartition { | 128 class TestStoragePartition : public StoragePartition { |
129 public: | 129 public: |
130 TestStoragePartition() {} | 130 TestStoragePartition() {} |
131 ~TestStoragePartition() override {} | 131 ~TestStoragePartition() override {} |
132 | 132 |
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1648 | 1648 |
1649 // Add one more deletion and wait for it. | 1649 // Add one more deletion and wait for it. |
1650 BlockUntilBrowsingDataRemoved( | 1650 BlockUntilBrowsingDataRemoved( |
1651 base::Time(), base::Time::Max(), BrowsingDataRemover::DATA_TYPE_COOKIES, | 1651 base::Time(), base::Time::Max(), BrowsingDataRemover::DATA_TYPE_COOKIES, |
1652 BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB); | 1652 BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB); |
1653 | 1653 |
1654 EXPECT_FALSE(remover->is_removing()); | 1654 EXPECT_FALSE(remover->is_removing()); |
1655 } | 1655 } |
1656 | 1656 |
1657 } // namespace content | 1657 } // namespace content |
OLD | NEW |