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 "webkit/fileapi/quota_file_util.h" | 5 #include "webkit/fileapi/quota_file_util.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/memory/scoped_callback_factory.h" | 8 #include "base/memory/scoped_callback_factory.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "webkit/fileapi/file_system_context.h" | 13 #include "webkit/fileapi/file_system_context.h" |
14 #include "webkit/fileapi/file_system_file_util.h" | |
15 #include "webkit/fileapi/file_system_operation_context.h" | 14 #include "webkit/fileapi/file_system_operation_context.h" |
16 #include "webkit/fileapi/file_system_path_manager.h" | 15 #include "webkit/fileapi/file_system_path_manager.h" |
17 #include "webkit/fileapi/file_system_test_helper.h" | 16 #include "webkit/fileapi/file_system_test_helper.h" |
18 #include "webkit/fileapi/file_system_types.h" | 17 #include "webkit/fileapi/file_system_types.h" |
19 #include "webkit/fileapi/file_system_usage_cache.h" | 18 #include "webkit/fileapi/file_system_usage_cache.h" |
19 #include "webkit/fileapi/fileapi_file_util.h" | |
ericu
2011/08/22 17:59:37
Is this include needed?
Dai Mikurube (NOT FULLTIME)
2011/08/24 11:57:30
Done.
| |
20 #include "webkit/fileapi/quota_file_util.h" | 20 #include "webkit/fileapi/quota_file_util.h" |
21 | 21 |
22 namespace fileapi { | 22 namespace fileapi { |
23 | 23 |
24 class QuotaFileUtilTest : public testing::Test { | 24 class QuotaFileUtilTest : public testing::Test { |
25 public: | 25 public: |
26 QuotaFileUtilTest() | 26 QuotaFileUtilTest() |
27 : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 27 : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
28 } | 28 } |
29 | 29 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 context.reset(NewContext(QuotaFileUtil::kNoLimit, Path(dir), FilePath())); | 447 context.reset(NewContext(QuotaFileUtil::kNoLimit, Path(dir), FilePath())); |
448 ASSERT_EQ(base::PLATFORM_FILE_OK, | 448 ASSERT_EQ(base::PLATFORM_FILE_OK, |
449 quota_file_util()->Delete(context.get(), | 449 quota_file_util()->Delete(context.get(), |
450 Path(dir), | 450 Path(dir), |
451 true)); | 451 true)); |
452 file_path_cost = 0; | 452 file_path_cost = 0; |
453 CheckUsage(0, 0); | 453 CheckUsage(0, 0); |
454 } | 454 } |
455 | 455 |
456 } // namespace fileapi | 456 } // namespace fileapi |
OLD | NEW |