30 lines
1.0 KiB
C++
30 lines
1.0 KiB
C++
// GNU Lesser General Public License v3.0
|
|
// Copyright (c) 2023 Bart Beumer <bart@4beumer.nl>
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify it
|
|
// under the terms of the GNU Lesser General Public License v3.0 as published by
|
|
// the Free Software Foundation.
|
|
//
|
|
#pragma once
|
|
#include "bmrshared/IDataSource.hpp"
|
|
#include <cstdint>
|
|
#include <gmock/gmock.h>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
namespace bmrshared
|
|
{
|
|
class MockDataSource : public IDataSource
|
|
{
|
|
public:
|
|
~MockDataSource() override = default;
|
|
MOCK_METHOD(void, Get, (std::string_view, bool&), (const, override));
|
|
MOCK_METHOD(void, Get, (std::string_view, double&), (const, override));
|
|
MOCK_METHOD(void, Get, (std::string_view, int64_t&), (const, override));
|
|
MOCK_METHOD(void, Get, (std::string_view, uint64_t&), (const, override));
|
|
MOCK_METHOD(void, Get, (std::string_view, std::string&), (const, override));
|
|
MOCK_METHOD(std::vector<std::string>, GetKeys, (), (const, override));
|
|
};
|
|
} // namespace bmrshared
|