Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/test/seeder_tests.cpp
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 2019 The Bitcoin developers | ||||
// 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 <seeder/dns.h> | #define BOOST_TEST_MODULE Bitcoin Seeder Test Suite | ||||
#include <test/test_bitcoin.h> | #include <seeder/dns.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <array> | #include <array> | ||||
#include <iomanip> | #include <iomanip> | ||||
#include <iostream> | #include <iostream> | ||||
#include <sstream> | #include <sstream> | ||||
#include <string> | #include <string> | ||||
BOOST_FIXTURE_TEST_SUITE(seeder_tests, BasicTestingSetup) | BOOST_AUTO_TEST_SUITE(seeder) | ||||
jasonbcox: Seeing that the fixture isn't necessary, you can remove this in it's own diff. | |||||
const int BUFFER_LENGTH = 512; | const int BUFFER_LENGTH = 512; | ||||
const int QNAME_BUFFER_LENGTH = 256; | const int QNAME_BUFFER_LENGTH = 256; | ||||
const int SIZE_OF_DNS_MESSAGE_HEADER = 12; | const int SIZE_OF_DNS_MESSAGE_HEADER = 12; | ||||
const int SIZE_OF_QTYPE = 2; | const int SIZE_OF_QTYPE = 2; | ||||
const int SIZE_OF_QCLASS = 2; | const int SIZE_OF_QCLASS = 2; | ||||
// Builds dummy DNS query message | // Builds dummy DNS query message | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |
Seeing that the fixture isn't necessary, you can remove this in it's own diff.