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