/external/chromium_org/chrome/browser/sync/glue/ |
D | data_type_manager_impl_unittest.cc | 25 using syncer::ModelTypeSet; 45 syncer::ModelTypeSet HighPriorityTypes() { in HighPriorityTypes() 46 syncer::ModelTypeSet result = syncer::PriorityCoreTypes(); in HighPriorityTypes() 51 syncer::ModelTypeSet AddHighPriorityTypesTo(syncer::ModelTypeSet types) { in AddHighPriorityTypesTo() 52 syncer::ModelTypeSet result = HighPriorityTypes(); in AddHighPriorityTypesTo() 58 syncer::ModelTypeSet AddLowPriorityCoreTypesTo(syncer::ModelTypeSet types) { in AddLowPriorityCoreTypesTo() 59 syncer::ModelTypeSet result = syncer::Difference(syncer::CoreTypes(), in AddLowPriorityCoreTypesTo() 75 const base::Callback<void(ModelTypeSet, in ConfigureDataTypes() argument 76 ModelTypeSet)>& ready_task, in ConfigureDataTypes() 91 base::Callback<void(ModelTypeSet, ModelTypeSet)> last_ready_task() const { in last_ready_task() [all …]
|
D | sync_backend_host_impl_unittest.cc | 83 void(syncer::ModelTypeSet, bool)); 85 MOCK_METHOD1(OnMigrationNeededForTypes, void(syncer::ModelTypeSet)); 110 void set_initial_sync_ended_types(syncer::ModelTypeSet types) { in set_initial_sync_ended_types() 114 void set_progress_marker_types(syncer::ModelTypeSet types) { in set_progress_marker_types() 118 void set_configure_fail_types(syncer::ModelTypeSet types) { in set_configure_fail_types() 123 syncer::ModelTypeSet initial_sync_ended_types_; 124 syncer::ModelTypeSet progress_marker_types_; 125 syncer::ModelTypeSet configure_fail_types_; 210 void ConfigureDataTypes(syncer::ModelTypeSet types_to_add, in ConfigureDataTypes() 211 syncer::ModelTypeSet types_to_remove) { in ConfigureDataTypes() [all …]
|
D | data_type_manager_impl.h | 36 typedef std::queue<syncer::ModelTypeSet> TypeSetPriorityList; 52 virtual void Configure(syncer::ModelTypeSet desired_types, 57 syncer::ModelTypeSet undesired_types, 85 virtual syncer::ModelTypeSet GetPriorityTypes() const; 89 TypeSetPriorityList PrioritizeTypes(const syncer::ModelTypeSet& types); 96 syncer::ModelTypeSet types_to_download, 97 syncer::ModelTypeSet high_priority_types_before, 98 syncer::ModelTypeSet first_sync_types, 99 syncer::ModelTypeSet failed_configuration_types); 111 void ConfigureImpl(syncer::ModelTypeSet desired_types, [all …]
|
D | sync_backend_registrar_unittest.cc | 33 using syncer::ModelTypeSet; 54 ExpectHasProcessorsForTypes(*registrar_, ModelTypeSet(AUTOFILL)); in TestNonUIDataTypeActivationAsync() 101 ModelTypeSet types) { in ExpectHasProcessorsForTypes() 122 registrar_->SetInitialTypes(ModelTypeSet()); in TEST_F() 130 ExpectHasProcessorsForTypes(*registrar_, ModelTypeSet()); in TEST_F() 134 const ModelTypeSet initial_types(BOOKMARKS, NIGORI, PASSWORDS); in TEST_F() 149 ExpectHasProcessorsForTypes(*registrar_, ModelTypeSet()); in TEST_F() 153 registrar_->SetInitialTypes(ModelTypeSet()); in TEST_F() 156 const ModelTypeSet types1(BOOKMARKS, NIGORI, AUTOFILL); in TEST_F() 158 registrar_->ConfigureDataTypes(types1, ModelTypeSet()).Equals(types1)); in TEST_F() [all …]
|
D | data_type_manager_impl.cc | 34 GenerateCryptoErrorsForTypes(syncer::ModelTypeSet encrypted_types) { in GenerateCryptoErrorsForTypes() 36 for (syncer::ModelTypeSet::Iterator iter = encrypted_types.First(); in GenerateCryptoErrorsForTypes() 78 void DataTypeManagerImpl::Configure(syncer::ModelTypeSet desired_types, in Configure() 85 syncer::ModelTypeSet undesired_types, in PurgeForMigration() 87 syncer::ModelTypeSet remainder = Difference(last_requested_types_, in PurgeForMigration() 93 syncer::ModelTypeSet desired_types, in ConfigureImpl() 134 const syncer::ModelTypeSet& types_being_configured) const { in BuildDataTypeConfigStateMap() 141 syncer::ModelTypeSet error_types = in BuildDataTypeConfigStateMap() 143 syncer::ModelTypeSet fatal_types = in BuildDataTypeConfigStateMap() 145 syncer::ModelTypeSet crypto_types = in BuildDataTypeConfigStateMap() [all …]
|
D | data_type_manager.h | 51 syncer::ModelTypeSet requested_types); 53 syncer::ModelTypeSet requested_types, 56 syncer::ModelTypeSet unfinished_data_types, 57 syncer::ModelTypeSet needs_crypto); 60 syncer::ModelTypeSet requested_types; 69 syncer::ModelTypeSet unfinished_data_types; 73 syncer::ModelTypeSet needs_crypto; 93 virtual void Configure(syncer::ModelTypeSet desired_types, 96 virtual void PurgeForMigration(syncer::ModelTypeSet undesired_types,
|
D | failed_data_types_handler.cc | 14 syncer::ModelTypeSet GetTypesFromErrorMap( in GetTypesFromErrorMap() 16 syncer::ModelTypeSet result; in GetTypesFromErrorMap() 69 syncer::ModelTypeSet purged_types) { in ResetPersistenceErrorsFrom() 70 for (syncer::ModelTypeSet::Iterator iter = purged_types.First(); iter.Good(); in ResetPersistenceErrorsFrom() 88 syncer::ModelTypeSet FailedDataTypesHandler::GetFailedTypes() const { in GetFailedTypes() 89 syncer::ModelTypeSet result = GetFatalErrorTypes(); in GetFailedTypes() 94 syncer::ModelTypeSet FailedDataTypesHandler::GetFatalErrorTypes() const { in GetFatalErrorTypes() 98 syncer::ModelTypeSet FailedDataTypesHandler::GetCryptoErrorTypes() const { in GetCryptoErrorTypes() 99 syncer::ModelTypeSet result = GetTypesFromErrorMap(crypto_errors_); in GetCryptoErrorTypes() 103 syncer::ModelTypeSet FailedDataTypesHandler::GetPersistenceErrorTypes() const { in GetPersistenceErrorTypes() [all …]
|
D | model_association_manager_unittest.cc | 81 syncer::ModelTypeSet types(syncer::BOOKMARKS, syncer::APPS); in TEST_F() 86 syncer::ModelTypeSet(), in TEST_F() 87 syncer::ModelTypeSet()); in TEST_F() 124 syncer::ModelTypeSet types; in TEST_F() 138 syncer::ModelTypeSet(syncer::BOOKMARKS), in TEST_F() 139 syncer::ModelTypeSet()); in TEST_F() 161 syncer::ModelTypeSet types; in TEST_F() 167 syncer::ModelTypeSet(), in TEST_F() 168 syncer::ModelTypeSet()); in TEST_F() 192 syncer::ModelTypeSet types; in TEST_F() [all …]
|
D | model_association_manager.h | 51 void Initialize(syncer::ModelTypeSet desired_types); 59 void StartAssociationAsync(const syncer::ModelTypeSet& types_to_associate); 110 syncer::ModelTypeSet desired_types_; 113 syncer::ModelTypeSet requested_types_; 117 syncer::ModelTypeSet associating_types_; 120 syncer::ModelTypeSet loaded_types_; 124 syncer::ModelTypeSet associated_types_; 128 syncer::ModelTypeSet slow_types_; 136 syncer::ModelTypeSet needs_crypto_types_;
|
D | sync_backend_host_impl.h | 104 const base::Callback<void(syncer::ModelTypeSet, 105 syncer::ModelTypeSet)>& ready_task, 138 syncer::ModelTypeSet to_download, 139 syncer::ModelTypeSet to_purge, 140 syncer::ModelTypeSet to_journal, 141 syncer::ModelTypeSet to_unapply, 142 syncer::ModelTypeSet to_ignore, 144 const base::Callback<void(syncer::ModelTypeSet, 145 syncer::ModelTypeSet)>& ready_task, 150 const syncer::ModelTypeSet enabled_types, [all …]
|
D | sync_backend_host_impl.cc | 293 const base::Callback<void(syncer::ModelTypeSet, in ConfigureDataTypes() argument 294 syncer::ModelTypeSet)>& ready_task, in ConfigureDataTypes() 317 syncer::ModelTypeSet previous_types = registrar_->GetLastConfiguredTypes(); in ConfigureDataTypes() 319 syncer::ModelTypeSet disabled_types = in ConfigureDataTypes() 321 syncer::ModelTypeSet fatal_types = in ConfigureDataTypes() 323 syncer::ModelTypeSet crypto_types = in ConfigureDataTypes() 327 syncer::ModelTypeSet active_types = in ConfigureDataTypes() 329 syncer::ModelTypeSet clean_first_types = in ConfigureDataTypes() 331 syncer::ModelTypeSet types_to_download = registrar_->ConfigureDataTypes( in ConfigureDataTypes() 364 syncer::ModelTypeSet current_types = registrar_->GetLastConfiguredTypes(); in ConfigureDataTypes() [all …]
|
/external/chromium_org/sync/internal_api/public/test/ |
D | fake_sync_manager.h | 38 FakeSyncManager(ModelTypeSet initial_sync_ended_types, 39 ModelTypeSet progress_marker_types, 40 ModelTypeSet configure_fail_types); 46 ModelTypeSet GetAndResetCleanedTypes(); 50 ModelTypeSet GetAndResetDownloadedTypes(); 55 ModelTypeSet GetAndResetEnabledTypes(); 58 ModelTypeSet GetLastRefreshRequestTypes(); 97 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 98 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 99 ModelTypeSet types) OVERRIDE; [all …]
|
/external/chromium_org/sync/internal_api/test/ |
D | fake_sync_manager.cc | 28 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, in FakeSyncManager() 29 ModelTypeSet progress_marker_types, in FakeSyncManager() 30 ModelTypeSet configure_fail_types) : in FakeSyncManager() 40 ModelTypeSet FakeSyncManager::GetAndResetCleanedTypes() { in GetAndResetCleanedTypes() 41 ModelTypeSet cleaned_types = cleaned_types_; in GetAndResetCleanedTypes() 46 ModelTypeSet FakeSyncManager::GetAndResetDownloadedTypes() { in GetAndResetDownloadedTypes() 47 ModelTypeSet downloaded_types = downloaded_types_; in GetAndResetDownloadedTypes() 52 ModelTypeSet FakeSyncManager::GetAndResetEnabledTypes() { in GetAndResetEnabledTypes() 53 ModelTypeSet enabled_types = enabled_types_; in GetAndResetEnabledTypes() 100 for (ModelTypeSet::Iterator it = initial_sync_ended_types_.First(); in Init() [all …]
|
/external/chromium_org/sync/sessions/ |
D | test_util.h | 20 ModelTypeSet requested_types, 24 ModelTypeSet requested_types, 28 ModelTypeSet requested_types, 32 ModelTypeSet requested_types, 37 void SimulateNormalSuccess(ModelTypeSet requested_types, 40 void SimulateDownloadUpdatesFailed(ModelTypeSet requested_types, 43 void SimulateCommitFailed(ModelTypeSet requested_types, 46 void SimulateConnectionFailure(ModelTypeSet requested_types, 51 void SimulatePollSuccess(ModelTypeSet requested_types, 53 void SimulatePollFailed(ModelTypeSet requested_types, [all …]
|
D | test_util.cc | 12 ModelTypeSet requsted_types, in SimulateGetEncryptionKeyFailed() 22 ModelTypeSet requsted_types, in SimulateConfigureSuccess() 32 ModelTypeSet requsted_types, in SimulateConfigureFailed() 41 ModelTypeSet requsted_types, in SimulateConfigureConnectionFailure() 49 void SimulateNormalSuccess(ModelTypeSet requested_types, in SimulateNormalSuccess() 59 ModelTypeSet requested_types, in SimulateDownloadUpdatesFailed() 66 void SimulateCommitFailed(ModelTypeSet requested_types, in SimulateCommitFailed() 77 ModelTypeSet requested_types, in SimulateConnectionFailure() 84 void SimulatePollSuccess(ModelTypeSet requested_types, in SimulatePollSuccess() 91 void SimulatePollFailed(ModelTypeSet requested_types, in SimulatePollFailed() [all …]
|
D | nudge_tracker_unittest.cc | 15 testing::AssertionResult ModelTypeSetEquals(ModelTypeSet a, ModelTypeSet b) { in ModelTypeSetEquals() 88 nudge_tracker_.RecordLocalChange(ModelTypeSet(BOOKMARKS)); in TEST_F() 93 nudge_tracker_.RecordLocalRefreshRequest(ModelTypeSet(TYPED_URLS)); in TEST_F() 98 nudge_tracker_.RecordLocalChange(ModelTypeSet(BOOKMARKS)); in TEST_F() 110 nudge_tracker_.RecordLocalChange(ModelTypeSet(BOOKMARKS)); in TEST_F() 113 nudge_tracker_.RecordLocalRefreshRequest(ModelTypeSet(TYPED_URLS)); in TEST_F() 252 nudge_tracker_.RecordLocalChange(ModelTypeSet(PREFERENCES)); in TEST_F() 267 nudge_tracker_.RecordLocalRefreshRequest(ModelTypeSet(SESSIONS)); in TEST_F() 280 nudge_tracker_.RecordLocalChange(ModelTypeSet(SESSIONS)); in TEST_F() 286 nudge_tracker_.RecordLocalRefreshRequest(ModelTypeSet(SESSIONS)); in TEST_F() [all …]
|
/external/chromium_org/sync/internal_api/public/base/ |
D | model_type.h | 144 ModelTypeSet; typedef 174 SYNC_EXPORT ModelTypeSet ProtocolTypes(); 179 SYNC_EXPORT ModelTypeSet UserTypes(); 182 SYNC_EXPORT ModelTypeSet UserSelectableTypes(); 186 SYNC_EXPORT_PRIVATE ModelTypeSet EncryptableUserTypes(); 190 SYNC_EXPORT ModelTypeSet PriorityUserTypes(); 195 SYNC_EXPORT ModelTypeSet ProxyTypes(); 207 SYNC_EXPORT ModelTypeSet ControlTypes(); 218 SYNC_EXPORT ModelTypeSet CoreTypes(); 220 SYNC_EXPORT ModelTypeSet PriorityCoreTypes(); [all …]
|
D | model_type_test_util.cc | 22 void PrintTo(ModelTypeSet model_types, ::std::ostream* os) { in PrintTo() 30 : public ::testing::MatcherInterface<ModelTypeSet> { 32 explicit HasModelTypesMatcher(ModelTypeSet expected_types) in HasModelTypesMatcher() 38 ModelTypeSet model_types, in MatchAndExplain() 54 const ModelTypeSet expected_types_; 61 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types) { in HasModelTypes()
|
/external/chromium_org/chrome/browser/sync/ |
D | backend_migrator_unittest.cc | 50 SetUnsyncedTypes(syncer::ModelTypeSet()); in SetUp() 60 void SetUnsyncedTypes(syncer::ModelTypeSet unsynced_types) { in SetUnsyncedTypes() 75 syncer::ModelTypeSet requested_types) { in SendConfigureDone() 85 syncer::ModelTypeSet(), in SendConfigureDone() 86 syncer::ModelTypeSet()); in SendConfigureDone() 94 syncer::ModelTypeSet preferred_types() { return preferred_types_; } in preferred_types() 106 syncer::ModelTypeSet preferred_types_; 128 syncer::ModelTypeSet to_migrate, difference; in TEST_F() 149 SetUnsyncedTypes(syncer::ModelTypeSet()); in TEST_F() 159 syncer::ModelTypeSet to_migrate, difference; in TEST_F() [all …]
|
D | sync_prefs.h | 89 syncer::ModelTypeSet GetPreferredDataTypes( in NON_EXPORTED_BASE() 90 syncer::ModelTypeSet registered_types) const; in NON_EXPORTED_BASE() 98 syncer::ModelTypeSet registered_types, in NON_EXPORTED_BASE() 99 syncer::ModelTypeSet preferred_types); in NON_EXPORTED_BASE() 128 void AcknowledgeSyncedTypes(syncer::ModelTypeSet types); in NON_EXPORTED_BASE() 133 syncer::ModelTypeSet GetAcknowledgeSyncedTypesForTest() const; in NON_EXPORTED_BASE() 147 syncer::ModelTypeSet ResolvePrefGroups( in NON_EXPORTED_BASE() 148 syncer::ModelTypeSet registered_types, in NON_EXPORTED_BASE() 149 syncer::ModelTypeSet types) const; in NON_EXPORTED_BASE() 169 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; in NON_EXPORTED_BASE()
|
/external/chromium_org/sync/engine/ |
D | download.h | 35 ModelTypeSet request_types, 41 ModelTypeSet proto_request_types, 53 ModelTypeSet request_types, 58 ModelTypeSet proto_request_types, 69 ModelTypeSet request_types, 74 ModelTypeSet proto_request_types, 81 ExecuteDownloadUpdates(ModelTypeSet request_types, 89 ModelTypeSet proto_request_types,
|
/external/chromium/chrome/browser/sync/notifier/ |
D | registration_manager_unittest.cc | 93 const syncable::ModelTypeSet GetRegisteredTypes() const { in GetRegisteredTypes() 98 syncable::ModelTypeSet registered_types_; 113 const syncable::ModelTypeSet& expected_pending_types, in ExpectPendingRegistrations() 116 syncable::ModelTypeSet pending_types; in ExpectPendingRegistrations() 149 void LoseRegistrations(const syncable::ModelTypeSet& types) { in LoseRegistrations() 150 for (syncable::ModelTypeSet::const_iterator it = types.begin(); in LoseRegistrations() 160 syncable::ModelTypeSet types(kModelTypes, kModelTypes + kModelTypeCount); in RunBackoffTest() 164 syncable::ModelTypeSet lost_types(kModelTypes, kModelTypes + 2); in RunBackoffTest() 220 syncable::ModelTypeSet no_types; in TEST_F() 221 syncable::ModelTypeSet types(kModelTypes, kModelTypes + kModelTypeCount); in TEST_F() [all …]
|
/external/chromium/chrome/browser/sync/ |
D | backend_migrator_unittest.cc | 43 ReturnNonEmptyProgressMarkersInSnapshot(syncable::ModelTypeSet()); in ReturnEmptyProgressMarkersInSnapshot() 47 const syncable::ModelTypeSet& for_types) { in ReturnNonEmptyProgressMarkersInSnapshot() 49 for (syncable::ModelTypeSet::const_iterator it = for_types.begin(); in ReturnNonEmptyProgressMarkersInSnapshot() 62 const syncable::ModelTypeSet& types) { in SendConfigureDone() 74 const syncable::ModelTypeSet& preferred_types() { return preferred_types_; } in preferred_types() 83 syncable::ModelTypeSet preferred_types_; 92 syncable::ModelTypeSet to_migrate, difference; in TEST_F() 120 syncable::ModelTypeSet to_migrate; in TEST_F() 133 SendConfigureDone(DataTypeManager::OK, syncable::ModelTypeSet()); in TEST_F() 142 syncable::ModelTypeSet to_migrate1, to_migrate2, bookmarks; in TEST_F() [all …]
|
/external/chromium_org/sync/syncable/ |
D | model_type.cc | 122 ModelTypeSet protocol_types = ProtocolTypes(); in GetModelTypeFromSpecificsFieldNumber() 123 for (ModelTypeSet::Iterator iter = protocol_types.First(); iter.Good(); in GetModelTypeFromSpecificsFieldNumber() 220 FullModelTypeSet ToFullModelTypeSet(ModelTypeSet in) { in ToFullModelTypeSet() 222 for (ModelTypeSet::Iterator i = in.First(); i.Good(); i.Inc()) { in ToFullModelTypeSet() 339 ModelTypeSet ProtocolTypes() { in ProtocolTypes() 340 ModelTypeSet set = ModelTypeSet::All(); in ProtocolTypes() 345 ModelTypeSet UserTypes() { in UserTypes() 346 ModelTypeSet set; in UserTypes() 356 ModelTypeSet UserSelectableTypes() { in UserSelectableTypes() 357 ModelTypeSet set; in UserSelectableTypes() [all …]
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | migration_errors_test.cc | 30 syncer::ModelTypeSet MakeSet(syncer::ModelType type) { in MakeSet() 31 return syncer::ModelTypeSet(type); in MakeSet() 34 syncer::ModelTypeSet MakeSet(syncer::ModelType type1, in MakeSet() 36 return syncer::ModelTypeSet(type1, type2); in MakeSet() 41 typedef std::deque<syncer::ModelTypeSet> MigrationList; 46 MigrationList MakeList(syncer::ModelTypeSet model_types) { in MakeList() 50 MigrationList MakeList(syncer::ModelTypeSet model_types1, in MakeList() 51 syncer::ModelTypeSet model_types2) { in MakeList() 76 syncer::ModelTypeSet GetPreferredDataTypes() { in GetPreferredDataTypes() 80 syncer::ModelTypeSet preferred_data_types = in GetPreferredDataTypes() [all …]
|