| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop_proxy.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "webkit/browser/fileapi/isolated_file_util.h" |
| 19 #include "webkit/browser/fileapi/local_file_util.h" |
| 20 #include "webkit/browser/fileapi/native_file_util.h" |
| 18 #include "webkit/fileapi/async_file_test_helper.h" | 21 #include "webkit/fileapi/async_file_test_helper.h" |
| 19 #include "webkit/fileapi/file_system_context.h" | 22 #include "webkit/fileapi/file_system_context.h" |
| 20 #include "webkit/fileapi/file_system_operation_context.h" | 23 #include "webkit/fileapi/file_system_operation_context.h" |
| 21 #include "webkit/fileapi/file_system_task_runners.h" | 24 #include "webkit/fileapi/file_system_task_runners.h" |
| 22 #include "webkit/fileapi/isolated_context.h" | 25 #include "webkit/fileapi/isolated_context.h" |
| 23 #include "webkit/fileapi/isolated_file_util.h" | |
| 24 #include "webkit/fileapi/local_file_system_operation.h" | 26 #include "webkit/fileapi/local_file_system_operation.h" |
| 25 #include "webkit/fileapi/local_file_system_test_helper.h" | 27 #include "webkit/fileapi/local_file_system_test_helper.h" |
| 26 #include "webkit/fileapi/local_file_util.h" | |
| 27 #include "webkit/fileapi/mock_file_system_context.h" | 28 #include "webkit/fileapi/mock_file_system_context.h" |
| 28 #include "webkit/fileapi/native_file_util.h" | |
| 29 #include "webkit/fileapi/test_file_set.h" | 29 #include "webkit/fileapi/test_file_set.h" |
| 30 | 30 |
| 31 using file_util::FileEnumerator; | 31 using file_util::FileEnumerator; |
| 32 | 32 |
| 33 namespace fileapi { | 33 namespace fileapi { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 typedef AsyncFileTestHelper::FileEntryList FileEntryList; | 37 typedef AsyncFileTestHelper::FileEntryList FileEntryList; |
| 38 | 38 |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 EXPECT_EQ(base::PLATFORM_FILE_OK, | 544 EXPECT_EQ(base::PLATFORM_FILE_OK, |
| 545 file_util()->Truncate(GetOperationContext().get(), url, 999)); | 545 file_util()->Truncate(GetOperationContext().get(), url, 999)); |
| 546 ASSERT_EQ(base::PLATFORM_FILE_OK, | 546 ASSERT_EQ(base::PLATFORM_FILE_OK, |
| 547 file_util()->GetFileInfo(GetOperationContext().get(), url, | 547 file_util()->GetFileInfo(GetOperationContext().get(), url, |
| 548 &info, &platform_path)); | 548 &info, &platform_path)); |
| 549 EXPECT_EQ(999, info.size); | 549 EXPECT_EQ(999, info.size); |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 | 552 |
| 553 } // namespace fileapi | 553 } // namespace fileapi |
| OLD | NEW |