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

Side by Side Diff: components/sync/test/engine/mock_update_handler.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/sync/test/engine/mock_update_handler.h" 5 #include "components/sync/test/engine/mock_update_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "components/sync/base/model_type.h" 9 #include "components/sync/base/model_type.h"
10 10
(...skipping 22 matching lines...) Expand all
33 sync_pb::DataTypeContext* context) const { 33 sync_pb::DataTypeContext* context) const {
34 context->Clear(); 34 context->Clear();
35 } 35 }
36 36
37 SyncerError MockUpdateHandler::ProcessGetUpdatesResponse( 37 SyncerError MockUpdateHandler::ProcessGetUpdatesResponse(
38 const sync_pb::DataTypeProgressMarker& progress_marker, 38 const sync_pb::DataTypeProgressMarker& progress_marker,
39 const sync_pb::DataTypeContext& mutated_context, 39 const sync_pb::DataTypeContext& mutated_context,
40 const SyncEntityList& applicable_updates, 40 const SyncEntityList& applicable_updates,
41 StatusController* status) { 41 StatusController* status) {
42 progress_marker_.CopyFrom(progress_marker); 42 progress_marker_.CopyFrom(progress_marker);
43 return syncer::SYNCER_OK; 43 return SYNCER_OK;
44 } 44 }
45 45
46 void MockUpdateHandler::ApplyUpdates(StatusController* status) { 46 void MockUpdateHandler::ApplyUpdates(StatusController* status) {
47 apply_updates_count_++; 47 apply_updates_count_++;
48 } 48 }
49 49
50 void MockUpdateHandler::PassiveApplyUpdates(StatusController* status) { 50 void MockUpdateHandler::PassiveApplyUpdates(StatusController* status) {
51 passive_apply_updates_count_++; 51 passive_apply_updates_count_++;
52 } 52 }
53 53
54 int MockUpdateHandler::GetApplyUpdatesCount() { 54 int MockUpdateHandler::GetApplyUpdatesCount() {
55 return apply_updates_count_; 55 return apply_updates_count_;
56 } 56 }
57 57
58 int MockUpdateHandler::GetPassiveApplyUpdatesCount() { 58 int MockUpdateHandler::GetPassiveApplyUpdatesCount() {
59 return passive_apply_updates_count_; 59 return passive_apply_updates_count_;
60 } 60 }
61 61
62 } // namespace syncer 62 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698