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 <map> | 5 #include <map> |
6 #include <queue> | 6 #include <queue> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.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/logging.h" | 14 #include "base/logging.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "content/public/test/async_file_test_helper.h" | 18 #include "content/public/test/async_file_test_helper.h" |
19 #include "content/public/test/test_file_system_context.h" | 19 #include "content/public/test/test_file_system_context.h" |
20 #include "content/test/fileapi_test_file_set.h" | 20 #include "content/test/fileapi_test_file_set.h" |
| 21 #include "storage/browser/fileapi/dragged_file_util.h" |
| 22 #include "storage/browser/fileapi/file_system_context.h" |
| 23 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 24 #include "storage/browser/fileapi/isolated_context.h" |
| 25 #include "storage/browser/fileapi/local_file_util.h" |
| 26 #include "storage/browser/fileapi/native_file_util.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "webkit/browser/fileapi/dragged_file_util.h" | |
23 #include "webkit/browser/fileapi/file_system_context.h" | |
24 #include "webkit/browser/fileapi/file_system_operation_context.h" | |
25 #include "webkit/browser/fileapi/isolated_context.h" | |
26 #include "webkit/browser/fileapi/local_file_util.h" | |
27 #include "webkit/browser/fileapi/native_file_util.h" | |
28 | 28 |
29 using content::AsyncFileTestHelper; | 29 using content::AsyncFileTestHelper; |
30 using storage::FileSystemContext; | 30 using storage::FileSystemContext; |
31 using storage::FileSystemOperationContext; | 31 using storage::FileSystemOperationContext; |
32 using storage::FileSystemType; | 32 using storage::FileSystemType; |
33 using storage::FileSystemURL; | 33 using storage::FileSystemURL; |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 | 36 |
37 namespace { | 37 namespace { |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 EXPECT_EQ(base::File::FILE_OK, | 548 EXPECT_EQ(base::File::FILE_OK, |
549 file_util()->Truncate(GetOperationContext().get(), url, 999)); | 549 file_util()->Truncate(GetOperationContext().get(), url, 999)); |
550 ASSERT_EQ(base::File::FILE_OK, | 550 ASSERT_EQ(base::File::FILE_OK, |
551 file_util()->GetFileInfo(GetOperationContext().get(), url, | 551 file_util()->GetFileInfo(GetOperationContext().get(), url, |
552 &info, &platform_path)); | 552 &info, &platform_path)); |
553 EXPECT_EQ(999, info.size); | 553 EXPECT_EQ(999, info.size); |
554 } | 554 } |
555 } | 555 } |
556 | 556 |
557 } // namespace content | 557 } // namespace content |
OLD | NEW |