Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: sync/test/engine/test_syncable_utils.cc

Issue 398813005: [Sync] Rely on directory to decide which types need to be purged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/test/engine/test_syncable_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sync/test/engine/test_syncable_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698