tests: avoid deprecated boost headers; define BOOST_TEST_MODULE
Change-Id: Ie1e731e0943e635be36d65ea0dc02c348c17f05a
This commit is contained in:
1 parent
2cd6ae8495
commit
a8600b0a6a
5 files changed
+21
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2014-2018, Regents of the University of California,
|
||||
* Copyright (c) 2014-2019, Regents of the University of California,
|
||||
* Arizona Board of Regents,
|
||||
* Colorado State University,
|
||||
* University Pierre & Marie Curie, Sorbonne University,
|
||||
@@ -30,7 +30,7 @@
|
||||
#pragma GCC system_header
|
||||
#pragma clang system_header
|
||||
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
|
||||
#endif // NDN_TOOLS_TESTS_BOOST_TEST_HPP
|
||||
@@ -32,6 +32,12 @@
|
||||
#include <ndn-cxx/security/validator-null.hpp>
|
||||
#include <ndn-cxx/util/dummy-client-face.hpp>
|
||||
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace ndn {
|
||||
namespace chunks {
|
||||
namespace tests {
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
#include <netinet/udp.h>
|
||||
|
||||
#include <boost/endian/conversion.hpp>
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
#include <ndn-cxx/encoding/encoding-buffer.hpp>
|
||||
#include <ndn-cxx/lp/packet.hpp>
|
||||
|
||||
+3
-4
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/**
|
||||
* Copyright (c) 2014-2015, Regents of the University of California,
|
||||
/*
|
||||
* Copyright (c) 2014-2019, Regents of the University of California,
|
||||
* Arizona Board of Regents,
|
||||
* Colorado State University,
|
||||
* University Pierre & Marie Curie, Sorbonne University,
|
||||
@@ -23,7 +23,6 @@
|
||||
* ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define BOOST_TEST_MAIN 1
|
||||
#define BOOST_TEST_DYN_LINK 1
|
||||
#define BOOST_TEST_MODULE ndn-tools Unit Tests
|
||||
|
||||
#include "boost-test.hpp"
|
||||
@@ -24,6 +24,11 @@
|
||||
#include <ndn-cxx/util/dummy-client-face.hpp>
|
||||
|
||||
#include <boost/mpl/vector.hpp>
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace ndn {
|
||||
namespace peek {
|
||||
|
||||
Reference in new issue
Block a user