Changeset View
Changeset View
Standalone View
Standalone View
src/test/raii_event_tests.cpp
// Copyright (c) 2016-2019 The Bitcoin Core developers | // Copyright (c) 2016-2019 The Bitcoin Core 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 <event2/event.h> | #include <event2/event.h> | ||||
#ifdef EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED | #ifdef EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED | ||||
// It would probably be ideal to define dummy test(s) that report skipped, but | // It would probably be ideal to define dummy test(s) that report skipped, but | ||||
// boost::test doesn't seem to make that practical (at least not in versions | // boost::test doesn't seem to make that practical (at least not in versions | ||||
// available with common distros) | // available with common distros) | ||||
#include <support/events.h> | #include <support/events.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <map> | #include <map> | ||||
#include <vector> | #include <vector> | ||||
static std::map<void *, short> tags; | static std::map<void *, short> tags; | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |