/external/chromium_org/sync/test/engine/ |
mock_model_type_sync_proxy.cc | 58 const std::string& tag_hash, 60 const int64 base_version = GetBaseVersion(tag_hash); 64 if (HasServerAssignedId(tag_hash)) { 65 data.id = GetServerAssignedId(tag_hash); 68 data.client_tag_hash = tag_hash; 69 data.sequence_number = GetNextSequenceNumber(tag_hash); 78 data.non_unique_name = "Name: " + tag_hash; 84 const std::string& tag_hash) { 85 const int64 base_version = GetBaseVersion(tag_hash); 88 if (HasServerAssignedId(tag_hash)) { [all...] |
mock_model_type_sync_worker.cc | 33 const std::string& tag_hash) const { 35 // recent one that applies to the specified tag_hash. 43 if (it->client_tag_hash == tag_hash) { 53 const std::string& tag_hash) const { 55 // recent one that applies to the specified tag_hash. 63 if (it->client_tag_hash == tag_hash) { 69 NOTREACHED() << "Could not find commit for tag hash " << tag_hash << "."; 75 const std::string& tag_hash, 78 int64 old_version = GetServerVersion(tag_hash); 81 SetServerVersion(tag_hash, version) [all...] |
mock_model_type_sync_proxy.h | 60 CommitRequestData CommitRequest(const std::string& tag_hash, 62 CommitRequestData DeleteRequest(const std::string& tag_hash); 79 // Getters to access the lastest update response for a given tag_hash. 80 bool HasUpdateResponse(const std::string& tag_hash) const; 81 UpdateResponseData GetUpdateResponse(const std::string& tag_hash) const; 83 // Getters to access the lastest commit response for a given tag_hash. 84 bool HasCommitResponse(const std::string& tag_hash) const; 85 CommitResponseData GetCommitResponse(const std::string& tag_hash) const; 102 int64 GetCurrentSequenceNumber(const std::string& tag_hash) const; 103 int64 GetNextSequenceNumber(const std::string& tag_hash); [all...] |
mock_model_type_sync_worker.h | 32 bool HasCommitRequestForTagHash(const std::string& tag_hash) const; 34 const std::string& tag_hash) const; 47 const std::string& tag_hash, 53 const std::string& tag_hash); 67 static std::string GenerateId(const std::string& tag_hash); 70 int64 GetServerVersion(const std::string& tag_hash); 71 void SetServerVersion(const std::string& tag_hash, int64 version);
|
single_type_mock_server.h | 35 const std::string& tag_hash, 41 const std::string& tag_hash); 61 bool HasCommitEntity(const std::string& tag_hash) const; 62 sync_pb::SyncEntity GetLastCommittedEntity(const std::string& tag_hash) const; 70 static std::string GenerateId(const std::string& tag_hash); 73 int64 GetServerVersion(const std::string& tag_hash) const; 74 void SetServerVersion(const std::string& tag_hash, int64 version); 85 // Map of most recent commits by tag_hash.
|
single_type_mock_server.cc | 37 const std::string& tag_hash, 39 int64 old_version = GetServerVersion(tag_hash); 42 SetServerVersion(tag_hash, version); 47 entity.set_id_string(GenerateId(tag_hash)); 50 entity.set_client_defined_unique_tag(tag_hash); 59 entity.set_name("Name: " + tag_hash); 66 const std::string& tag_hash) { 67 int64 old_version = GetServerVersion(tag_hash); 70 SetServerVersion(tag_hash, version); 75 entity.set_id_string(GenerateId(tag_hash)); 105 const std::string tag_hash = it->client_defined_unique_tag(); local [all...] |
/external/chromium_org/sync/engine/ |
model_type_sync_worker_impl_unittest.cc | 357 const std::string tag_hash = GenerateTagHash(name); local 359 tag_hash, GenerateSpecifics(name, value)); 366 const std::string tag_hash = GenerateTagHash(tag); local 367 CommitRequestData data = mock_type_sync_proxy_->DeleteRequest(tag_hash); 497 const std::string tag_hash = GenerateTagHash(tag); local 498 return mock_server_.HasCommitEntity(tag_hash); 504 const std::string tag_hash = GenerateTagHash(tag); local 505 return mock_server_.GetLastCommittedEntity(tag_hash); 532 const std::string tag_hash = GenerateTagHash(tag); local 533 return mock_type_sync_proxy_->HasUpdateResponse(tag_hash); 538 const std::string tag_hash = GenerateTagHash(tag); local 560 const std::string tag_hash = GenerateTagHash(tag); local 567 const std::string tag_hash = GenerateTagHash(tag); local 832 const std::string& tag_hash = GenerateTagHash("tag1"); local [all...] |
model_type_sync_proxy_impl_unittest.cc | 184 const std::string tag_hash = GenerateTagHash(tag); local 203 const std::string tag_hash = GenerateTagHash(tag); local 205 version_offset, tag_hash, GenerateSpecifics(tag, value)); 218 const std::string tag_hash = GenerateTagHash(tag); local 221 tag_hash, 233 std::string tag_hash = GenerateTagHash(tag); local 236 mock_worker_->TombstoneFromServer(version_offset, tag_hash); 333 const std::string tag_hash = GenerateTagHash(tag); local 334 return mock_worker_->HasCommitRequestForTagHash(tag_hash); 339 const std::string tag_hash = GenerateTagHash(tag) local [all...] |