Home
last modified time | relevance | path

Searched refs:id_string (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/sync/tools/testserver/
Dchromiumsync_test.py25 self.model._entries[proto.id_string] = proto
61 proto.id_string = 'abcd'
63 self.assertFalse(self.model._ItemExists(proto.id_string))
66 self.assertTrue(self.model._ItemExists(proto.id_string))
70 self.assertTrue(self.model._ItemExists(proto.id_string))
71 self.assertEqual(2, self.model._entries[proto.id_string].version)
137 entry.id_string = 'batch test %d' % i
161 entry.id_string = 'batch test %d' % i
196 def DoCommit(original=None, id_string='', name=None, parent=None, argument
201 proto.id_string = original.id_string
[all …]
Dchromiumsync.py604 base_entry = self._entries.get(entry.id_string)
609 self._entries[entry.id_string] = copy.deepcopy(entry)
666 def _ExtractIdInfo(self, id_string): argument
667 if not id_string or id_string == ROOT_ID:
669 datatype_string, separator, remainder = id_string.partition('^')
697 def _ItemExists(self, id_string): argument
699 return id_string in self._entries
709 id_string = self._ServerTagToId(spec.tag)
710 if self._ItemExists(id_string):
714 entry.id_string = id_string
[all …]
/external/chromium_org/sync/internal_api/
Dbase_node.cc179 syncable::Id id_string = GetEntry()->GetPredecessorId(); in GetPredecessorId() local
180 if (id_string.IsRoot()) in GetPredecessorId()
182 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string); in GetPredecessorId()
186 syncable::Id id_string = GetEntry()->GetSuccessorId(); in GetSuccessorId() local
187 if (id_string.IsRoot()) in GetSuccessorId()
189 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string); in GetSuccessorId()
193 syncable::Id id_string = GetEntry()->GetFirstChildId(); in GetFirstChildId() local
194 if (id_string.IsRoot()) in GetFirstChildId()
196 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string); in GetFirstChildId()
/external/chromium_org/sync/test/engine/
Dmock_connection_manager.cc398 last_sent_commit().entries(0).id_string())); in AddUpdateFromLastCommit()
409 last_commit_response().entryresponse(0).id_string()); in AddUpdateFromLastCommit()
415 last_commit_response().entryresponse(0).id_string()); in AddUpdateFromLastCommit()
442 string id_string = GetMutableLastUpdate()->id_string(); in SetLastUpdateDeleted() local
444 AddUpdateTombstone(syncable::Id::CreateFromServerId(id_string)); in SetLastUpdateDeleted()
578 string id_string = entry.id_string(); in ProcessCommit() local
585 id = syncable::Id::CreateFromClientString(id_string); in ProcessCommit()
587 id = syncable::Id::CreateFromServerId(id_string); in ProcessCommit()
591 if (response_map.end() == response_map.find(id_string)) in ProcessCommit()
592 response_map[id_string] = commit_response->add_entryresponse(); in ProcessCommit()
[all …]
/external/chromium_org/sync/test/fake_server/
Dfake_server.cc326 entity = TombstoneEntity::Create(client_entity.id_string()); in CommitEntity()
329 if (!DeleteChildren(client_entity.id_string())) { in CommitEntity()
337 entities_[client_entity.id_string()]); in CommitEntity()
339 if (entities_.find(client_entity.id_string()) != entities_.end()) { in CommitEntity()
342 entities_[client_entity.id_string()]); in CommitEntity()
348 if (entities_.find(client_entity.id_string()) != entities_.end()) { in CommitEntity()
351 entities_[client_entity.id_string()], in CommitEntity()
448 if (entity_id != client_entity.id_string()) { in HandleCommitRequest()
449 client_to_server_ids[client_entity.id_string()] = entity_id; in HandleCommitRequest()
Dunique_client_entity.cc32 client_entity.id_string(); in CreateNew()
48 return new UniqueClientEntity(client_entity.id_string(), in CreateUpdatedVersion()
Dbookmark_entity.cc41 string originator_client_item_id = client_entity.id_string(); in CreateNew()
72 return new BookmarkEntity(client_entity.id_string(), in CreateUpdatedVersion()
/external/chromium_org/sync/engine/
Dsync_thread_sync_entity.cc16 const std::string& id_string, in FromServerUpdate() argument
20 id_string, client_tag_hash, 0, received_version); in FromServerUpdate()
24 const std::string& id_string, in FromCommitRequest() argument
33 return new SyncThreadSyncEntity(id_string, in FromCommitRequest()
Ddirectory_update_handler_unittest.cc282 type_root->id_string(), in TEST_F()
287 type_root->id_string(), in TEST_F()
304 EXPECT_TRUE(EntryExists(type_root->id_string())); in TEST_F()
305 EXPECT_TRUE(EntryExists(e1->id_string())); in TEST_F()
306 EXPECT_TRUE(EntryExists(e2->id_string())); in TEST_F()
314 EXPECT_TRUE(EntryExists(type_root->id_string())); in TEST_F()
315 EXPECT_FALSE(EntryExists(e1->id_string())); in TEST_F()
316 EXPECT_TRUE(EntryExists(e2->id_string())); in TEST_F()
345 type_root->id_string(), in TEST_F()
358 EXPECT_TRUE(EntryExists(type_root->id_string())); in TEST_F()
[all …]
Dnon_blocking_type_processor_core.cc75 DCHECK_EQ(data_type_state_.type_root_id, update_entity->id_string()); in ProcessGetUpdatesResponse()
77 data_type_state_.type_root_id = update_entity->id_string(); in ProcessGetUpdatesResponse()
86 SyncThreadSyncEntity::FromServerUpdate(update_entity->id_string(), in ProcessGetUpdatesResponse()
97 response_data.id = update_entity->id_string(); in ProcessGetUpdatesResponse()
Dnon_blocking_type_processor_core_unittest.cc431 EXPECT_FALSE(entity.id_string().empty()); in TEST_F()
451 EXPECT_NE(entity.id_string(), commit_response.id); in TEST_F()
481 EXPECT_FALSE(entity.id_string().empty()); in TEST_F()
497 EXPECT_EQ(entity.id_string(), commit_response.id); in TEST_F()
568 EXPECT_NE(tag1_entity.id_string(), tag2_entity.id_string()); in TEST_F()
Dsync_thread_sync_entity.h36 const std::string& id_string,
42 const std::string& id_string,
Dprocess_updates_util.cc52 SyncableIdFromProto(update.id_string())); in UpdateContainsNewVersion()
102 syncable::Id id = SyncableIdFromProto(entry.id_string()); in VerifyUpdate()
181 const syncable::Id& server_id = SyncableIdFromProto(update.id_string()); in ProcessUpdate()
Dcommit_util.cc236 << " new_id:" << SyncableIdFromProto(entry_response.id_string()) in UpdateVersionAfterCommit()
257 SyncableIdFromProto(entry_response.id_string()); in ChangeIdAfterCommit()
344 << " new_id:" << SyncableIdFromProto(entry_response.id_string()) in ProcessSuccessfulCommitResponse()
429 SyncableIdFromProto(server_entry.id_string()); in ProcessSingleCommitResponse()
Ddirectory_commit_contribution_unittest.cc81 if (entity.id_string()[0] == '-') // Look for the - in 'c-1234' style IDs. in CreateSuccessfulCommitResponse()
84 response->set_id_string(entity.id_string()); in CreateSuccessfulCommitResponse()
182 entity.id_string())); in TEST_F()
Dsyncer_util.cc86 const syncable::Id& update_id = SyncableIdFromProto(update.id_string()); in FindLocalIdToUpdate()
381 DCHECK_EQ(target->GetId(), SyncableIdFromProto(update.id_string())) in UpdateServerFieldsFromUpdate()
551 const syncable::Id& update_id = SyncableIdFromProto(update.id_string()); in VerifyUpdateConsistency()
/external/chromium_org/apps/
Dsaved_files_service_unittest.cc65 std::string id_string = GenerateId(id); in CheckEntrySequenceNumber() local
66 SCOPED_TRACE(id_string); in CheckEntrySequenceNumber()
67 EXPECT_TRUE(service_->IsRegistered(extension_->id(), id_string)); in CheckEntrySequenceNumber()
69 service_->GetFileEntry(extension_->id(), id_string); in CheckEntrySequenceNumber()
71 EXPECT_EQ(id_string, entry->id); in CheckEntrySequenceNumber()
/external/chromium_org/sync/syncable/
Dnigori_util.cc110 Id id_string = type_root.GetFirstChildId(); in VerifyDataTypeEncryptionForTest() local
111 to_visit.push(id_string); in VerifyDataTypeEncryptionForTest()
113 id_string = to_visit.front(); in VerifyDataTypeEncryptionForTest()
115 if (id_string.IsRoot()) in VerifyDataTypeEncryptionForTest()
118 Entry child(trans, GET_BY_ID, id_string); in VerifyDataTypeEncryptionForTest()
Dsyncable_proto_util.cc29 return SyncableIdFromProto(entity.id_string()).IsRoot(); in IsRoot()
/external/chromium_org/chrome/browser/extensions/api/gcd_private/
Dgcd_private_api.cc131 device->id_string = kIDPrefixCloudPrinter + i->id; in CheckListingDone()
133 device->id_string = kIDPrefixGcd + i->id; in CheckListingDone()
/external/chromium_org/components/bookmarks/browser/
Dbookmark_codec.cc275 std::string id_string; in DecodeNode() local
278 if (!value.GetString(kIdKey, &id_string) || in DecodeNode()
279 !base::StringToInt64(id_string, &id) || in DecodeNode()
319 UpdateChecksumWithUrlNode(id_string, title, url_string); in DecodeNode()
347 UpdateChecksumWithFolderNode(id_string, title); in DecodeNode()
/external/chromium_org/webkit/browser/fileapi/
Dsandbox_directory_database.cc861 std::string id_string; in GetLastFileId() local
863 db_->Get(leveldb::ReadOptions(), LastFileIdKey(), &id_string); in GetLastFileId()
865 if (!base::StringToInt64(id_string, file_id)) { in GetLastFileId()
889 std::string id_string = GetFileLookupKey(file_id); in AddFileInfoHelper() local
896 batch->Put(child_key, id_string); in AddFileInfoHelper()
902 id_string, in AddFileInfoHelper()
/external/chromium_org/chrome/browser/extensions/api/bookmarks/
Dbookmarks_api.cc185 bool BookmarksFunction::GetBookmarkIdAsInt64(const std::string& id_string, in GetBookmarkIdAsInt64() argument
187 if (base::StringToInt64(id_string, id)) in GetBookmarkIdAsInt64()
195 const std::string& id_string) { in GetBookmarkNodeFromId() argument
197 if (!GetBookmarkIdAsInt64(id_string, &id)) in GetBookmarkNodeFromId()
635 std::string id_string; in ExtractIds() local
636 if (!args->GetString(0, &id_string)) in ExtractIds()
639 if (base::StringToInt64(id_string, &id)) in ExtractIds()
Dbookmarks_api.h142 bool GetBookmarkIdAsInt64(const std::string& id_string, int64* id);
147 const BookmarkNode* GetBookmarkNodeFromId(const std::string& id_string);
/external/chromium_org/components/policy/core/common/
Dschema.cc437 std::string id_string; in Parse() local
438 if (schema.GetString(schema::kId, &id_string)) { in Parse()
485 std::string id_string; in Parse() local
486 if (schema.GetString(schema::kId, &id_string)) { in Parse()
487 if (ContainsKey(*id_map, id_string)) { in Parse()
488 *error = "Duplicated id: " + id_string; in Parse()
491 (*id_map)[id_string] = *index; in Parse()

12