1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "sync/test/null_directory_change_delegate.h" 6 7 namespace syncer { 8 namespace syncable { 9 10 NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {} 11 12 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi( 13 const ImmutableWriteTransactionInfo& write_transaction_info, 14 BaseTransaction* trans, 15 std::vector<int64>* entries_changed) { 16 for (EntryKernelMutationMap::const_iterator it = 17 write_transaction_info.Get().mutations.Get().begin(); 18 it != write_transaction_info.Get().mutations.Get().end(); ++it) { 19 entries_changed->push_back(it->first); 20 } 21 } 22 23 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer( 24 const ImmutableWriteTransactionInfo& write_transaction_info, 25 BaseTransaction* trans, 26 std::vector<int64>* entries_changed) { 27 for (EntryKernelMutationMap::const_iterator it = 28 write_transaction_info.Get().mutations.Get().begin(); 29 it != write_transaction_info.Get().mutations.Get().end(); ++it) { 30 entries_changed->push_back(it->first); 31 } 32 } 33 34 ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent( 35 const ImmutableWriteTransactionInfo& write_transaction_info, 36 BaseTransaction* trans) { 37 return ModelTypeSet(); 38 } 39 40 void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent( 41 ModelTypeSet models_with_changes) {} 42 43 } // namespace syncable 44 } // namespace syncer 45