OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_FILEAPI_SYNCABLE_MOCK_SYNC_STATUS_OBSERVER_H_ | |
6 #define WEBKIT_FILEAPI_SYNCABLE_MOCK_SYNC_STATUS_OBSERVER_H_ | |
7 | |
8 #include "testing/gmock/include/gmock/gmock.h" | |
9 #include "webkit/fileapi/syncable/local_file_sync_status.h" | |
10 | |
11 namespace sync_file_system { | |
12 | |
13 class MockSyncStatusObserver : public LocalFileSyncStatus::Observer { | |
14 public: | |
15 MockSyncStatusObserver(); | |
16 virtual ~MockSyncStatusObserver(); | |
17 | |
18 // LocalFileSyncStatus::Observer overrides. | |
19 MOCK_METHOD1(OnSyncEnabled, void(const fileapi::FileSystemURL& url)); | |
20 MOCK_METHOD1(OnWriteEnabled, void(const fileapi::FileSystemURL& url)); | |
21 | |
22 private: | |
23 DISALLOW_COPY_AND_ASSIGN(MockSyncStatusObserver); | |
24 }; | |
25 | |
26 } // namespace sync_file_system | |
27 | |
28 #endif // WEBKIT_FILEAPI_SYNCABLE_MOCK_SYNC_STATUS_OBSERVER_H_ | |
OLD | NEW |