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

Side by Side Diff: chrome/browser/sync_file_system/mock_remote_file_sync_service.cc

Issue 107743002: Add 'Dump Database' tab to syncfs-internals (only for v2 for now) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 MockRemoteFileSyncService::~MockRemoteFileSyncService() { 48 MockRemoteFileSyncService::~MockRemoteFileSyncService() {
49 } 49 }
50 50
51 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpFiles( 51 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpFiles(
52 const GURL& origin) { 52 const GURL& origin) {
53 return scoped_ptr<base::ListValue>(); 53 return scoped_ptr<base::ListValue>();
54 } 54 }
55 55
56 scoped_ptr<base::ListValue> MockRemoteFileSyncService::DumpDatabase() {
57 return scoped_ptr<base::ListValue>();
58 }
59
56 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) { 60 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) {
57 state_ = state; 61 state_ = state;
58 } 62 }
59 63
60 void MockRemoteFileSyncService::NotifyRemoteChangeQueueUpdated( 64 void MockRemoteFileSyncService::NotifyRemoteChangeQueueUpdated(
61 int64 pending_changes) { 65 int64 pending_changes) {
62 FOR_EACH_OBSERVER(Observer, service_observers_, 66 FOR_EACH_OBSERVER(Observer, service_observers_,
63 OnRemoteChangeQueueUpdated(pending_changes)); 67 OnRemoteChangeQueueUpdated(pending_changes));
64 } 68 }
65 69
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ConflictResolutionPolicy 127 ConflictResolutionPolicy
124 MockRemoteFileSyncService::GetConflictResolutionPolicyStub() const { 128 MockRemoteFileSyncService::GetConflictResolutionPolicyStub() const {
125 return conflict_resolution_policy_; 129 return conflict_resolution_policy_;
126 } 130 }
127 131
128 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const { 132 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const {
129 return state_; 133 return state_;
130 } 134 }
131 135
132 } // namespace sync_file_system 136 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698