| 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 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" | 5 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 ON_CALL(*this, GetDefaultConflictResolutionPolicy()) | 47 ON_CALL(*this, GetDefaultConflictResolutionPolicy()) |
| 48 .WillByDefault( | 48 .WillByDefault( |
| 49 Invoke(this, &self::GetDefaultConflictResolutionPolicyStub)); | 49 Invoke(this, &self::GetDefaultConflictResolutionPolicyStub)); |
| 50 ON_CALL(*this, GetConflictResolutionPolicy(_)) | 50 ON_CALL(*this, GetConflictResolutionPolicy(_)) |
| 51 .WillByDefault(Invoke(this, &self::GetConflictResolutionPolicyStub)); | 51 .WillByDefault(Invoke(this, &self::GetConflictResolutionPolicyStub)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 MockRemoteFileSyncService::~MockRemoteFileSyncService() { | 54 MockRemoteFileSyncService::~MockRemoteFileSyncService() { |
| 55 } | 55 } |
| 56 | 56 |
| 57 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpFiles( | 57 void MockRemoteFileSyncService::DumpFiles(const GURL& origin, |
| 58 const GURL& origin) { | 58 const ListCallback& callback) { |
| 59 return scoped_ptr<base::ListValue>(); | 59 callback.Run(scoped_ptr<base::ListValue>()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpDatabase() { | 62 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpDatabase() { |
| 63 return scoped_ptr<base::ListValue>(); | 63 return scoped_ptr<base::ListValue>(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) { | 66 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) { |
| 67 state_ = state; | 67 state_ = state; |
| 68 } | 68 } |
| 69 | 69 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 MockRemoteFileSyncService::GetConflictResolutionPolicyStub( | 147 MockRemoteFileSyncService::GetConflictResolutionPolicyStub( |
| 148 const GURL& origin) const { | 148 const GURL& origin) const { |
| 149 return conflict_resolution_policy_; | 149 return conflict_resolution_policy_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const { | 152 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const { |
| 153 return state_; | 153 return state_; |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace sync_file_system | 156 } // namespace sync_file_system |
| OLD | NEW |