| OLD | NEW |
| 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_v2 { | 12 namespace syncer { |
| 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 Loading... |
| 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_v2 | 244 } // namespace syncer |
| OLD | NEW |