mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
13 lines
429 B
C++
13 lines
429 B
C++
#pragma once
|
|
#include "util/Random.hpp"
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
struct MockRandomGeneratorImpl : public util::RandomGeneratorInterface {
|
|
MOCK_METHOD(size_t, uniform, (size_t min, size_t max), (override));
|
|
MOCK_METHOD(void, setSeed, (SeedType seed), (override));
|
|
};
|
|
|
|
using MockRandomGenerator = testing::NiceMock<MockRandomGeneratorImpl>;
|
|
using StrictMockRandomGenerator = testing::StrictMock<MockRandomGeneratorImpl>;
|