OLD | NEW |
1 // Copyright (c) 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 #include "sync/internal_api/public/test/test_entry_factory.h" | 5 #include "sync/internal_api/public/test/test_entry_factory.h" |
6 | 6 |
7 #include "sync/syncable/directory.h" | 7 #include "sync/syncable/directory.h" |
8 #include "sync/syncable/entry.h" | 8 #include "sync/syncable/entry.h" |
9 #include "sync/syncable/mutable_entry.h" | 9 #include "sync/syncable/mutable_entry.h" |
10 #include "sync/syncable/read_transaction.h" | |
11 #include "sync/syncable/syncable_id.h" | 10 #include "sync/syncable/syncable_id.h" |
12 #include "sync/syncable/write_transaction.h" | 11 #include "sync/syncable/syncable_read_transaction.h" |
| 12 #include "sync/syncable/syncable_write_transaction.h" |
13 #include "sync/test/engine/test_id_factory.h" | 13 #include "sync/test/engine/test_id_factory.h" |
14 | 14 |
15 using std::string; | 15 using std::string; |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
19 using syncable::Id; | 19 using syncable::Id; |
20 using syncable::MutableEntry; | 20 using syncable::MutableEntry; |
21 using syncable::UNITTEST; | 21 using syncable::UNITTEST; |
22 using syncable::WriteTransaction; | 22 using syncable::WriteTransaction; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 return false; | 246 return false; |
247 } | 247 } |
248 return entry.Get(syncable::IS_UNAPPLIED_UPDATE); | 248 return entry.Get(syncable::IS_UNAPPLIED_UPDATE); |
249 } | 249 } |
250 | 250 |
251 int64 TestEntryFactory::GetNextRevision() { | 251 int64 TestEntryFactory::GetNextRevision() { |
252 return next_revision_++; | 252 return next_revision_++; |
253 } | 253 } |
254 | 254 |
255 } // namespace syncer | 255 } // namespace syncer |
OLD | NEW |