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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 return &update_observers_; | 130 return &update_observers_; |
131 } | 131 } |
132 | 132 |
133 virtual const fileapi::ChangeObserverList* GetChangeObservers( | 133 virtual const fileapi::ChangeObserverList* GetChangeObservers( |
134 FileSystemType type) const OVERRIDE { | 134 FileSystemType type) const OVERRIDE { |
135 return &change_observers_; | 135 return &change_observers_; |
136 } | 136 } |
137 | 137 |
138 virtual const fileapi::AccessObserverList* GetAccessObservers( | 138 virtual const fileapi::AccessObserverList* GetAccessObservers( |
139 FileSystemType type) const OVERRIDE { | 139 FileSystemType type) const OVERRIDE { |
| 140 NOTIMPLEMENTED(); |
140 return NULL; | 141 return NULL; |
141 } | 142 } |
142 | 143 |
143 // FileUpdateObserver overrides. | 144 // FileUpdateObserver overrides. |
144 virtual void OnStartUpdate(const FileSystemURL& url) OVERRIDE {} | 145 virtual void OnStartUpdate(const FileSystemURL& url) OVERRIDE {} |
145 virtual void OnUpdate(const FileSystemURL& url, int64 delta) OVERRIDE { | 146 virtual void OnUpdate(const FileSystemURL& url, int64 delta) OVERRIDE { |
146 usage_ += delta; | 147 usage_ += delta; |
147 } | 148 } |
148 virtual void OnEndUpdate(const FileSystemURL& url) OVERRIDE {} | 149 virtual void OnEndUpdate(const FileSystemURL& url) OVERRIDE {} |
149 | 150 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 return quota_util_->GetUpdateObservers(type); | 258 return quota_util_->GetUpdateObservers(type); |
258 } | 259 } |
259 | 260 |
260 void TestFileSystemBackend::AddFileChangeObserver( | 261 void TestFileSystemBackend::AddFileChangeObserver( |
261 fileapi::FileChangeObserver* observer) { | 262 fileapi::FileChangeObserver* observer) { |
262 quota_util_->AddFileChangeObserver( | 263 quota_util_->AddFileChangeObserver( |
263 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner()); | 264 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner()); |
264 } | 265 } |
265 | 266 |
266 } // namespace content | 267 } // namespace content |
OLD | NEW |