| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
| 16 #include "content/browser/gpu/shader_disk_cache.h" | 16 #include "content/browser/gpu/shader_disk_cache.h" |
| 17 #include "content/browser/quota/mock_quota_manager.h" | |
| 18 #include "content/browser/storage_partition_impl.h" | 17 #include "content/browser/storage_partition_impl.h" |
| 19 #include "content/public/browser/local_storage_usage_info.h" | 18 #include "content/public/browser/local_storage_usage_info.h" |
| 20 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
| 21 #include "content/public/test/mock_special_storage_policy.h" | |
| 22 #include "content/public/test/test_browser_context.h" | 20 #include "content/public/test/test_browser_context.h" |
| 23 #include "content/public/test/test_browser_thread.h" | 21 #include "content/public/test/test_browser_thread.h" |
| 24 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
| 25 #include "net/base/test_completion_callback.h" | 23 #include "net/base/test_completion_callback.h" |
| 26 #include "net/cookies/canonical_cookie.h" | 24 #include "net/cookies/canonical_cookie.h" |
| 27 #include "net/cookies/cookie_store.h" | 25 #include "net/cookies/cookie_store.h" |
| 28 #include "net/url_request/url_request_context.h" | 26 #include "net/url_request/url_request_context.h" |
| 29 #include "net/url_request/url_request_context_getter.h" | 27 #include "net/url_request/url_request_context_getter.h" |
| 30 #include "storage/browser/quota/quota_manager.h" | 28 #include "storage/browser/quota/quota_manager.h" |
| 29 #include "storage/browser/test/mock_quota_manager.h" |
| 30 #include "storage/browser/test/mock_special_storage_policy.h" |
| 31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
| 32 | 32 |
| 33 #if defined(ENABLE_PLUGINS) | 33 #if defined(ENABLE_PLUGINS) |
| 34 #include "ppapi/shared_impl/ppapi_constants.h" | 34 #include "ppapi/shared_impl/ppapi_constants.h" |
| 35 #include "storage/browser/fileapi/async_file_util.h" | 35 #include "storage/browser/fileapi/async_file_util.h" |
| 36 #include "storage/browser/fileapi/file_system_context.h" | 36 #include "storage/browser/fileapi/file_system_context.h" |
| 37 #include "storage/browser/fileapi/file_system_operation_context.h" | 37 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 38 #include "storage/browser/fileapi/isolated_context.h" | 38 #include "storage/browser/fileapi/isolated_context.h" |
| 39 #include "storage/common/fileapi/file_system_util.h" | 39 #include "storage/common/fileapi/file_system_util.h" |
| 40 #endif // defined(ENABLE_PLUGINS) | 40 #endif // defined(ENABLE_PLUGINS) |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options)); | 1312 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options)); |
| 1313 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options)); | 1313 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options)); |
| 1314 | 1314 |
| 1315 for (const auto& cookie : valid_cookies) | 1315 for (const auto& cookie : valid_cookies) |
| 1316 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString(); | 1316 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString(); |
| 1317 for (const auto& cookie : invalid_cookies) | 1317 for (const auto& cookie : invalid_cookies) |
| 1318 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString(); | 1318 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString(); |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 } // namespace content | 1321 } // namespace content |
| OLD | NEW |