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 "content/public/test/test_file_system_backend.h" | 5 #include "content/public/test/test_file_system_backend.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 bool TestFileSystemBackend::HasInplaceCopyImplementation( | 230 bool TestFileSystemBackend::HasInplaceCopyImplementation( |
231 fileapi::FileSystemType type) const { | 231 fileapi::FileSystemType type) const { |
232 return true; | 232 return true; |
233 } | 233 } |
234 | 234 |
235 scoped_ptr<webkit_blob::FileStreamReader> | 235 scoped_ptr<webkit_blob::FileStreamReader> |
236 TestFileSystemBackend::CreateFileStreamReader( | 236 TestFileSystemBackend::CreateFileStreamReader( |
237 const FileSystemURL& url, | 237 const FileSystemURL& url, |
238 int64 offset, | 238 int64 offset, |
| 239 int64 length, |
239 const base::Time& expected_modification_time, | 240 const base::Time& expected_modification_time, |
240 FileSystemContext* context) const { | 241 FileSystemContext* context) const { |
241 return scoped_ptr<webkit_blob::FileStreamReader>( | 242 return scoped_ptr<webkit_blob::FileStreamReader>( |
242 webkit_blob::FileStreamReader::CreateForFileSystemFile( | 243 webkit_blob::FileStreamReader::CreateForFileSystemFile( |
243 context, url, offset, expected_modification_time)); | 244 context, url, offset, expected_modification_time)); |
244 } | 245 } |
245 | 246 |
246 scoped_ptr<fileapi::FileStreamWriter> | 247 scoped_ptr<fileapi::FileStreamWriter> |
247 TestFileSystemBackend::CreateFileStreamWriter( | 248 TestFileSystemBackend::CreateFileStreamWriter( |
248 const FileSystemURL& url, | 249 const FileSystemURL& url, |
(...skipping 13 matching lines...) Expand all Loading... |
262 return quota_util_->GetUpdateObservers(type); | 263 return quota_util_->GetUpdateObservers(type); |
263 } | 264 } |
264 | 265 |
265 void TestFileSystemBackend::AddFileChangeObserver( | 266 void TestFileSystemBackend::AddFileChangeObserver( |
266 fileapi::FileChangeObserver* observer) { | 267 fileapi::FileChangeObserver* observer) { |
267 quota_util_->AddFileChangeObserver( | 268 quota_util_->AddFileChangeObserver( |
268 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner()); | 269 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner()); |
269 } | 270 } |
270 | 271 |
271 } // namespace content | 272 } // namespace content |
OLD | NEW |