| 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 MOCK_METHOD2(RegisterOriginForTrackingChanges, | 30 MOCK_METHOD2(RegisterOriginForTrackingChanges, |
| 31 void(const GURL& origin, | 31 void(const GURL& origin, |
| 32 const fileapi::SyncStatusCallback& callback)); | 32 const fileapi::SyncStatusCallback& callback)); |
| 33 MOCK_METHOD2(UnregisterOriginForTrackingChanges, | 33 MOCK_METHOD2(UnregisterOriginForTrackingChanges, |
| 34 void(const GURL& origin, | 34 void(const GURL& origin, |
| 35 const fileapi::SyncStatusCallback& callback)); | 35 const fileapi::SyncStatusCallback& callback)); |
| 36 MOCK_METHOD2(ProcessRemoteChange, | 36 MOCK_METHOD2(ProcessRemoteChange, |
| 37 void(RemoteChangeProcessor* processor, | 37 void(RemoteChangeProcessor* processor, |
| 38 const fileapi::SyncOperationCallback& callback)); | 38 const fileapi::SyncOperationCallback& callback)); |
| 39 MOCK_METHOD0(GetLocalChangeProcessor, LocalChangeProcessor*()); | 39 MOCK_METHOD0(GetLocalChangeProcessor, LocalChangeProcessor*()); |
| 40 MOCK_METHOD1(IsConflicting, bool(const fileapi::FileSystemURL& url)); |
| 40 MOCK_METHOD2(GetConflictFiles, | 41 MOCK_METHOD2(GetConflictFiles, |
| 41 void(const GURL& origin, | 42 void(const GURL& origin, |
| 42 const fileapi::SyncFileSetCallback& callback)); | 43 const fileapi::SyncFileSetCallback& callback)); |
| 43 MOCK_METHOD2(GetRemoteFileMetadata, | 44 MOCK_METHOD2(GetRemoteFileMetadata, |
| 44 void(const fileapi::FileSystemURL& url, | 45 void(const fileapi::FileSystemURL& url, |
| 45 const fileapi::SyncFileMetadataCallback& callback)); | 46 const fileapi::SyncFileMetadataCallback& callback)); |
| 46 MOCK_CONST_METHOD0(GetCurrentState, | 47 MOCK_CONST_METHOD0(GetCurrentState, |
| 47 RemoteServiceState()); | 48 RemoteServiceState()); |
| 48 | 49 |
| 49 // Send notifications to the observers. | 50 // Send notifications to the observers. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 MockLocalChangeProcessor mock_local_change_processor_; | 99 MockLocalChangeProcessor mock_local_change_processor_; |
| 99 | 100 |
| 100 ObserverList<Observer> observers_; | 101 ObserverList<Observer> observers_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); | 103 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace sync_file_system | 106 } // namespace sync_file_system |
| 106 | 107 |
| 107 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 108 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
| OLD | NEW |