summaryrefslogtreecommitdiffstats
path: root/sync/test/test_transaction_observer.cc
blob: 454d986f4c8ad57162aeb3febbcd7a03cdf5d490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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