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 <string> | 5 #include <string> |
6 | 6 |
| 7 #include "base/file_util.h" |
7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
10 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
11 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
12 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "webkit/fileapi/async_file_test_helper.h" | 16 #include "webkit/fileapi/async_file_test_helper.h" |
16 #include "webkit/fileapi/file_system_context.h" | 17 #include "webkit/fileapi/file_system_context.h" |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 AsyncFileTestHelper::Move(file_system_context(), | 361 AsyncFileTestHelper::Move(file_system_context(), |
361 Path(from_dir), Path(to_dir))); | 362 Path(from_dir), Path(to_dir))); |
362 | 363 |
363 EXPECT_FALSE(DirectoryExists(from_dir)); | 364 EXPECT_FALSE(DirectoryExists(from_dir)); |
364 EXPECT_TRUE(DirectoryExists(to_dir)); | 365 EXPECT_TRUE(DirectoryExists(to_dir)); |
365 EXPECT_TRUE(FileExists(to_file)); | 366 EXPECT_TRUE(FileExists(to_file)); |
366 EXPECT_EQ(1020, GetSize(to_file)); | 367 EXPECT_EQ(1020, GetSize(to_file)); |
367 } | 368 } |
368 | 369 |
369 } // namespace fileapi | 370 } // namespace fileapi |
OLD | NEW |