| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ConflictResolutionPolicy()); | 59 ConflictResolutionPolicy()); |
| 60 MOCK_METHOD2(GetRemoteVersions, | 60 MOCK_METHOD2(GetRemoteVersions, |
| 61 void(const fileapi::FileSystemURL&, | 61 void(const fileapi::FileSystemURL&, |
| 62 const RemoteVersionsCallback&)); | 62 const RemoteVersionsCallback&)); |
| 63 MOCK_METHOD3(DownloadRemoteVersion, | 63 MOCK_METHOD3(DownloadRemoteVersion, |
| 64 void(const fileapi::FileSystemURL&, | 64 void(const fileapi::FileSystemURL&, |
| 65 const std::string&, | 65 const std::string&, |
| 66 const DownloadVersionCallback&)); | 66 const DownloadVersionCallback&)); |
| 67 | 67 |
| 68 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; | 68 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; |
| 69 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; |
| 69 | 70 |
| 70 void SetServiceState(RemoteServiceState state); | 71 void SetServiceState(RemoteServiceState state); |
| 71 | 72 |
| 72 // Send notifications to the observers. | 73 // Send notifications to the observers. |
| 73 // Can be used in the mock implementation. | 74 // Can be used in the mock implementation. |
| 74 void NotifyRemoteChangeQueueUpdated(int64 pending_changes); | 75 void NotifyRemoteChangeQueueUpdated(int64 pending_changes); |
| 75 void NotifyRemoteServiceStateUpdated( | 76 void NotifyRemoteServiceStateUpdated( |
| 76 RemoteServiceState state, | 77 RemoteServiceState state, |
| 77 const std::string& description); | 78 const std::string& description); |
| 78 void NotifyFileStatusChanged( | 79 void NotifyFileStatusChanged( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 104 ConflictResolutionPolicy conflict_resolution_policy_; | 105 ConflictResolutionPolicy conflict_resolution_policy_; |
| 105 | 106 |
| 106 RemoteServiceState state_; | 107 RemoteServiceState state_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); | 109 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace sync_file_system | 112 } // namespace sync_file_system |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 114 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
| OLD | NEW |