OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/net/quota_policy_cookie_store.h" |
5 #include "base/bind.h" | 6 #include "base/bind.h" |
6 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
11 #include "base/test/sequenced_worker_pool_owner.h" | 12 #include "base/test/sequenced_worker_pool_owner.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "content/browser/net/quota_policy_cookie_store.h" | |
15 #include "content/public/test/mock_special_storage_policy.h" | |
16 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "net/cookies/cookie_util.h" | 16 #include "net/cookies/cookie_util.h" |
18 #include "net/ssl/ssl_client_cert_type.h" | 17 #include "net/ssl/ssl_client_cert_type.h" |
19 #include "net/test/cert_test_util.h" | 18 #include "net/test/cert_test_util.h" |
20 #include "net/test/test_data_directory.h" | 19 #include "net/test/test_data_directory.h" |
21 #include "sql/statement.h" | 20 #include "sql/statement.h" |
| 21 #include "storage/browser/test/mock_special_storage_policy.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace { | 25 namespace { |
26 const base::FilePath::CharType kTestCookiesFilename[] = | 26 const base::FilePath::CharType kTestCookiesFilename[] = |
27 FILE_PATH_LITERAL("Cookies"); | 27 FILE_PATH_LITERAL("Cookies"); |
28 } | 28 } |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 namespace { | 31 namespace { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // Reload and test for persistence. | 281 // Reload and test for persistence. |
282 cookies.clear(); | 282 cookies.clear(); |
283 CreateAndLoad(storage_policy.get(), &cookies); | 283 CreateAndLoad(storage_policy.get(), &cookies); |
284 EXPECT_EQ(0U, cookies.size()); | 284 EXPECT_EQ(0U, cookies.size()); |
285 | 285 |
286 cookies.clear(); | 286 cookies.clear(); |
287 } | 287 } |
288 | 288 |
289 } // namespace | 289 } // namespace |
290 } // namespace content | 290 } // namespace content |
OLD | NEW |