mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Declare TorReply parsing functions in torcontrol_tests
Rather than including the implementation file into the test, which is bad practice.
This commit is contained in:
@@ -3,10 +3,18 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
//
|
||||
#include <test/test_bitcoin.h>
|
||||
#include <torcontrol.cpp>
|
||||
#include <torcontrol.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
|
||||
std::pair<std::string, std::string> SplitTorReplyLine(const std::string& s);
|
||||
std::map<std::string, std::string> ParseTorReplyMapping(const std::string& s);
|
||||
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(torcontrol_tests, BasicTestingSetup)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user