| Index: sync/internal_api/public/base/model_type_test_util.cc
|
| diff --git a/sync/internal_api/public/base/model_type_test_util.cc b/sync/internal_api/public/base/model_type_test_util.cc
|
| index 8c1164bec2bf0246815d2a0ca6249b2337c1e2ba..242b398bc0bfeeb99977804b937cf97efee6d28d 100644
|
| --- a/sync/internal_api/public/base/model_type_test_util.cc
|
| +++ b/sync/internal_api/public/base/model_type_test_util.cc
|
| @@ -6,6 +6,25 @@
|
|
|
| namespace syncer {
|
|
|
| +ObjectIdInvalidationMap BuildInvalidationMap(
|
| + ModelType type,
|
| + int version,
|
| + const std::string& payload) {
|
| + ObjectIdInvalidationMap map;
|
| + invalidation::ObjectId id;
|
| + Invalidation invalidation;
|
| +
|
| + bool result = RealModelTypeToObjectId(type, &id);
|
| + DCHECK(result)
|
| + << "Conversion of model type to object id failed: "
|
| + << ModelTypeToString(type);
|
| + invalidation.version = version;
|
| + invalidation.payload = payload;
|
| +
|
| + map.insert(std::make_pair(id, invalidation));
|
| + return map;
|
| +}
|
| +
|
| void PrintTo(ModelTypeSet model_types, ::std::ostream* os) {
|
| *os << ModelTypeSetToString(model_types);
|
| }
|
|
|