| 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 namespace fileapi { | 7 namespace storage { |
| 8 | 8 |
| 9 MockFileChangeObserver::MockFileChangeObserver() | 9 MockFileChangeObserver::MockFileChangeObserver() |
| 10 : create_file_count_(0), | 10 : create_file_count_(0), |
| 11 create_file_from_count_(0), | 11 create_file_from_count_(0), |
| 12 remove_file_count_(0), | 12 remove_file_count_(0), |
| 13 modify_file_count_(0), | 13 modify_file_count_(0), |
| 14 create_directory_count_(0), | 14 create_directory_count_(0), |
| 15 remove_directory_count_(0) {} | 15 remove_directory_count_(0) {} |
| 16 | 16 |
| 17 MockFileChangeObserver::~MockFileChangeObserver() {} | 17 MockFileChangeObserver::~MockFileChangeObserver() {} |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 void MockFileChangeObserver::OnCreateDirectory(const FileSystemURL& url) { | 43 void MockFileChangeObserver::OnCreateDirectory(const FileSystemURL& url) { |
| 44 create_directory_count_++; | 44 create_directory_count_++; |
| 45 } | 45 } |
| 46 | 46 |
| 47 void MockFileChangeObserver::OnRemoveDirectory(const FileSystemURL& url) { | 47 void MockFileChangeObserver::OnRemoveDirectory(const FileSystemURL& url) { |
| 48 remove_directory_count_++; | 48 remove_directory_count_++; |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace fileapi | 51 } // namespace storage |
| OLD | NEW |