| Index: components/sync/test/engine/test_syncable_utils.cc
|
| diff --git a/components/sync/test/engine/test_syncable_utils.cc b/components/sync/test/engine/test_syncable_utils.cc
|
| index f3c6007ed0dab057fcc93b2c64dc1df6fb03633f..5761cd5da5b87deec51baae8fa96bf4cfb1121f6 100644
|
| --- a/components/sync/test/engine/test_syncable_utils.cc
|
| +++ b/components/sync/test/engine/test_syncable_utils.cc
|
| @@ -66,6 +66,10 @@ Id GetOnlyEntryWithName(BaseTransaction* rtrans,
|
| void CreateTypeRoot(WriteTransaction* trans,
|
| syncable::Directory* dir,
|
| ModelType type) {
|
| + // Root node for this type shouldn't exist yet.
|
| + Entry same_type_root(trans, GET_TYPE_ROOT, type);
|
| + DCHECK(!same_type_root.good());
|
| +
|
| std::string tag_name = ModelTypeToRootTag(type);
|
| syncable::MutableEntry node(trans, syncable::CREATE, type,
|
| TestIdFactory::root(), tag_name);
|
|
|