| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "content/public/test/async_file_test_helper.h" |
| 16 #include "content/public/test/test_file_system_context.h" | 17 #include "content/public/test/test_file_system_context.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "webkit/browser/fileapi/async_file_test_helper.h" | |
| 19 #include "webkit/browser/fileapi/async_file_util_adapter.h" | 19 #include "webkit/browser/fileapi/async_file_util_adapter.h" |
| 20 #include "webkit/browser/fileapi/file_system_context.h" | 20 #include "webkit/browser/fileapi/file_system_context.h" |
| 21 #include "webkit/browser/fileapi/file_system_file_util.h" | 21 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 22 #include "webkit/browser/fileapi/file_system_operation_context.h" | 22 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 23 #include "webkit/browser/fileapi/local_file_util.h" | 23 #include "webkit/browser/fileapi/local_file_util.h" |
| 24 #include "webkit/browser/fileapi/native_file_util.h" | 24 #include "webkit/browser/fileapi/native_file_util.h" |
| 25 #include "webkit/common/fileapi/file_system_types.h" | 25 #include "webkit/common/fileapi/file_system_types.h" |
| 26 | 26 |
| 27 using fileapi::AsyncFileTestHelper; | 27 using content::AsyncFileTestHelper; |
| 28 using fileapi::AsyncFileUtilAdapter; | 28 using fileapi::AsyncFileUtilAdapter; |
| 29 using fileapi::FileSystemContext; | 29 using fileapi::FileSystemContext; |
| 30 using fileapi::FileSystemOperationContext; | 30 using fileapi::FileSystemOperationContext; |
| 31 using fileapi::FileSystemType; | 31 using fileapi::FileSystemType; |
| 32 using fileapi::FileSystemURL; | 32 using fileapi::FileSystemURL; |
| 33 using fileapi::LocalFileUtil; | 33 using fileapi::LocalFileUtil; |
| 34 | 34 |
| 35 namespace content { | 35 namespace content { |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 CreateURL(from_dir), | 389 CreateURL(from_dir), |
| 390 CreateURL(to_dir))); | 390 CreateURL(to_dir))); |
| 391 | 391 |
| 392 EXPECT_FALSE(DirectoryExists(from_dir)); | 392 EXPECT_FALSE(DirectoryExists(from_dir)); |
| 393 EXPECT_TRUE(DirectoryExists(to_dir)); | 393 EXPECT_TRUE(DirectoryExists(to_dir)); |
| 394 EXPECT_TRUE(FileExists(to_file)); | 394 EXPECT_TRUE(FileExists(to_file)); |
| 395 EXPECT_EQ(1020, GetSize(to_file)); | 395 EXPECT_EQ(1020, GetSize(to_file)); |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace content | 398 } // namespace content |
| OLD | NEW |