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

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

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 20 matching lines...) Expand all
31 31
32 void MockUpdateHandler::GetDataTypeContext( 32 void MockUpdateHandler::GetDataTypeContext(
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 sessions::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::SYNCER_OK;
44 } 44 }
45 45
46 void MockUpdateHandler::ApplyUpdates(sessions::StatusController* status) { 46 void MockUpdateHandler::ApplyUpdates(StatusController* status) {
47 apply_updates_count_++; 47 apply_updates_count_++;
48 } 48 }
49 49
50 void MockUpdateHandler::PassiveApplyUpdates( 50 void MockUpdateHandler::PassiveApplyUpdates(StatusController* status) {
51 sessions::StatusController* status) {
52 passive_apply_updates_count_++; 51 passive_apply_updates_count_++;
53 } 52 }
54 53
55 int MockUpdateHandler::GetApplyUpdatesCount() { 54 int MockUpdateHandler::GetApplyUpdatesCount() {
56 return apply_updates_count_; 55 return apply_updates_count_;
57 } 56 }
58 57
59 int MockUpdateHandler::GetPassiveApplyUpdatesCount() { 58 int MockUpdateHandler::GetPassiveApplyUpdatesCount() {
60 return passive_apply_updates_count_; 59 return passive_apply_updates_count_;
61 } 60 }
62 61
63 } // namespace syncer 62 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/mock_update_handler.h ('k') | components/sync/test/sessions/mock_debug_info_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698