| 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. | |
| 6 | |
| 7 #include "components/sync/test/engine/test_syncable_utils.h" | 5 #include "components/sync/test/engine/test_syncable_utils.h" |
| 8 | 6 |
| 9 #include "components/sync/syncable/directory.h" | 7 #include "components/sync/syncable/directory.h" |
| 10 #include "components/sync/syncable/entry.h" | 8 #include "components/sync/syncable/entry.h" |
| 11 #include "components/sync/syncable/mutable_entry.h" | 9 #include "components/sync/syncable/mutable_entry.h" |
| 12 #include "components/sync/syncable/syncable_base_transaction.h" | 10 #include "components/sync/syncable/syncable_base_transaction.h" |
| 13 #include "components/sync/syncable/syncable_write_transaction.h" | 11 #include "components/sync/syncable/syncable_write_transaction.h" |
| 14 #include "components/sync/test/engine/test_id_factory.h" | 12 #include "components/sync/test/engine/test_id_factory.h" |
| 15 | 13 |
| 16 using std::string; | 14 using std::string; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 87 |
| 90 sync_pb::DataTypeProgressMarker BuildProgress(ModelType type) { | 88 sync_pb::DataTypeProgressMarker BuildProgress(ModelType type) { |
| 91 sync_pb::DataTypeProgressMarker progress; | 89 sync_pb::DataTypeProgressMarker progress; |
| 92 progress.set_token("token"); | 90 progress.set_token("token"); |
| 93 progress.set_data_type_id(GetSpecificsFieldNumberFromModelType(type)); | 91 progress.set_data_type_id(GetSpecificsFieldNumberFromModelType(type)); |
| 94 return progress; | 92 return progress; |
| 95 } | 93 } |
| 96 | 94 |
| 97 } // namespace syncable | 95 } // namespace syncable |
| 98 } // namespace syncer | 96 } // namespace syncer |
| OLD | NEW |