summaryrefslogtreecommitdiffstats
path: root/src/test/librbd/mock/MockJournalPolicy.h
blob: 33bb252ac98971b8d37b151a2a2ed685add3ff8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#ifndef CEPH_TEST_LIBRBD_MOCK_JOURNAL_POLICY_H
#define CEPH_TEST_LIBRBD_MOCK_JOURNAL_POLICY_H

#include "librbd/journal/Policy.h"
#include "gmock/gmock.h"

namespace librbd {

struct MockJournalPolicy : public journal::Policy {

  MOCK_CONST_METHOD0(append_disabled, bool());
  MOCK_CONST_METHOD0(journal_disabled, bool());
  MOCK_METHOD1(allocate_tag_on_lock, void(Context*));

};

} // namespace librbd

#endif // CEPH_TEST_LIBRBD_MOCK_JOURNAL_POLICY_H