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