/external/chromium/chrome/browser/sync/ |
D | profile_sync_service_session_unittest.cc | 113 model_associator_ = in StartSyncService() 117 sync_service_.get(), model_associator_, in StartSyncService() 121 model_associator_, change_processor_))); in StartSyncService() 138 SessionModelAssociator* model_associator_; member in browser_sync::ProfileSyncServiceSessionTest 174 ASSERT_EQ(model_associator_->GetSessionService(), helper_.service()); in TEST_F() 178 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F() 180 std::string machine_tag = model_associator_->GetCurrentMachineTag(); in TEST_F() 181 int64 sync_id = model_associator_->GetSyncIdFromSessionTag(machine_tag); in TEST_F() 205 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F() 212 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F() [all …]
|
D | profile_sync_service_preference_unittest.cc | 81 model_associator_ = in StartSyncService() 83 change_processor_ = new PreferenceChangeProcessor(model_associator_, in StartSyncService() 87 model_associator_, change_processor_))); in StartSyncService() 114 int64 node_id = model_associator_->GetSyncIdFromChromeId(name); in GetSyncedValue() 144 int64 node_id = model_associator_->GetSyncIdFromChromeId(name); in SetSyncedValue() 158 int64 node_id = model_associator_->GetSyncIdFromChromeId(name); in MakeChangeRecord() 166 return model_associator_->synced_preferences().count(pref_name) > 0; in IsSynced() 181 PreferenceModelAssociator* model_associator_; member in ProfileSyncServicePreferenceTest 369 int64 node_id = model_associator_->GetSyncIdFromChromeId(prefs::kHomePage); in TEST_F() 401 model_associator_->GetSyncIdFromChromeId(prefs::kHomePage)); in TEST_F() [all …]
|
D | profile_sync_service_bookmark_unittest.cc | 317 model_associator_.reset(new TestBookmarkModelAssociator( in StartSync() 321 EXPECT_TRUE(model_associator_->AssociateModels()); in StartSync() 326 new BookmarkChangeProcessor(model_associator_.get(), in StartSync() 335 EXPECT_TRUE(model_associator_->DisassociateModels()); in StopSync() 336 model_associator_.reset(); in StopSync() 353 return model_associator_->InitSyncNodeFromChromeId(bnode->id(), in InitSyncNodeFromChromeNode() 366 model_associator_->GetChromeNodeFromSyncId(gnode.GetParentId()), in ExpectSyncerNodeMatching() 409 model_associator_->GetChromeNodeFromSyncId(sync_id); in ExpectBrowserNodeMatching() 411 int64 id = model_associator_->GetSyncIdFromChromeId(bnode->id()); in ExpectBrowserNodeMatching() 417 EXPECT_FALSE(model_associator_->GetChromeNodeFromSyncId(sync_id)); in ExpectBrowserNodeUnknown() [all …]
|
/external/chromium/chrome/browser/sync/glue/ |
D | autofill_data_type_controller_unittest.cc | 115 model_associator_ = new ModelAssociatorMock(); in SetAssociateExpectations() 120 ProfileSyncFactory::SyncComponents(model_associator_, in SetAssociateExpectations() 122 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 124 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 126 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 134 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 156 ModelAssociatorMock* model_associator_; member in __anon3fdcad7f0111::AutofillDataTypeControllerTest 210 model_associator_ = new ModelAssociatorMock(); in TEST_F() 215 ProfileSyncFactory::SyncComponents(model_associator_, in TEST_F() 226 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F() [all …]
|
D | frontend_data_type_controller_unittest.cc | 57 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents() 102 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations() 105 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations() 110 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 112 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 114 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 127 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 143 ModelAssociatorMock* model_associator_; member in FrontendDataTypeControllerTest 159 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F() 161 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() [all …]
|
D | preference_data_type_controller_unittest.cc | 51 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations() 54 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations() 59 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 61 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 63 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 73 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 82 ModelAssociatorMock* model_associator_; member in PreferenceDataTypeControllerTest 101 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 111 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 121 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F() [all …]
|
D | theme_data_type_controller_unittest.cc | 49 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations() 52 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations() 57 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 59 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 61 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 71 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 80 ModelAssociatorMock* model_associator_; member in ThemeDataTypeControllerTest 99 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 109 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 119 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F() [all …]
|
D | extension_data_type_controller_unittest.cc | 49 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations() 53 ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations() 58 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 60 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 62 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 72 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 81 ModelAssociatorMock* model_associator_; member in ExtensionDataTypeControllerTest 100 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 110 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 120 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F() [all …]
|
D | bookmark_data_type_controller_unittest.cc | 53 model_associator_ = new ModelAssociatorMock(); in SetUp() 56 new ProfileSyncFactoryMock(model_associator_, in SetUp() 72 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations() 75 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations() 77 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations() 84 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations() 94 ModelAssociatorMock* model_associator_; member in BookmarkDataTypeControllerTest 130 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 148 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F() 159 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F() [all …]
|
D | password_data_type_controller.cc | 81 if (model_associator_.get()) in Stop() 82 model_associator_->AbortAssociation(); in Stop() 142 model_associator_.reset(sync_components.model_associator); in StartImpl() 146 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl() 152 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl() 158 bool merge_success = model_associator_->AssociateModels(); in StartImpl() 195 if (model_associator_ != NULL) in StopImpl() 196 model_associator_->DisassociateModels(); in StopImpl() 199 model_associator_.reset(); in StopImpl() 206 model_associator_.reset(); in StartFailed()
|
D | preference_change_processor.cc | 30 model_associator_(model_associator), in PreferenceChangeProcessor() 58 int64 sync_id = model_associator_->GetSyncIdFromChromeId(*name); in Observe() 62 model_associator_->Disassociate(sync_id); in Observe() 83 if (!model_associator_->InitPrefNodeAndAssociate(&trans, in Observe() 149 if (model_associator_->synced_preferences().count(pref_name) == 0) in ApplyChangesFromSyncModel() 170 model_associator_->Associate(preference, changes[i].id); in ApplyChangesFromSyncModel() 173 model_associator_->AfterUpdateOperations(name); in ApplyChangesFromSyncModel() 213 model_associator_->synced_preferences().begin(); in StartObserving() 214 it != model_associator_->synced_preferences().end(); ++it) { in StartObserving() 222 model_associator_->synced_preferences().begin(); in StopObserving() [all …]
|
D | typed_url_data_type_controller.cc | 123 if (model_associator_.get()) in Stop() 124 model_associator_->AbortAssociation(); in Stop() 184 model_associator_.reset(sync_components.model_associator); in StartImpl() 188 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl() 194 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl() 200 bool merge_success = model_associator_->AssociateModels(); in StartImpl() 248 if (model_associator_ != NULL) in StopImpl() 249 model_associator_->DisassociateModels(); in StopImpl() 252 model_associator_.reset(); in StopImpl() 259 model_associator_.reset(); in StartFailed()
|
D | bookmark_change_processor.cc | 28 model_associator_(model_associator) { in BookmarkChangeProcessor() 47 model_associator_ = NULL; in StopImpl() 82 if (!model_associator_->InitSyncNodeFromChromeId(node->id(), &sync_node)) { in RemoveOneSyncNode() 89 model_associator_->Disassociate(sync_node.GetId()); in RemoveOneSyncNode() 150 CreateSyncNode(parent, model, index, &trans, model_associator_, in BookmarkNodeAdded() 204 if (!model_associator_->InitSyncNodeFromChromeId(node->id(), &sync_node)) { in BookmarkNodeChanged() 212 DCHECK_EQ(model_associator_->GetChromeNodeFromSyncId( in BookmarkNodeChanged() 238 if (!model_associator_->InitSyncNodeFromChromeId(child->id(), &sync_node)) { in BookmarkNodeMoved() 244 model_associator_)) { in BookmarkNodeMoved() 266 if (!model_associator_->InitSyncNodeFromChromeId(node->GetChild(i)->id(), in BookmarkNodeChildrenReordered() [all …]
|
D | frontend_data_type_controller.cc | 81 if (!model_associator_->CryptoReadyIfNecessary()) { in Associate() 87 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in Associate() 93 bool merge_success = model_associator_->AssociateModels(); in Associate() 119 if (model_associator_ != NULL) in Stop() 120 model_associator_->DisassociateModels(); in Stop() 123 model_associator_.reset(); in Stop() 164 model_associator_.reset(); in StartFailed()
|
D | autofill_data_type_controller.cc | 125 if (model_associator_.get()) in Stop() 126 model_associator_->AbortAssociation(); in Stop() 217 model_associator_.reset(sync_components.model_associator); in StartImpl() 221 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl() 227 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl() 233 bool merge_success = model_associator_->AssociateModels(); in StartImpl() 288 if (model_associator_ != NULL) in StopImpl() 289 model_associator_->DisassociateModels(); in StopImpl() 292 model_associator_.reset(); in StopImpl() 300 model_associator_.reset(); in StartFailed()
|
D | password_change_processor.cc | 29 model_associator_(model_associator), in PasswordChangeProcessor() 83 model_associator_->Associate(&tag, sync_node.GetId()); in Observe() 88 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe() 106 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe() 117 model_associator_->Disassociate(sync_node.GetId()); in Observe() 156 model_associator_->Disassociate(changes[i].id); in ApplyChangesFromSyncModel() 178 model_associator_->Associate(&tag, sync_node.GetId()); in ApplyChangesFromSyncModel() 194 if (!model_associator_->WriteToPasswordStore(&new_passwords_, in CommitChangesFromSyncModel()
|
D | autofill_change_processor.cc | 43 model_associator_(model_associator), in AutofillChangeProcessor() 124 model_associator_->Associate(&tag, sync_node.GetId()); in ObserveAutofillEntriesChanged() 133 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in ObserveAutofillEntriesChanged() 174 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in RemoveSyncNode() 187 model_associator_->Disassociate(sync_node.GetId()); in RemoveSyncNode() 333 model_associator_->Associate(&tag, sync_id); in ApplySyncAutofillEntryChange() 357 model_associator_->Associate(&guid, sync_id); in ApplySyncAutofillProfileChange() 361 const std::string* guid = model_associator_->GetChromeNodeFromSyncId( in ApplySyncAutofillProfileChange() 394 const std::string *guid = model_associator_->GetChromeNodeFromSyncId(sync_id); in ApplySyncAutofillProfileDelete() 405 model_associator_->Disassociate(sync_id); in ApplySyncAutofillProfileDelete() [all …]
|
D | autofill_profile_change_processor.cc | 34 model_associator_(model_associator), in AutofillProfileChangeProcessor() 137 int64 sync_id = model_associator_->GetSyncIdFromChromeId(change->key()); in ActOnChange() 152 int64 sync_id = model_associator_->GetSyncIdFromChromeId(change->key()); in ActOnChange() 163 model_associator_->Disassociate(sync_id); in ActOnChange() 231 model_associator_->Associate(&guid, sync_id); in ApplyAutofillProfileChange() 265 int64 sync_id = model_associator_->GetSyncIdFromChromeId(guid); in RemoveSyncNode() 276 model_associator_->Disassociate(sync_id); in RemoveSyncNode() 304 model_associator_->Associate(&guid, node.GetId()); in AddAutofillProfileSyncNode()
|
D | typed_url_change_processor.cc | 25 model_associator_(model_associator), in TypedUrlChangeProcessor() 109 model_associator_->WriteToSyncNode(*url, visits, &update_node); in HandleURLsModified() 120 model_associator_->WriteToSyncNode(*url, visits, &create_node); in HandleURLsModified() 122 model_associator_->Associate(&tag, create_node.GetId()); in HandleURLsModified() 132 if (!model_associator_->DeleteAllNodes(&trans)) { in HandleURLsDeleted() 141 model_associator_->GetSyncIdFromChromeId(url->spec()); in HandleURLsDeleted() 148 model_associator_->Disassociate(sync_node.GetId()); in HandleURLsDeleted() 305 if (!model_associator_->WriteToHistoryBackend(&titles, &new_urls, in ApplyChangesFromSyncModel()
|
D | session_data_type_controller.cc | 24 return reinterpret_cast<SessionModelAssociator*>(model_associator_.get()); in GetModelAssociator() 34 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
|
D | preference_data_type_controller.cc | 30 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
|
D | theme_data_type_controller.cc | 38 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
|
D | extension_data_type_controller.cc | 38 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
|
D | app_data_type_controller.cc | 38 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
|
D | preference_change_processor.h | 59 PreferenceModelAssociator* model_associator_; variable
|