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/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webkit/fileapi/file_system_context.h" | 12 #include "webkit/fileapi/file_system_context.h" |
13 #include "webkit/fileapi/file_system_operation_context.h" | 13 #include "webkit/fileapi/file_system_operation_context.h" |
14 #include "webkit/fileapi/file_system_path_manager.h" | |
15 #include "webkit/fileapi/file_system_test_helper.h" | 14 #include "webkit/fileapi/file_system_test_helper.h" |
16 #include "webkit/fileapi/file_system_types.h" | 15 #include "webkit/fileapi/file_system_types.h" |
17 #include "webkit/fileapi/file_system_usage_cache.h" | 16 #include "webkit/fileapi/file_system_usage_cache.h" |
18 #include "webkit/fileapi/quota_file_util.h" | 17 #include "webkit/fileapi/quota_file_util.h" |
19 | 18 |
20 namespace fileapi { | 19 namespace fileapi { |
21 | 20 |
22 class QuotaFileUtilTest : public testing::Test { | 21 class QuotaFileUtilTest : public testing::Test { |
23 public: | 22 public: |
24 QuotaFileUtilTest() {} | 23 QuotaFileUtilTest() {} |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 ASSERT_EQ(base::PLATFORM_FILE_OK, | 515 ASSERT_EQ(base::PLATFORM_FILE_OK, |
517 quota_file_util()->Delete(context.get(), | 516 quota_file_util()->Delete(context.get(), |
518 Path(dir), | 517 Path(dir), |
519 true)); | 518 true)); |
520 ASSERT_EQ(0, quota_test_helper().GetCachedOriginUsage()); | 519 ASSERT_EQ(0, quota_test_helper().GetCachedOriginUsage()); |
521 ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(), | 520 ASSERT_EQ(quota_test_helper().ComputeCurrentOriginUsage(), |
522 quota_test_helper().GetCachedOriginUsage()); | 521 quota_test_helper().GetCachedOriginUsage()); |
523 } | 522 } |
524 | 523 |
525 } // namespace fileapi | 524 } // namespace fileapi |
OLD | NEW |