| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef WEBKIT_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ |
| 6 #define WEBKIT_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "webkit/fileapi/file_observers.h" | 10 #include "webkit/browser/fileapi/file_observers.h" |
| 11 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" |
| 11 #include "webkit/fileapi/file_system_url.h" | 12 #include "webkit/fileapi/file_system_url.h" |
| 12 #include "webkit/fileapi/task_runner_bound_observer_list.h" | |
| 13 | 13 |
| 14 namespace fileapi { | 14 namespace fileapi { |
| 15 | 15 |
| 16 // Mock file change observer. | 16 // Mock file change observer. |
| 17 class MockFileChangeObserver : public FileChangeObserver { | 17 class MockFileChangeObserver : public FileChangeObserver { |
| 18 public: | 18 public: |
| 19 MockFileChangeObserver(); | 19 MockFileChangeObserver(); |
| 20 virtual ~MockFileChangeObserver(); | 20 virtual ~MockFileChangeObserver(); |
| 21 | 21 |
| 22 // Creates a ChangeObserverList which only contains given |observer|. | 22 // Creates a ChangeObserverList which only contains given |observer|. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int remove_file_count_; | 93 int remove_file_count_; |
| 94 int modify_file_count_; | 94 int modify_file_count_; |
| 95 int create_directory_count_; | 95 int create_directory_count_; |
| 96 int remove_directory_count_; | 96 int remove_directory_count_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(MockFileChangeObserver); | 98 DISALLOW_COPY_AND_ASSIGN(MockFileChangeObserver); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace fileapi | 101 } // namespace fileapi |
| 102 | 102 |
| 103 #endif // WEBKIT_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ | 103 #endif // WEBKIT_BROWSER_FILEAPI_MOCK_FILE_CHANGE_OBSERVER_H_ |
| OLD | NEW |