Home
last modified time | relevance | path

Searched refs:FakeServerEntity (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/sync/test/fake_server/
Dfake_server_entity.cc38 FakeServerEntity::~FakeServerEntity() { } in ~FakeServerEntity()
40 const std::string& FakeServerEntity::GetId() const { in GetId()
44 ModelType FakeServerEntity::GetModelType() const { in GetModelType()
48 int64 FakeServerEntity::GetVersion() const { in GetVersion()
52 void FakeServerEntity::SetVersion(int64 version) { in SetVersion()
56 const std::string& FakeServerEntity::GetName() const { in GetName()
61 string FakeServerEntity::CreateId(const ModelType& model_type, in CreateId()
71 std::string FakeServerEntity::GetTopLevelId(const ModelType& model_type) { in GetTopLevelId()
72 return FakeServerEntity::CreateId( in GetTopLevelId()
78 ModelType FakeServerEntity::GetModelTypeFromId(const string& id) { in GetModelTypeFromId()
[all …]
Dpermanent_entity.cc28 FakeServerEntity* PermanentEntity::Create(const ModelType& model_type, in Create()
41 string id = FakeServerEntity::CreateId(model_type, server_tag); in Create()
42 string parent_id = FakeServerEntity::CreateId(model_type, parent_server_tag); in Create()
54 FakeServerEntity* PermanentEntity::CreateTopLevel(const ModelType& model_type) { in CreateTopLevel()
59 string id = FakeServerEntity::GetTopLevelId(model_type); in CreateTopLevel()
71 FakeServerEntity* PermanentEntity::CreateUpdatedNigoriEntity( in CreateUpdatedNigoriEntity()
73 FakeServerEntity* current_server_entity) { in CreateUpdatedNigoriEntity()
92 : FakeServerEntity(id, model_type, 0, name), in PermanentEntity()
102 FakeServerEntity::SerializeBaseProtoFields(proto); in SerializeAsProto()
Dpermanent_entity.h18 class PermanentEntity : public FakeServerEntity {
24 static FakeServerEntity* Create(const syncer::ModelType& model_type,
31 static FakeServerEntity* CreateTopLevel(const syncer::ModelType& model_type);
35 static FakeServerEntity* CreateUpdatedNigoriEntity(
37 FakeServerEntity* current_server_entity);
Dtombstone_entity.cc23 FakeServerEntity* TombstoneEntity::Create(const string& id) { in Create()
29 : FakeServerEntity(id, model_type, 0, string()) { } in TombstoneEntity()
36 FakeServerEntity::SerializeBaseProtoFields(proto); in SerializeAsProto()
39 AddDefaultFieldValue(FakeServerEntity::GetModelType(), specifics); in SerializeAsProto()
Dunique_client_entity.cc25 FakeServerEntity* UniqueClientEntity::Create( in Create()
45 return FakeServerEntity::CreateId( in EffectiveIdForClientTaggedEntity()
59 : FakeServerEntity(id, model_type, version, name), in UniqueClientEntity()
68 return FakeServerEntity::GetTopLevelId(model_type_); in GetParentId()
72 FakeServerEntity::SerializeBaseProtoFields(proto); in SerializeAsProto()
Dbookmark_entity.cc31 FakeServerEntity* BookmarkEntity::CreateNew( in CreateNew()
38 string id = FakeServerEntity::CreateId(syncer::BOOKMARKS, in CreateNew()
57 FakeServerEntity* BookmarkEntity::CreateUpdatedVersion( in CreateUpdatedVersion()
59 FakeServerEntity* current_server_entity, in CreateUpdatedVersion()
97 : FakeServerEntity(id, syncer::BOOKMARKS, version, name), in BookmarkEntity()
112 FakeServerEntity::SerializeBaseProtoFields(proto); in SerializeAsProto()
Dfake_server.cc45 class FakeServerEntity;
81 bool ClientWantsItem(FakeServerEntity* entity) const { in ClientWantsItem()
165 FakeServerEntity* top_level_entity = in CreateDefaultPermanentItems()
173 FakeServerEntity* bookmark_bar_entity = in CreateDefaultPermanentItems()
183 FakeServerEntity* other_bookmarks_entity = in CreateDefaultPermanentItems()
201 FakeServerEntity* mobile_bookmarks_entity = in CreateMobileBookmarksPermanentItem()
213 void FakeServer::SaveEntity(FakeServerEntity* entity) { in SaveEntity()
288 FakeServerEntity* entity = it->second; in HandleGetUpdatesRequest()
324 FakeServerEntity* entity; in CommitEntity()
365 FakeServerEntity* entity) { in BuildEntryResponseForSuccessfulCommit()
[all …]
Dbookmark_entity_builder.cc48 scoped_ptr<FakeServerEntity> BookmarkEntityBuilder::Build() { in Build()
50 return make_scoped_ptr<FakeServerEntity>(NULL); in Build()
65 return make_scoped_ptr<FakeServerEntity>( in Build()
77 FakeServerEntity::CreateId(syncer::BOOKMARKS, in Build()
Dbookmark_entity.h20 class BookmarkEntity : public FakeServerEntity {
26 static FakeServerEntity* CreateNew(const sync_pb::SyncEntity& client_entity,
34 static FakeServerEntity* CreateUpdatedVersion(
36 FakeServerEntity* current_server_entity,
Dfake_server.h58 void InjectEntity(scoped_ptr<FakeServerEntity> entity);
85 typedef std::map<std::string, FakeServerEntity*> EntityMap;
103 void SaveEntity(FakeServerEntity* entity);
120 FakeServerEntity* entity);
Dfake_server_entity.h18 class FakeServerEntity {
32 virtual ~FakeServerEntity();
50 FakeServerEntity(const std::string& id,
Dtombstone_entity.h18 class TombstoneEntity : public FakeServerEntity {
23 static FakeServerEntity* Create(const std::string& id);
Dunique_client_entity.h18 class UniqueClientEntity : public FakeServerEntity {
23 static FakeServerEntity* Create(const sync_pb::SyncEntity& client_entity);
Dentity_builder.cc19 : id_(FakeServerEntity::CreateId(model_type, base::GenerateGUID())), in EntityBuilder()
Dentity_builder.h25 virtual scoped_ptr<FakeServerEntity> Build() = 0;
Dbookmark_entity_builder.h29 virtual scoped_ptr<FakeServerEntity> Build() OVERRIDE;
/external/chromium_org/chrome/browser/sync/test/integration/
Dsingle_client_bookmarks_sync_test.cc191 scoped_ptr<fake_server::FakeServerEntity> entity = in IN_PROC_BROWSER_TEST_F()