OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/fileapi/mock_file_change_observer.h" | 5 #include "content/browser/fileapi/mock_file_change_observer.h" |
6 | 6 |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 | 8 |
9 namespace storage { | 9 namespace storage { |
10 | 10 |
11 MockFileChangeObserver::MockFileChangeObserver() | 11 MockFileChangeObserver::MockFileChangeObserver() |
12 : create_file_count_(0), | 12 : create_file_count_(0), |
13 create_file_from_count_(0), | 13 create_file_from_count_(0), |
14 remove_file_count_(0), | 14 remove_file_count_(0), |
15 modify_file_count_(0), | 15 modify_file_count_(0), |
16 create_directory_count_(0), | 16 create_directory_count_(0), |
17 remove_directory_count_(0) {} | 17 remove_directory_count_(0) {} |
(...skipping 26 matching lines...) Expand all Loading... |
44 | 44 |
45 void MockFileChangeObserver::OnCreateDirectory(const FileSystemURL& url) { | 45 void MockFileChangeObserver::OnCreateDirectory(const FileSystemURL& url) { |
46 create_directory_count_++; | 46 create_directory_count_++; |
47 } | 47 } |
48 | 48 |
49 void MockFileChangeObserver::OnRemoveDirectory(const FileSystemURL& url) { | 49 void MockFileChangeObserver::OnRemoveDirectory(const FileSystemURL& url) { |
50 remove_directory_count_++; | 50 remove_directory_count_++; |
51 } | 51 } |
52 | 52 |
53 } // namespace storage | 53 } // namespace storage |
OLD | NEW |