mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -24,10 +24,10 @@
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
struct MockHandlerProvider : public RPC::HandlerProvider
|
||||
struct MockHandlerProvider : public rpc::HandlerProvider
|
||||
{
|
||||
public:
|
||||
MOCK_METHOD(bool, contains, (std::string const&), (const, override));
|
||||
MOCK_METHOD(std::optional<RPC::AnyHandler>, getHandler, (std::string const&), (const, override));
|
||||
MOCK_METHOD(std::optional<rpc::AnyHandler>, getHandler, (std::string const&), (const, override));
|
||||
MOCK_METHOD(bool, isClioOnly, (std::string const&), (const, override));
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@ struct MockAsyncRPCEngine
|
||||
MOCK_METHOD(void, notifyTooBusy, (), ());
|
||||
MOCK_METHOD(void, notifyUnknownCommand, (), ());
|
||||
MOCK_METHOD(void, notifyInternalError, (), ());
|
||||
MOCK_METHOD(RPC::Result, buildResponse, (web::Context const&), ());
|
||||
MOCK_METHOD(rpc::Result, buildResponse, (web::Context const&), ());
|
||||
};
|
||||
|
||||
struct MockRPCEngine
|
||||
@@ -69,5 +69,5 @@ struct MockRPCEngine
|
||||
MOCK_METHOD(void, notifyTooBusy, (), ());
|
||||
MOCK_METHOD(void, notifyUnknownCommand, (), ());
|
||||
MOCK_METHOD(void, notifyInternalError, (), ());
|
||||
MOCK_METHOD(RPC::Result, buildResponse, (web::Context const&), ());
|
||||
MOCK_METHOD(rpc::Result, buildResponse, (web::Context const&), ());
|
||||
};
|
||||
|
||||
@@ -43,7 +43,7 @@ binaryStringToUint256(std::string const& bin)
|
||||
std::string
|
||||
ledgerInfoToBinaryString(ripple::LedgerInfo const& info)
|
||||
{
|
||||
auto const blob = RPC::ledgerInfoToBlob(info, true);
|
||||
auto const blob = rpc::ledgerInfoToBlob(info, true);
|
||||
std::string strBlob;
|
||||
for (auto c : blob)
|
||||
strBlob += c;
|
||||
|
||||
Reference in New Issue
Block a user