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

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

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 unified diff | Download patch
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void MockRemoteFileSyncService::DumpDatabase(const ListCallback& callback) { 50 void MockRemoteFileSyncService::DumpDatabase(const ListCallback& callback) {
51 callback.Run(nullptr); 51 callback.Run(nullptr);
52 } 52 }
53 53
54 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) { 54 void MockRemoteFileSyncService::SetServiceState(RemoteServiceState state) {
55 state_ = state; 55 state_ = state;
56 } 56 }
57 57
58 void MockRemoteFileSyncService::NotifyRemoteChangeQueueUpdated( 58 void MockRemoteFileSyncService::NotifyRemoteChangeQueueUpdated(
59 int64 pending_changes) { 59 int64_t pending_changes) {
60 FOR_EACH_OBSERVER(Observer, service_observers_, 60 FOR_EACH_OBSERVER(Observer, service_observers_,
61 OnRemoteChangeQueueUpdated(pending_changes)); 61 OnRemoteChangeQueueUpdated(pending_changes));
62 } 62 }
63 63
64 void MockRemoteFileSyncService::NotifyRemoteServiceStateUpdated( 64 void MockRemoteFileSyncService::NotifyRemoteServiceStateUpdated(
65 RemoteServiceState state, 65 RemoteServiceState state,
66 const std::string& description) { 66 const std::string& description) {
67 FOR_EACH_OBSERVER(Observer, service_observers_, 67 FOR_EACH_OBSERVER(Observer, service_observers_,
68 OnRemoteServiceStateUpdated(state, description)); 68 OnRemoteServiceStateUpdated(state, description));
69 } 69 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 FROM_HERE, 111 FROM_HERE,
112 base::Bind( 112 base::Bind(
113 callback, SYNC_STATUS_NO_CHANGE_TO_SYNC, storage::FileSystemURL())); 113 callback, SYNC_STATUS_NO_CHANGE_TO_SYNC, storage::FileSystemURL()));
114 } 114 }
115 115
116 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const { 116 RemoteServiceState MockRemoteFileSyncService::GetCurrentStateStub() const {
117 return state_; 117 return state_;
118 } 118 }
119 119
120 } // namespace sync_file_system 120 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698