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 "sync/test/engine/mock_model_type_worker.h" | 5 #include "components/sync/test/engine/mock_model_type_worker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "sync/internal_api/public/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
12 #include "sync/syncable/syncable_util.h" | 12 #include "components/sync/syncable/syncable_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace syncer_v2 { | 15 namespace syncer_v2 { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 std::string GenerateTagHash(const std::string& tag) { | 19 std::string GenerateTagHash(const std::string& tag) { |
20 return syncer::syncable::GenerateSyncableHash(syncer::PREFERENCES, tag); | 20 return syncer::syncable::GenerateSyncableHash(syncer::PREFERENCES, tag); |
21 } | 21 } |
22 | 22 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 return it->second; | 242 return it->second; |
243 } | 243 } |
244 } | 244 } |
245 | 245 |
246 void MockModelTypeWorker::SetServerVersion(const std::string& tag_hash, | 246 void MockModelTypeWorker::SetServerVersion(const std::string& tag_hash, |
247 int64_t version) { | 247 int64_t version) { |
248 server_versions_[tag_hash] = version; | 248 server_versions_[tag_hash] = version; |
249 } | 249 } |
250 | 250 |
251 } // namespace syncer_v2 | 251 } // namespace syncer_v2 |
OLD | NEW |