| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "url/gurl.h" |
| 14 #include "webkit/browser/fileapi/file_system_context.h" | 14 #include "webkit/browser/fileapi/file_system_context.h" |
| 15 #include "webkit/browser/fileapi/file_system_operation_context.h" | 15 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 16 #include "webkit/browser/fileapi/file_system_quota_client.h" | 16 #include "webkit/browser/fileapi/file_system_quota_client.h" |
| 17 #include "webkit/browser/fileapi/file_system_usage_cache.h" | 17 #include "webkit/browser/fileapi/file_system_usage_cache.h" |
| 18 #include "webkit/browser/fileapi/mock_file_system_context.h" | 18 #include "webkit/browser/fileapi/mock_file_system_context.h" |
| 19 #include "webkit/browser/fileapi/obfuscated_file_util.h" | 19 #include "webkit/browser/fileapi/obfuscated_file_util.h" |
| 20 #include "webkit/common/fileapi/file_system_types.h" | 20 #include "webkit/common/fileapi/file_system_types.h" |
| 21 #include "webkit/common/fileapi/file_system_util.h" | 21 #include "webkit/common/fileapi/file_system_util.h" |
| 22 #include "webkit/common/quota/quota_types.h" | 22 #include "webkit/common/quota/quota_types.h" |
| 23 | 23 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 GetOriginUsage(quota_client.get(), | 573 GetOriginUsage(quota_client.get(), |
| 574 "https://bar.com/", | 574 "https://bar.com/", |
| 575 kPersistent)); | 575 kPersistent)); |
| 576 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, | 576 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, |
| 577 GetOriginUsage(quota_client.get(), | 577 GetOriginUsage(quota_client.get(), |
| 578 "https://bar.com/", | 578 "https://bar.com/", |
| 579 kTemporary)); | 579 kTemporary)); |
| 580 } | 580 } |
| 581 | 581 |
| 582 } // namespace fileapi | 582 } // namespace fileapi |
| OLD | NEW |