#ifndef SYNC_TEST_TEST_TRANSACTION_OBSERVER_H_
#define SYNC_TEST_TEST_TRANSACTION_OBSERVER_H_
#include "base/memory/weak_ptr.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/syncable/transaction_observer.h"
#include "sync/syncable/write_transaction_info.h"
namespace syncer {
namespace syncable {
class TestTransactionObserver :
public base::SupportsWeakPtr<TestTransactionObserver>,
public TransactionObserver {
public:
TestTransactionObserver();
virtual ~TestTransactionObserver();
virtual void OnTransactionWrite(
const ImmutableWriteTransactionInfo& write_transaction_info,
ModelTypeSet models_with_changes) OVERRIDE;
int transactions_observed();
private:
DISALLOW_COPY_AND_ASSIGN(TestTransactionObserver);
int transactions_observed_;
};
}
}
#endif