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.cc34 FakeServerEntity::~FakeServerEntity() { } in ~FakeServerEntity()
36 const std::string& FakeServerEntity::GetId() const { in GetId()
40 ModelType FakeServerEntity::GetModelType() const { in GetModelType()
44 int64 FakeServerEntity::GetVersion() const { in GetVersion()
48 void FakeServerEntity::SetVersion(int64 version) { in SetVersion()
52 const std::string& FakeServerEntity::GetName() const { in GetName()
57 string FakeServerEntity::CreateId(const ModelType& model_type, in CreateId()
67 ModelType FakeServerEntity::GetModelTypeFromId(const string& id) { in GetModelTypeFromId()
79 FakeServerEntity::FakeServerEntity(const string& id, in FakeServerEntity() function in fake_server::FakeServerEntity
88 void FakeServerEntity::SerializeBaseProtoFields( in SerializeBaseProtoFields()
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::CreateId(model_type, server_tag); in CreateTopLevel()
71 FakeServerEntity* PermanentEntity::CreateUpdatedNigoriEntity( in CreateUpdatedNigoriEntity()
73 FakeServerEntity* current_server_entity) { in CreateUpdatedNigoriEntity()
92 : FakeServerEntity(id, model_type, 0, name), in PermanentEntity()
103 FakeServerEntity::SerializeBaseProtoFields(sync_entity); 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);
Dunique_client_entity.cc24 FakeServerEntity* UniqueClientEntity::CreateNew( in CreateNew()
31 FakeServerEntity::CreateId(model_type, base::GenerateGUID()) : in CreateNew()
45 FakeServerEntity* UniqueClientEntity::CreateUpdatedVersion( in CreateUpdatedVersion()
47 FakeServerEntity* current_server_entity) { in CreateUpdatedVersion()
69 : FakeServerEntity(id, model_type, version, name), in UniqueClientEntity()
84 FakeServerEntity::SerializeBaseProtoFields(sync_entity); in SerializeAsProto()
Dtombstone_entity.cc23 FakeServerEntity* TombstoneEntity::Create(const string& id) { in Create()
29 : FakeServerEntity(id, model_type, 0, string()) { } in TombstoneEntity()
37 FakeServerEntity::SerializeBaseProtoFields(sync_entity); in SerializeAsProto()
40 AddDefaultFieldValue(FakeServerEntity::GetModelType(), specifics); 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()
113 FakeServerEntity::SerializeBaseProtoFields(sync_entity); in SerializeAsProto()
Dunique_client_entity.h18 class UniqueClientEntity : public FakeServerEntity {
23 static FakeServerEntity* CreateNew(const sync_pb::SyncEntity& client_entity);
27 static FakeServerEntity* CreateUpdatedVersion(
29 FakeServerEntity* current_server_entity);
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()
371 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 {
29 virtual ~FakeServerEntity();
47 FakeServerEntity(const std::string& id,
Dtombstone_entity.h18 class TombstoneEntity : public FakeServerEntity {
23 static FakeServerEntity* Create(const std::string& id);
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()