| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef SYNC_TEST_TEST_ENTRY_FACTORY_H_ | 5 #ifndef SYNC_TEST_TEST_ENTRY_FACTORY_H_ |
| 6 #define SYNC_TEST_TEST_ENTRY_FACTORY_H_ | 6 #define SYNC_TEST_TEST_ENTRY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "sync/internal_api/public/syncable/model_type.h" | 11 #include "sync/internal_api/public/syncable/model_type.h" |
| 12 #include "sync/protocol/sync.pb.h" | 12 #include "sync/protocol/sync.pb.h" |
| 13 | 13 |
| 14 namespace syncable { | 14 namespace syncable { |
| 15 class Directory; | 15 class Directory; |
| 16 class Id; | 16 class Id; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace csync { | 19 namespace syncer { |
| 20 | 20 |
| 21 class TestEntryFactory { | 21 class TestEntryFactory { |
| 22 public: | 22 public: |
| 23 explicit TestEntryFactory(syncable::Directory* dir); | 23 explicit TestEntryFactory(syncable::Directory* dir); |
| 24 ~TestEntryFactory(); | 24 ~TestEntryFactory(); |
| 25 | 25 |
| 26 // Create a new unapplied folder node with a parent. | 26 // Create a new unapplied folder node with a parent. |
| 27 void CreateUnappliedNewItemWithParent( | 27 void CreateUnappliedNewItemWithParent( |
| 28 const std::string& item_id, | 28 const std::string& item_id, |
| 29 const sync_pb::EntitySpecifics& specifics, | 29 const sync_pb::EntitySpecifics& specifics, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 58 | 58 |
| 59 int64 GetNextRevision(); | 59 int64 GetNextRevision(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 syncable::Directory* directory_; | 62 syncable::Directory* directory_; |
| 63 int64 next_revision_; | 63 int64 next_revision_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory); | 65 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace csync | 68 } // namespace syncer |
| 69 | 69 |
| 70 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_ | 70 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_ |
| OLD | NEW |