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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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_model_type_worker.h" 5 #include "components/sync/test/engine/mock_model_type_worker.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/sync/base/model_type.h" 8 #include "components/sync/base/model_type.h"
9 #include "components/sync/syncable/syncable_util.h" 9 #include "components/sync/syncable/syncable_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace syncer { 12 namespace syncer_v2 {
13 13
14 namespace { 14 namespace {
15 15
16 } // namespace 16 } // namespace
17 17
18 MockModelTypeWorker::MockModelTypeWorker( 18 MockModelTypeWorker::MockModelTypeWorker(
19 const sync_pb::DataTypeState& data_type_state, 19 const sync_pb::DataTypeState& data_type_state,
20 ModelTypeProcessor* processor) 20 ModelTypeProcessor* processor)
21 : data_type_state_(data_type_state), processor_(processor) { 21 : data_type_state_(data_type_state), processor_(processor) {
22 data_type_state_.set_initial_sync_done(true); 22 data_type_state_.set_initial_sync_done(true);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } else { 234 } else {
235 return it->second; 235 return it->second;
236 } 236 }
237 } 237 }
238 238
239 void MockModelTypeWorker::SetServerVersion(const std::string& tag_hash, 239 void MockModelTypeWorker::SetServerVersion(const std::string& tag_hash,
240 int64_t version) { 240 int64_t version) {
241 server_versions_[tag_hash] = version; 241 server_versions_[tag_hash] = version;
242 } 242 }
243 243
244 } // namespace syncer 244 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/test/engine/mock_model_type_worker.h ('k') | components/sync/test/engine/mock_nudge_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698