| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <map> | 5 #include <map> |
| 6 #include <queue> | 6 #include <queue> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 15 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
| 16 #include "webkit/browser/fileapi/mock_file_system_context.h" |
| 16 #include "webkit/fileapi/async_file_test_helper.h" | 17 #include "webkit/fileapi/async_file_test_helper.h" |
| 17 #include "webkit/fileapi/file_system_context.h" | 18 #include "webkit/fileapi/file_system_context.h" |
| 18 #include "webkit/fileapi/file_system_operation.h" | 19 #include "webkit/fileapi/file_system_operation.h" |
| 19 #include "webkit/fileapi/file_system_url.h" | 20 #include "webkit/fileapi/file_system_url.h" |
| 20 #include "webkit/fileapi/file_system_util.h" | 21 #include "webkit/fileapi/file_system_util.h" |
| 21 #include "webkit/fileapi/mock_file_system_context.h" | |
| 22 #include "webkit/fileapi/test_file_set.h" | 22 #include "webkit/fileapi/test_file_set.h" |
| 23 #include "webkit/quota/mock_quota_manager.h" | 23 #include "webkit/quota/mock_quota_manager.h" |
| 24 #include "webkit/quota/quota_manager.h" | 24 #include "webkit/quota/quota_manager.h" |
| 25 | 25 |
| 26 namespace fileapi { | 26 namespace fileapi { |
| 27 | 27 |
| 28 typedef FileSystemOperation::FileEntryList FileEntryList; | 28 typedef FileSystemOperation::FileEntryList FileEntryList; |
| 29 | 29 |
| 30 class CrossOperationTestHelper { | 30 class CrossOperationTestHelper { |
| 31 public: | 31 public: |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 test::kRegularTestCaseSize); | 407 test::kRegularTestCaseSize); |
| 408 | 408 |
| 409 int64 src_new_usage = helper.GetSourceUsage(); | 409 int64 src_new_usage = helper.GetSourceUsage(); |
| 410 ASSERT_EQ(src_initial_usage, src_new_usage); | 410 ASSERT_EQ(src_initial_usage, src_new_usage); |
| 411 | 411 |
| 412 int64 dest_increase = helper.GetDestUsage() - dest_initial_usage; | 412 int64 dest_increase = helper.GetDestUsage() - dest_initial_usage; |
| 413 ASSERT_EQ(src_increase, dest_increase); | 413 ASSERT_EQ(src_increase, dest_increase); |
| 414 } | 414 } |
| 415 | 415 |
| 416 } // namespace fileapi | 416 } // namespace fileapi |
| OLD | NEW |