| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "content/public/test/async_file_test_helper.h" | |
| 15 #include "content/public/test/test_file_system_context.h" | |
| 16 #include "storage/browser/fileapi/file_system_context.h" | 14 #include "storage/browser/fileapi/file_system_context.h" |
| 17 #include "storage/browser/fileapi/file_system_quota_client.h" | 15 #include "storage/browser/fileapi/file_system_quota_client.h" |
| 18 #include "storage/browser/fileapi/file_system_usage_cache.h" | 16 #include "storage/browser/fileapi/file_system_usage_cache.h" |
| 19 #include "storage/browser/fileapi/obfuscated_file_util.h" | 17 #include "storage/browser/fileapi/obfuscated_file_util.h" |
| 18 #include "storage/browser/test/async_file_test_helper.h" |
| 19 #include "storage/browser/test/test_file_system_context.h" |
| 20 #include "storage/common/fileapi/file_system_types.h" | 20 #include "storage/common/fileapi/file_system_types.h" |
| 21 #include "storage/common/fileapi/file_system_util.h" | 21 #include "storage/common/fileapi/file_system_util.h" |
| 22 #include "storage/common/quota/quota_types.h" | 22 #include "storage/common/quota/quota_types.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 using content::AsyncFileTestHelper; | 26 using content::AsyncFileTestHelper; |
| 27 using storage::FileSystemQuotaClient; | 27 using storage::FileSystemQuotaClient; |
| 28 using storage::FileSystemURL; | 28 using storage::FileSystemURL; |
| 29 | 29 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 GetOriginUsage(quota_client.get(), | 562 GetOriginUsage(quota_client.get(), |
| 563 "https://bar.com/", | 563 "https://bar.com/", |
| 564 kPersistent)); | 564 kPersistent)); |
| 565 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, | 565 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, |
| 566 GetOriginUsage(quota_client.get(), | 566 GetOriginUsage(quota_client.get(), |
| 567 "https://bar.com/", | 567 "https://bar.com/", |
| 568 kTemporary)); | 568 kTemporary)); |
| 569 } | 569 } |
| 570 | 570 |
| 571 } // namespace content | 571 } // namespace content |
| OLD | NEW |