1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef LIBRADOS_MOCK_TEST_MEM_CLUSTER_H
5 #define LIBRADOS_MOCK_TEST_MEM_CLUSTER_H
7 #include "test/librados_test_stub/TestMemCluster.h"
8 #include "test/librados_test_stub/MockTestMemRadosClient.h"
9 #include "gmock/gmock.h"
15 class TestRadosClient;
17 class MockTestMemCluster : public TestCluster {
19 TestRadosClient *create_rados_client(CephContext *cct) override {
20 return new ::testing::NiceMock<librados::MockTestMemRadosClient>(
25 TestMemCluster m_mem_cluster;
29 } // namespace librados
31 #endif // LIBRADOS_MOCK_TEST_MEM_CLUSTER_H