| 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "webkit/fileapi/file_system_context.h" | 23 #include "webkit/fileapi/file_system_context.h" |
| 24 #include "webkit/fileapi/file_system_file_util.h" | 24 #include "webkit/fileapi/file_system_file_util.h" |
| 25 #include "webkit/fileapi/file_system_operation_context.h" | 25 #include "webkit/fileapi/file_system_operation_context.h" |
| 26 #include "webkit/fileapi/file_system_path_manager.h" | 26 #include "webkit/fileapi/file_system_path_manager.h" |
| 27 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 27 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
| 28 #include "webkit/quota/mock_quota_manager.h" | 28 #include "webkit/quota/mock_quota_manager.h" |
| 29 #include "webkit/quota/quota_manager.h" | 29 #include "webkit/quota/quota_manager.h" |
| 30 #include "webkit/quota/quota_types.h" | 30 #include "webkit/quota/quota_types.h" |
| 31 | 31 |
| 32 using content::BrowserThread; |
| 33 |
| 32 namespace { | 34 namespace { |
| 33 | 35 |
| 34 const char kTestkOrigin1[] = "http://host1:1/"; | 36 const char kTestkOrigin1[] = "http://host1:1/"; |
| 35 const char kTestkOrigin2[] = "http://host2:1/"; | 37 const char kTestkOrigin2[] = "http://host2:1/"; |
| 36 const char kTestkOrigin3[] = "http://host3:1/"; | 38 const char kTestkOrigin3[] = "http://host3:1/"; |
| 37 | 39 |
| 38 const GURL kOrigin1(kTestkOrigin1); | 40 const GURL kOrigin1(kTestkOrigin1); |
| 39 const GURL kOrigin2(kTestkOrigin2); | 41 const GURL kOrigin2(kTestkOrigin2); |
| 40 const GURL kOrigin3(kTestkOrigin3); | 42 const GURL kOrigin3(kTestkOrigin3); |
| 41 | 43 |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 quota::kStorageTypeTemporary)); | 509 quota::kStorageTypeTemporary)); |
| 508 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, | 510 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, |
| 509 quota::kStorageTypePersistent)); | 511 quota::kStorageTypePersistent)); |
| 510 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, | 512 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, |
| 511 quota::kStorageTypePersistent)); | 513 quota::kStorageTypePersistent)); |
| 512 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, | 514 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, |
| 513 quota::kStorageTypePersistent)); | 515 quota::kStorageTypePersistent)); |
| 514 } | 516 } |
| 515 | 517 |
| 516 } // namespace | 518 } // namespace |
| OLD | NEW |