| 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/file_util.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "webkit/browser/fileapi/file_system_file_util.h" | 16 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 17 #include "webkit/browser/fileapi/local_file_util.h" | 17 #include "webkit/browser/fileapi/local_file_util.h" |
| 18 #include "webkit/browser/fileapi/mock_file_system_context.h" |
| 18 #include "webkit/browser/fileapi/native_file_util.h" | 19 #include "webkit/browser/fileapi/native_file_util.h" |
| 19 #include "webkit/fileapi/async_file_test_helper.h" | 20 #include "webkit/fileapi/async_file_test_helper.h" |
| 20 #include "webkit/fileapi/file_system_context.h" | 21 #include "webkit/fileapi/file_system_context.h" |
| 21 #include "webkit/fileapi/file_system_operation_context.h" | 22 #include "webkit/fileapi/file_system_operation_context.h" |
| 22 #include "webkit/fileapi/file_system_types.h" | 23 #include "webkit/fileapi/file_system_types.h" |
| 23 #include "webkit/fileapi/mock_file_system_context.h" | |
| 24 | 24 |
| 25 namespace fileapi { | 25 namespace fileapi { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 const GURL kOrigin("http://foo/"); | 29 const GURL kOrigin("http://foo/"); |
| 30 const FileSystemType kFileSystemType = kFileSystemTypeTest; | 30 const FileSystemType kFileSystemType = kFileSystemTypeTest; |
| 31 | 31 |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 CreateURL(from_dir), | 377 CreateURL(from_dir), |
| 378 CreateURL(to_dir))); | 378 CreateURL(to_dir))); |
| 379 | 379 |
| 380 EXPECT_FALSE(DirectoryExists(from_dir)); | 380 EXPECT_FALSE(DirectoryExists(from_dir)); |
| 381 EXPECT_TRUE(DirectoryExists(to_dir)); | 381 EXPECT_TRUE(DirectoryExists(to_dir)); |
| 382 EXPECT_TRUE(FileExists(to_file)); | 382 EXPECT_TRUE(FileExists(to_file)); |
| 383 EXPECT_EQ(1020, GetSize(to_file)); | 383 EXPECT_EQ(1020, GetSize(to_file)); |
| 384 } | 384 } |
| 385 | 385 |
| 386 } // namespace fileapi | 386 } // namespace fileapi |
| OLD | NEW |