| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 18 #include "content/public/test/async_file_test_helper.h" | 19 #include "content/public/test/async_file_test_helper.h" |
| 19 #include "content/public/test/test_file_system_context.h" | 20 #include "content/public/test/test_file_system_context.h" |
| 20 #include "storage/browser/fileapi/async_file_util_adapter.h" | 21 #include "storage/browser/fileapi/async_file_util_adapter.h" |
| 21 #include "storage/browser/fileapi/file_system_context.h" | 22 #include "storage/browser/fileapi/file_system_context.h" |
| 22 #include "storage/browser/fileapi/file_system_file_util.h" | 23 #include "storage/browser/fileapi/file_system_file_util.h" |
| 23 #include "storage/browser/fileapi/file_system_operation_context.h" | 24 #include "storage/browser/fileapi/file_system_operation_context.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 CreateURL(from_dir), | 372 CreateURL(from_dir), |
| 372 CreateURL(to_dir))); | 373 CreateURL(to_dir))); |
| 373 | 374 |
| 374 EXPECT_FALSE(DirectoryExists(from_dir)); | 375 EXPECT_FALSE(DirectoryExists(from_dir)); |
| 375 EXPECT_TRUE(DirectoryExists(to_dir)); | 376 EXPECT_TRUE(DirectoryExists(to_dir)); |
| 376 EXPECT_TRUE(FileExists(to_file)); | 377 EXPECT_TRUE(FileExists(to_file)); |
| 377 EXPECT_EQ(1020, GetSize(to_file)); | 378 EXPECT_EQ(1020, GetSize(to_file)); |
| 378 } | 379 } |
| 379 | 380 |
| 380 } // namespace content | 381 } // namespace content |
| OLD | NEW |