diff options
| author | Ben Woosley <[email protected]> | 2018-05-21 10:53:18 -0700 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-05-21 10:53:18 -0700 |
| commit | 97c112d4ca42caf0668af2b8e71a46de72b23def (patch) | |
| tree | 360a24b7937a73719e884bcd2884ce4db5faff60 /src/test | |
| parent | Merge #13297: [wallet] Fix incorrect comment for DeriveNewSeed. (diff) | |
| download | discoin-97c112d4ca42caf0668af2b8e71a46de72b23def.tar.xz discoin-97c112d4ca42caf0668af2b8e71a46de72b23def.zip | |
Declare TorReply parsing functions in torcontrol_tests
Rather than including the implementation file into the test,
which is bad practice.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/torcontrol_tests.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/torcontrol_tests.cpp b/src/test/torcontrol_tests.cpp index 8bd5ce122..c7ceb2f1e 100644 --- a/src/test/torcontrol_tests.cpp +++ b/src/test/torcontrol_tests.cpp @@ -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) |