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

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

Powered by Google App Engine
This is Rietveld 408576698