OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data_remover.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" | 11 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" |
12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "webkit/fileapi/file_system_context.h" | 15 #include "webkit/fileapi/file_system_context.h" |
16 #include "webkit/fileapi/file_system_file_util.h" | |
17 #include "webkit/fileapi/file_system_operation_context.h" | 16 #include "webkit/fileapi/file_system_operation_context.h" |
18 #include "webkit/fileapi/file_system_path_manager.h" | 17 #include "webkit/fileapi/file_system_path_manager.h" |
| 18 #include "webkit/fileapi/fileapi_file_util.h" |
19 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 19 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
20 #include "webkit/quota/mock_quota_manager.h" | 20 #include "webkit/quota/mock_quota_manager.h" |
21 #include "webkit/quota/quota_manager.h" | 21 #include "webkit/quota/quota_manager.h" |
22 #include "webkit/quota/quota_types.h" | 22 #include "webkit/quota/quota_types.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kTestkOrigin1[] = "http://host1:1/"; | 26 const char kTestkOrigin1[] = "http://host1:1/"; |
27 const char kTestkOrigin2[] = "http://host2:1/"; | 27 const char kTestkOrigin2[] = "http://host2:1/"; |
28 const char kTestkOrigin3[] = "http://host3:1/"; | 28 const char kTestkOrigin3[] = "http://host3:1/"; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 quota::kStorageTypeTemporary)); | 404 quota::kStorageTypeTemporary)); |
405 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, | 405 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, |
406 quota::kStorageTypePersistent)); | 406 quota::kStorageTypePersistent)); |
407 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, | 407 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, |
408 quota::kStorageTypePersistent)); | 408 quota::kStorageTypePersistent)); |
409 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, | 409 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, |
410 quota::kStorageTypePersistent)); | 410 quota::kStorageTypePersistent)); |
411 } | 411 } |
412 | 412 |
413 } // namespace | 413 } // namespace |
OLD | NEW |