Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: sync/test/null_directory_change_delegate.cc

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/test/null_directory_change_delegate.h ('k') | sync/test/test_directory_backing_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/null_directory_change_delegate.cc
diff --git a/sync/test/null_directory_change_delegate.cc b/sync/test/null_directory_change_delegate.cc
index e28fc6a0ea5c84419dab85e3cf7dad2cde6a005d..5e2a93d1f88e85571ec6a742801b53bf5f27f086 100644
--- a/sync/test/null_directory_change_delegate.cc
+++ b/sync/test/null_directory_change_delegate.cc
@@ -11,16 +11,29 @@ NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {}
void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi(
const ImmutableWriteTransactionInfo& write_transaction_info,
- BaseTransaction* trans) {}
+ 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) {}
+ 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) {
+ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent(
+ const ImmutableWriteTransactionInfo& write_transaction_info,
+ BaseTransaction* trans) {
return ModelTypeSet();
}
« no previous file with comments | « sync/test/null_directory_change_delegate.h ('k') | sync/test/test_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698