| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/public/test/async_file_test_helper.h" | |
| 20 #include "content/public/test/test_file_system_context.h" | |
| 21 #include "storage/browser/fileapi/async_file_util_adapter.h" | 19 #include "storage/browser/fileapi/async_file_util_adapter.h" |
| 22 #include "storage/browser/fileapi/file_system_context.h" | 20 #include "storage/browser/fileapi/file_system_context.h" |
| 23 #include "storage/browser/fileapi/file_system_file_util.h" | 21 #include "storage/browser/fileapi/file_system_file_util.h" |
| 24 #include "storage/browser/fileapi/file_system_operation_context.h" | 22 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 25 #include "storage/browser/fileapi/local_file_util.h" | 23 #include "storage/browser/fileapi/local_file_util.h" |
| 26 #include "storage/browser/fileapi/native_file_util.h" | 24 #include "storage/browser/fileapi/native_file_util.h" |
| 25 #include "storage/browser/test/async_file_test_helper.h" |
| 26 #include "storage/browser/test/test_file_system_context.h" |
| 27 #include "storage/common/fileapi/file_system_types.h" | 27 #include "storage/common/fileapi/file_system_types.h" |
| 28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 29 | 29 |
| 30 using content::AsyncFileTestHelper; | 30 using content::AsyncFileTestHelper; |
| 31 using storage::AsyncFileUtilAdapter; | 31 using storage::AsyncFileUtilAdapter; |
| 32 using storage::FileSystemContext; | 32 using storage::FileSystemContext; |
| 33 using storage::FileSystemOperationContext; | 33 using storage::FileSystemOperationContext; |
| 34 using storage::FileSystemURL; | 34 using storage::FileSystemURL; |
| 35 using storage::LocalFileUtil; | 35 using storage::LocalFileUtil; |
| 36 | 36 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 CreateURL(from_dir), | 372 CreateURL(from_dir), |
| 373 CreateURL(to_dir))); | 373 CreateURL(to_dir))); |
| 374 | 374 |
| 375 EXPECT_FALSE(DirectoryExists(from_dir)); | 375 EXPECT_FALSE(DirectoryExists(from_dir)); |
| 376 EXPECT_TRUE(DirectoryExists(to_dir)); | 376 EXPECT_TRUE(DirectoryExists(to_dir)); |
| 377 EXPECT_TRUE(FileExists(to_file)); | 377 EXPECT_TRUE(FileExists(to_file)); |
| 378 EXPECT_EQ(1020, GetSize(to_file)); | 378 EXPECT_EQ(1020, GetSize(to_file)); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace content | 381 } // namespace content |
| OLD | NEW |