This source file includes following definitions.
- HandleCalculateChangesChangeEventFromSyncApi
- HandleCalculateChangesChangeEventFromSyncer
- HandleTransactionEndingChangeEvent
- HandleTransactionCompleteChangeEvent
#include "sync/test/null_directory_change_delegate.h"
namespace syncer {
namespace syncable {
NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {}
void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi(
const ImmutableWriteTransactionInfo& write_transaction_info,
BaseTransaction* trans,
std::vector<int64>* entries_changed) {
for (EntryKernelMutationMap::const_iterator it =
write_transaction_info.Get().mutations.Get().begin();
it != write_transaction_info.Get().mutations.Get().end(); ++it) {
entries_changed->push_back(it->first);
}
}
void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer(
const ImmutableWriteTransactionInfo& write_transaction_info,
BaseTransaction* trans,
std::vector<int64>* entries_changed) {
for (EntryKernelMutationMap::const_iterator it =
write_transaction_info.Get().mutations.Get().begin();
it != write_transaction_info.Get().mutations.Get().end(); ++it) {
entries_changed->push_back(it->first);
}
}
ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent(
const ImmutableWriteTransactionInfo& write_transaction_info,
BaseTransaction* trans) {
return ModelTypeSet();
}
void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent(
ModelTypeSet models_with_changes) {}
}
}