| Index: sync/test/mock_transaction_observer.cc
|
| diff --git a/sync/test/mock_transaction_observer.cc b/sync/test/mock_transaction_observer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5365dc29a9aed42117de6d89013fda715ddb0452
|
| --- /dev/null
|
| +++ b/sync/test/mock_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/mock_transaction_observer.h"
|
| +
|
| +namespace syncer {
|
| +
|
| +namespace syncable {
|
| +
|
| +MockTransactionObserver::MockTransactionObserver()
|
| + : transactions_observed_(0) {
|
| +}
|
| +
|
| +MockTransactionObserver::~MockTransactionObserver() {
|
| +}
|
| +
|
| +int MockTransactionObserver::transactions_observed() {
|
| + return transactions_observed_;
|
| +}
|
| +
|
| +void MockTransactionObserver::OnTransactionWrite(
|
| + const ImmutableWriteTransactionInfo& write_transaction_info,
|
| + ModelTypeSet models_with_changes) {
|
| + transactions_observed_++;
|
| +}
|
| +
|
| +} // namespace syncable
|
| +
|
| +} // namespace syncer
|
|
|