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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 "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
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
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