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

Unified Diff: sync/test/test_transaction_observer.cc

Issue 11360259: Sync: Add DeviceInfo's ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_client.cc 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/test_transaction_observer.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/test_transaction_observer.cc
diff --git a/sync/test/test_transaction_observer.cc b/sync/test/test_transaction_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..454d986f4c8ad57162aeb3febbcd7a03cdf5d490
--- /dev/null
+++ b/sync/test/test_transaction_observer.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/test/test_transaction_observer.h"
+
+namespace syncer {
+
+namespace syncable {
+
+TestTransactionObserver::TestTransactionObserver()
+ : transactions_observed_(0) {
+}
+
+TestTransactionObserver::~TestTransactionObserver() {
+}
+
+int TestTransactionObserver::transactions_observed() {
+ return transactions_observed_;
+}
+
+void TestTransactionObserver::OnTransactionWrite(
+ const ImmutableWriteTransactionInfo& write_transaction_info,
+ ModelTypeSet models_with_changes) {
+ transactions_observed_++;
+}
+
+} // namespace syncable
+
+} // namespace syncer
« no previous file with comments | « sync/test/test_transaction_observer.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698