mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-21 17:42:37 +02:00
test: Remove boost::split from rpc_tests.cpp
This commit is contained in:
parent
91a6736136
commit
fad35e9afd
@ -2,25 +2,21 @@
|
|||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#include <rpc/client.h>
|
|
||||||
#include <rpc/server.h>
|
|
||||||
#include <rpc/util.h>
|
|
||||||
|
|
||||||
#include <core_io.h>
|
#include <core_io.h>
|
||||||
#include <interfaces/chain.h>
|
#include <interfaces/chain.h>
|
||||||
#include <node/context.h>
|
#include <node/context.h>
|
||||||
|
#include <rpc/blockchain.h>
|
||||||
|
#include <rpc/client.h>
|
||||||
|
#include <rpc/server.h>
|
||||||
|
#include <rpc/util.h>
|
||||||
#include <test/util/setup_common.h>
|
#include <test/util/setup_common.h>
|
||||||
|
#include <univalue.h>
|
||||||
#include <util/time.h>
|
#include <util/time.h>
|
||||||
|
|
||||||
#include <any>
|
#include <any>
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
#include <univalue.h>
|
|
||||||
|
|
||||||
#include <rpc/blockchain.h>
|
|
||||||
|
|
||||||
class RPCTestingSetup : public TestingSetup
|
class RPCTestingSetup : public TestingSetup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -29,8 +25,7 @@ public:
|
|||||||
|
|
||||||
UniValue RPCTestingSetup::CallRPC(std::string args)
|
UniValue RPCTestingSetup::CallRPC(std::string args)
|
||||||
{
|
{
|
||||||
std::vector<std::string> vArgs;
|
std::vector<std::string> vArgs{SplitString(args, ' ')};
|
||||||
boost::split(vArgs, args, boost::is_any_of(" \t"));
|
|
||||||
std::string strMethod = vArgs[0];
|
std::string strMethod = vArgs[0];
|
||||||
vArgs.erase(vArgs.begin());
|
vArgs.erase(vArgs.begin());
|
||||||
JSONRPCRequest request;
|
JSONRPCRequest request;
|
||||||
|
Loading…
Reference in New Issue
Block a user