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" |
20 #include "webkit/fileapi/quota_file_util.h" | 19 #include "webkit/fileapi/quota_file_util.h" |
21 | 20 |
22 namespace fileapi { | 21 namespace fileapi { |
23 | 22 |
24 class QuotaFileUtilTest : public testing::Test { | 23 class QuotaFileUtilTest : public testing::Test { |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 ASSERT_EQ(base::PLATFORM_FILE_OK, | 520 ASSERT_EQ(base::PLATFORM_FILE_OK, |
522 quota_file_util()->Delete(context.get(), | 521 quota_file_util()->Delete(context.get(), |
523 Path(dir), | 522 Path(dir), |
524 true)); | 523 true)); |
525 ASSERT_EQ(0, quota_test_helper().GetCachedOriginUsage()); | 524 ASSERT_EQ(0, quota_test_helper().GetCachedOriginUsage()); |
526 ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(), | 525 ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(), |
527 quota_test_helper().GetCachedOriginUsage()); | 526 quota_test_helper().GetCachedOriginUsage()); |
528 } | 527 } |
529 | 528 |
530 } // namespace fileapi | 529 } // namespace fileapi |
OLD | NEW |