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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 335 |
336 bool TestFileSystemBackend::HasInplaceCopyImplementation( | 336 bool TestFileSystemBackend::HasInplaceCopyImplementation( |
337 storage::FileSystemType type) const { | 337 storage::FileSystemType type) const { |
338 return true; | 338 return true; |
339 } | 339 } |
340 | 340 |
341 scoped_ptr<storage::FileStreamReader> | 341 scoped_ptr<storage::FileStreamReader> |
342 TestFileSystemBackend::CreateFileStreamReader( | 342 TestFileSystemBackend::CreateFileStreamReader( |
343 const FileSystemURL& url, | 343 const FileSystemURL& url, |
344 int64 offset, | 344 int64 offset, |
| 345 int64 max_bytes_to_read, |
345 const base::Time& expected_modification_time, | 346 const base::Time& expected_modification_time, |
346 FileSystemContext* context) const { | 347 FileSystemContext* context) const { |
347 return scoped_ptr<storage::FileStreamReader>( | 348 return scoped_ptr<storage::FileStreamReader>( |
348 storage::FileStreamReader::CreateForFileSystemFile( | 349 storage::FileStreamReader::CreateForFileSystemFile( |
349 context, url, offset, expected_modification_time)); | 350 context, url, offset, expected_modification_time)); |
350 } | 351 } |
351 | 352 |
352 scoped_ptr<storage::FileStreamWriter> | 353 scoped_ptr<storage::FileStreamWriter> |
353 TestFileSystemBackend::CreateFileStreamWriter( | 354 TestFileSystemBackend::CreateFileStreamWriter( |
354 const FileSystemURL& url, | 355 const FileSystemURL& url, |
(...skipping 13 matching lines...) Expand all Loading... |
368 return quota_util_->GetUpdateObservers(type); | 369 return quota_util_->GetUpdateObservers(type); |
369 } | 370 } |
370 | 371 |
371 void TestFileSystemBackend::AddFileChangeObserver( | 372 void TestFileSystemBackend::AddFileChangeObserver( |
372 storage::FileChangeObserver* observer) { | 373 storage::FileChangeObserver* observer) { |
373 quota_util_->AddFileChangeObserver( | 374 quota_util_->AddFileChangeObserver( |
374 storage::kFileSystemTypeTest, observer, quota_util_->task_runner()); | 375 storage::kFileSystemTypeTest, observer, quota_util_->task_runner()); |
375 } | 376 } |
376 | 377 |
377 } // namespace content | 378 } // namespace content |
OLD | NEW |