OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 // Utilities to verify the state of items in unit tests. | 5 // Utilities to verify the state of items in unit tests. |
6 | 6 |
7 #include "sync/test/engine/test_syncable_utils.h" | 7 #include "sync/test/engine/test_syncable_utils.h" |
8 | 8 |
9 #include "sync/syncable/directory.h" | 9 #include "sync/syncable/directory.h" |
10 #include "sync/syncable/entry.h" | 10 #include "sync/syncable/entry.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 node.PutServerVersion(20); | 83 node.PutServerVersion(20); |
84 node.PutBaseVersion(20); | 84 node.PutBaseVersion(20); |
85 node.PutIsDel(false); | 85 node.PutIsDel(false); |
86 node.PutId(syncer::TestIdFactory::MakeServer(tag_name)); | 86 node.PutId(syncer::TestIdFactory::MakeServer(tag_name)); |
87 sync_pb::EntitySpecifics specifics; | 87 sync_pb::EntitySpecifics specifics; |
88 syncer::AddDefaultFieldValue(type, &specifics); | 88 syncer::AddDefaultFieldValue(type, &specifics); |
89 node.PutServerSpecifics(specifics); | 89 node.PutServerSpecifics(specifics); |
90 node.PutSpecifics(specifics); | 90 node.PutSpecifics(specifics); |
91 } | 91 } |
92 | 92 |
| 93 sync_pb::DataTypeProgressMarker BuildProgress(ModelType type) { |
| 94 sync_pb::DataTypeProgressMarker progress; |
| 95 progress.set_token("token"); |
| 96 progress.set_data_type_id(GetSpecificsFieldNumberFromModelType(type)); |
| 97 return progress; |
| 98 } |
| 99 |
93 } // namespace syncable | 100 } // namespace syncable |
94 } // namespace syncer | 101 } // namespace syncer |
OLD | NEW |