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/files/file.h" | 7 #include "base/files/file.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.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" | |
12 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
13 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
15 #include "content/public/test/async_file_test_helper.h" | 14 #include "content/public/test/async_file_test_helper.h" |
16 #include "content/public/test/test_file_system_context.h" | 15 #include "content/public/test/test_file_system_context.h" |
17 #include "storage/browser/fileapi/async_file_util_adapter.h" | 16 #include "storage/browser/fileapi/async_file_util_adapter.h" |
18 #include "storage/browser/fileapi/file_system_context.h" | 17 #include "storage/browser/fileapi/file_system_context.h" |
19 #include "storage/browser/fileapi/file_system_file_util.h" | 18 #include "storage/browser/fileapi/file_system_file_util.h" |
20 #include "storage/browser/fileapi/file_system_operation_context.h" | 19 #include "storage/browser/fileapi/file_system_operation_context.h" |
21 #include "storage/browser/fileapi/local_file_util.h" | 20 #include "storage/browser/fileapi/local_file_util.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 CreateURL(from_dir), | 367 CreateURL(from_dir), |
369 CreateURL(to_dir))); | 368 CreateURL(to_dir))); |
370 | 369 |
371 EXPECT_FALSE(DirectoryExists(from_dir)); | 370 EXPECT_FALSE(DirectoryExists(from_dir)); |
372 EXPECT_TRUE(DirectoryExists(to_dir)); | 371 EXPECT_TRUE(DirectoryExists(to_dir)); |
373 EXPECT_TRUE(FileExists(to_file)); | 372 EXPECT_TRUE(FileExists(to_file)); |
374 EXPECT_EQ(1020, GetSize(to_file)); | 373 EXPECT_EQ(1020, GetSize(to_file)); |
375 } | 374 } |
376 | 375 |
377 } // namespace content | 376 } // namespace content |
OLD | NEW |