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/single_type_mock_server.h" | 5 #include "components/sync/test/engine/single_type_mock_server.h" |
6 | 6 |
7 #include <stddef.h> | |
8 #include <stdint.h> | |
9 | |
10 #include "components/sync/base/time.h" | 7 #include "components/sync/base/time.h" |
11 | 8 |
12 using google::protobuf::RepeatedPtrField; | 9 using google::protobuf::RepeatedPtrField; |
13 | 10 |
14 namespace syncer { | 11 namespace syncer { |
15 | 12 |
16 SingleTypeMockServer::SingleTypeMockServer(syncer::ModelType type) | 13 SingleTypeMockServer::SingleTypeMockServer(syncer::ModelType type) |
17 : type_(type), type_root_id_(ModelTypeToRootTag(type)) {} | 14 : type_(type), type_root_id_(ModelTypeToRootTag(type)) {} |
18 | 15 |
19 SingleTypeMockServer::~SingleTypeMockServer() {} | 16 SingleTypeMockServer::~SingleTypeMockServer() {} |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 return it->second; | 167 return it->second; |
171 } | 168 } |
172 } | 169 } |
173 | 170 |
174 void SingleTypeMockServer::SetServerVersion(const std::string& tag_hash, | 171 void SingleTypeMockServer::SetServerVersion(const std::string& tag_hash, |
175 int64_t version) { | 172 int64_t version) { |
176 server_versions_[tag_hash] = version; | 173 server_versions_[tag_hash] = version; |
177 } | 174 } |
178 | 175 |
179 } // namespace syncer | 176 } // namespace syncer |
OLD | NEW |