Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: chrome/browser/sync_file_system/mock_remote_file_sync_service.cc

Issue 286203007: [SyncFS] Drop manual conflict resolution policy support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop more unused Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc b/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
index ac28e5e2f62e7bd9391e80f1889837a5fa326726..db58a51845102062f6d2a0010f8e795e0541f75b 100644
--- a/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
@@ -35,20 +35,8 @@ MockRemoteFileSyncService::MockRemoteFileSyncService()
.WillByDefault(Invoke(this, &self::ProcessRemoteChangeStub));
ON_CALL(*this, GetLocalChangeProcessor())
.WillByDefault(Return(&mock_local_change_processor_));
- ON_CALL(*this, IsConflicting(_))
- .WillByDefault(Return(false));
ON_CALL(*this, GetCurrentState())
.WillByDefault(Invoke(this, &self::GetCurrentStateStub));
- ON_CALL(*this, SetDefaultConflictResolutionPolicy(_))
- .WillByDefault(
- Invoke(this, &self::SetDefaultConflictResolutionPolicyStub));
- ON_CALL(*this, SetConflictResolutionPolicy(_, _))
- .WillByDefault(Invoke(this, &self::SetConflictResolutionPolicyStub));
- ON_CALL(*this, GetDefaultConflictResolutionPolicy())
- .WillByDefault(
- Invoke(this, &self::GetDefaultConflictResolutionPolicyStub));
- ON_CALL(*this, GetConflictResolutionPolicy(_))
- .WillByDefault(Invoke(this, &self::GetConflictResolutionPolicyStub));
}
MockRemoteFileSyncService::~MockRemoteFileSyncService() {
@@ -124,31 +112,6 @@ void MockRemoteFileSyncService::ProcessRemoteChangeStub(
fileapi::FileSystemURL()));
}
-SyncStatusCode
-MockRemoteFileSyncService::SetDefaultConflictResolutionPolicyStub(
- ConflictResolutionPolicy policy) {
- conflict_resolution_policy_ = policy;
- return SYNC_STATUS_OK;
-}
-
-SyncStatusCode MockRemoteFileSyncService::SetConflictResolutionPolicyStub(
- const GURL& origin,
- ConflictResolutionPolicy policy) {
- conflict_resolution_policy_ = policy;
- return SYNC_STATUS_OK;
-}
-
-ConflictResolutionPolicy
-MockRemoteFileSyncService::GetDefaultConflictResolutionPolicyStub() const {
- return conflict_resolution_policy_;
-}
-
-ConflictResolutionPolicy
-MockRemoteFileSyncService::GetConflictResolutionPolicyStub(
- const GURL& origin) const {
- return conflict_resolution_policy_;
-}
-
RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const {
return state_;
}

Powered by Google App Engine
This is Rietveld 408576698