tests: avoid deprecated boost headers
Change-Id: I1b79c9422109d2ce8832fd386b524bd9ffffa231
This commit is contained in:
1 parent
5a897699cf
commit
cf9e1c7789
8 files changed
+48
-25
No files matched your search
+9
-10
@@ -1,12 +1,12 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/**
|
||||
* Copyright (c) 2014, Regents of the University of California,
|
||||
* Arizona Board of Regents,
|
||||
* Colorado State University,
|
||||
* University Pierre & Marie Curie, Sorbonne University,
|
||||
* Washington University in St. Louis,
|
||||
* Beijing Institute of Technology,
|
||||
* The University of Memphis
|
||||
/*
|
||||
* Copyright (c) 2014-2019, Regents of the University of California,
|
||||
* Arizona Board of Regents,
|
||||
* Colorado State University,
|
||||
* University Pierre & Marie Curie, Sorbonne University,
|
||||
* Washington University in St. Louis,
|
||||
* Beijing Institute of Technology,
|
||||
* The University of Memphis.
|
||||
*
|
||||
* This file is part of NFD (Named Data Networking Forwarding Daemon).
|
||||
* See AUTHORS.md for complete list of NFD authors and contributors.
|
||||
@@ -30,8 +30,7 @@
|
||||
#pragma GCC system_header
|
||||
#pragma clang system_header
|
||||
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/concept_check.hpp>
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
|
||||
#endif // NFD_TESTS_BOOST_TEST_HPP
|
||||
+4
-5
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/**
|
||||
* Copyright (c) 2014-2016, 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,8 +23,7 @@
|
||||
* NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
#define BOOST_TEST_ALTERNATIVE_INIT_API
|
||||
// BOOST_TEST_MODULE is defined in tests/wscript
|
||||
|
||||
#include <boost/version.hpp>
|
||||
|
||||
@@ -32,9 +31,9 @@
|
||||
// Boost.Test v3.3 (Boost 1.62) natively supports multi-logger output
|
||||
#include "boost-test.hpp"
|
||||
#else
|
||||
#define BOOST_TEST_ALTERNATIVE_INIT_API
|
||||
#define BOOST_TEST_NO_MAIN
|
||||
#include "boost-test.hpp"
|
||||
|
||||
#include "boost-multi-log-formatter.hpp"
|
||||
|
||||
#include <boost/program_options/options_description.hpp>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2014-2017, 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,
|
||||
@@ -29,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 // NFD_TESTS_OTHER_BENCHMARK_HELPERS_HPP
|
||||
@@ -34,6 +34,8 @@
|
||||
#include <ndn-cxx/mgmt/nfd/control-response.hpp>
|
||||
#include <ndn-cxx/util/dummy-client-face.hpp>
|
||||
|
||||
#include <boost/concept/assert.hpp>
|
||||
|
||||
namespace nfd {
|
||||
namespace tools {
|
||||
namespace tests {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/**
|
||||
* Copyright (c) 2014-2017, 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,
|
||||
@@ -28,16 +28,20 @@
|
||||
|
||||
#include "mock-nfd-mgmt-fixture.hpp"
|
||||
#include "nfdc/available-commands.hpp"
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace nfd {
|
||||
namespace tools {
|
||||
namespace nfdc {
|
||||
namespace tests {
|
||||
|
||||
using boost::test_tools::output_test_stream;
|
||||
|
||||
/** \brief fixture to test command execution
|
||||
*/
|
||||
class ExecuteCommandFixture : public MockNfdMgmtFixture
|
||||
@@ -64,8 +68,8 @@ protected:
|
||||
}
|
||||
|
||||
protected:
|
||||
output_test_stream out;
|
||||
output_test_stream err;
|
||||
boost::test_tools::output_test_stream out;
|
||||
boost::test_tools::output_test_stream err;
|
||||
int exitCode = -1;
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
@@ -27,6 +27,12 @@
|
||||
|
||||
#include "tests/test-common.hpp"
|
||||
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace nfd {
|
||||
namespace tools {
|
||||
namespace nfdc {
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
|
||||
#include "tests/test-common.hpp"
|
||||
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace nfd {
|
||||
namespace tools {
|
||||
namespace nfdc {
|
||||
|
||||
@@ -31,6 +31,12 @@
|
||||
|
||||
#include <ndn-cxx/security/validator-null.hpp>
|
||||
|
||||
#if BOOST_VERSION >= 105900
|
||||
#include <boost/test/tools/output_test_stream.hpp>
|
||||
#else
|
||||
#include <boost/test/output_test_stream.hpp>
|
||||
#endif
|
||||
|
||||
namespace nfd {
|
||||
namespace tools {
|
||||
namespace nfdc {
|
||||
|
||||
Reference in new issue
Block a user