Slim down `common.hpp`
Change-Id: Ic9843a1b9ffc5b5b1fa6062c8250ba28c6aaa898
diff --git a/tests/peek/ndnpeek.t.cpp b/tests/peek/ndnpeek.t.cpp
index 8a51b8e..0764f0c 100644
--- a/tests/peek/ndnpeek.t.cpp
+++ b/tests/peek/ndnpeek.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2023, Arizona Board of Regents.
+ * Copyright (c) 2014-2024, Arizona Board of Regents.
*
* This file is part of ndn-tools (Named Data Networking Essential Tools).
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
@@ -24,6 +24,7 @@
#include <ndn-cxx/util/dummy-client-face.hpp>
+#include <boost/lexical_cast.hpp>
#include <boost/test/tools/output_test_stream.hpp>
namespace ndn::peek::tests {
@@ -63,13 +64,13 @@
void
initialize(const PeekOptions& opts = makeDefaultOptions())
{
- peek = make_unique<NdnPeek>(face, opts);
+ peek = std::make_unique<NdnPeek>(face, opts);
}
protected:
DummyClientFace face{m_io};
output_test_stream output;
- unique_ptr<NdnPeek> peek;
+ std::unique_ptr<NdnPeek> peek;
};
class OutputFull
@@ -232,7 +233,7 @@
BOOST_AUTO_TEST_CASE(ApplicationParameters)
{
auto options = makeDefaultOptions();
- options.applicationParameters = make_shared<Buffer>("hello", 5);
+ options.applicationParameters = std::make_shared<Buffer>("hello", 5);
initialize(options);
peek->start();
@@ -305,7 +306,7 @@
BOOST_AUTO_TEST_CASE(OversizedPacket)
{
auto options = makeDefaultOptions();
- options.applicationParameters = make_shared<Buffer>(MAX_NDN_PACKET_SIZE);
+ options.applicationParameters = std::make_shared<Buffer>(MAX_NDN_PACKET_SIZE);
initialize(options);
peek->start();
diff --git a/tests/peek/ndnpoke.t.cpp b/tests/peek/ndnpoke.t.cpp
index b20f377..1c2a2c0 100644
--- a/tests/peek/ndnpoke.t.cpp
+++ b/tests/peek/ndnpoke.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2023, Regents of the University of California,
+ * Copyright (c) 2014-2024, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -47,7 +47,7 @@
void
initialize(const PokeOptions& opts = makeDefaultOptions())
{
- poke = make_unique<NdnPoke>(face, m_keyChain, payload, opts);
+ poke = std::make_unique<NdnPoke>(face, m_keyChain, payload, opts);
}
static PokeOptions
@@ -61,7 +61,7 @@
protected:
DummyClientFace face{m_io, m_keyChain, {true, WANT_PREFIX_REG_REPLY}};
std::stringstream payload{"Hello, world!\n"};
- unique_ptr<NdnPoke> poke;
+ std::unique_ptr<NdnPoke> poke;
};
BOOST_AUTO_TEST_SUITE(Peek)