summaryrefslogtreecommitdiffstats
path: root/src/test/rbd_mirror/mock/MockSafeTimer.h
blob: 32d58471d4a4b0aefbe4a94f84a78988e031b0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#ifndef CEPH_MOCK_SAFE_TIMER_H
#define CEPH_MOCK_SAFE_TIMER_H

#include <gmock/gmock.h>

struct Context;

struct MockSafeTimer {
  MOCK_METHOD2(add_event_after, Context*(double, Context*));
  MOCK_METHOD1(cancel_event, bool(Context *));
};

#endif // CEPH_MOCK_SAFE_TIMER_H