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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "content/public/test/async_file_test_helper.h" | 13 #include "content/public/test/async_file_test_helper.h" |
13 #include "content/public/test/test_file_system_context.h" | 14 #include "content/public/test/test_file_system_context.h" |
14 #include "storage/browser/fileapi/file_system_context.h" | 15 #include "storage/browser/fileapi/file_system_context.h" |
15 #include "storage/browser/fileapi/file_system_quota_client.h" | 16 #include "storage/browser/fileapi/file_system_quota_client.h" |
16 #include "storage/browser/fileapi/file_system_usage_cache.h" | 17 #include "storage/browser/fileapi/file_system_usage_cache.h" |
17 #include "storage/browser/fileapi/obfuscated_file_util.h" | 18 #include "storage/browser/fileapi/obfuscated_file_util.h" |
18 #include "storage/common/fileapi/file_system_types.h" | 19 #include "storage/common/fileapi/file_system_types.h" |
19 #include "storage/common/fileapi/file_system_util.h" | 20 #include "storage/common/fileapi/file_system_util.h" |
20 #include "storage/common/quota/quota_types.h" | 21 #include "storage/common/quota/quota_types.h" |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 GetOriginUsage(quota_client.get(), | 561 GetOriginUsage(quota_client.get(), |
561 "https://bar.com/", | 562 "https://bar.com/", |
562 kPersistent)); | 563 kPersistent)); |
563 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, | 564 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, |
564 GetOriginUsage(quota_client.get(), | 565 GetOriginUsage(quota_client.get(), |
565 "https://bar.com/", | 566 "https://bar.com/", |
566 kTemporary)); | 567 kTemporary)); |
567 } | 568 } |
568 | 569 |
569 } // namespace content | 570 } // namespace content |
OLD | NEW |