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 "webkit/fileapi/local_file_system_operation.h" | 5 #include "webkit/fileapi/local_file_system_operation.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/blob/shareable_file_reference.h" | 17 #include "webkit/blob/shareable_file_reference.h" |
18 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 18 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
| 19 #include "webkit/browser/fileapi/file_system_quota_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_file_util.h" | 22 #include "webkit/fileapi/file_system_file_util.h" |
22 #include "webkit/fileapi/file_system_operation_context.h" | 23 #include "webkit/fileapi/file_system_operation_context.h" |
23 #include "webkit/fileapi/file_system_quota_util.h" | |
24 #include "webkit/fileapi/file_system_util.h" | 24 #include "webkit/fileapi/file_system_util.h" |
25 #include "webkit/fileapi/local_file_system_test_helper.h" | 25 #include "webkit/fileapi/local_file_system_test_helper.h" |
26 #include "webkit/fileapi/mock_file_change_observer.h" | 26 #include "webkit/fileapi/mock_file_change_observer.h" |
27 #include "webkit/quota/mock_quota_manager.h" | 27 #include "webkit/quota/mock_quota_manager.h" |
28 #include "webkit/quota/quota_manager.h" | 28 #include "webkit/quota/quota_manager.h" |
29 | 29 |
30 using quota::QuotaManager; | 30 using quota::QuotaManager; |
31 using quota::QuotaManagerProxy; | 31 using quota::QuotaManagerProxy; |
32 using webkit_blob::ShareableFileReference; | 32 using webkit_blob::ShareableFileReference; |
33 | 33 |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 EXPECT_FALSE(info().is_directory); | 1046 EXPECT_FALSE(info().is_directory); |
1047 EXPECT_EQ(PlatformPath("dir/file"), path()); | 1047 EXPECT_EQ(PlatformPath("dir/file"), path()); |
1048 EXPECT_TRUE(change_observer()->HasNoChange()); | 1048 EXPECT_TRUE(change_observer()->HasNoChange()); |
1049 | 1049 |
1050 // The FileSystemOpration implementation does not create a | 1050 // The FileSystemOpration implementation does not create a |
1051 // shareable file reference. | 1051 // shareable file reference. |
1052 EXPECT_EQ(NULL, shareable_file_ref()); | 1052 EXPECT_EQ(NULL, shareable_file_ref()); |
1053 } | 1053 } |
1054 | 1054 |
1055 } // namespace fileapi | 1055 } // namespace fileapi |
OLD | NEW |