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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "content/public/test/test_file_system_context.h" | 9 #include "content/public/test/test_file_system_context.h" |
| 10 #include "storage/browser/fileapi/file_system_context.h" |
| 11 #include "storage/browser/fileapi/file_system_operation_runner.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "webkit/browser/fileapi/file_system_context.h" | |
12 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
13 | 13 |
14 using storage::FileSystemContext; | 14 using storage::FileSystemContext; |
15 using storage::FileSystemOperationRunner; | 15 using storage::FileSystemOperationRunner; |
16 using storage::FileSystemType; | 16 using storage::FileSystemType; |
17 using storage::FileSystemURL; | 17 using storage::FileSystemURL; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 void GetStatus(bool* done, | 21 void GetStatus(bool* done, |
22 base::File::Error *status_out, | 22 base::File::Error *status_out, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 base::File::Error cancel_status = base::File::FILE_ERROR_FAILED; | 158 base::File::Error cancel_status = base::File::FILE_ERROR_FAILED; |
159 operation_runner()->Cancel(kInvalidId, base::Bind(&GetCancelStatus, | 159 operation_runner()->Cancel(kInvalidId, base::Bind(&GetCancelStatus, |
160 &done, &cancel_done, | 160 &done, &cancel_done, |
161 &cancel_status)); | 161 &cancel_status)); |
162 | 162 |
163 ASSERT_TRUE(cancel_done); | 163 ASSERT_TRUE(cancel_done); |
164 ASSERT_EQ(base::File::FILE_ERROR_INVALID_OPERATION, cancel_status); | 164 ASSERT_EQ(base::File::FILE_ERROR_INVALID_OPERATION, cancel_status); |
165 } | 165 } |
166 | 166 |
167 } // namespace content | 167 } // namespace content |
OLD | NEW |