Make use of logger provided by ndn-cxx
This commit also introduces a basic implmentation of DummyForwarder to
remove dependency on (and uncertainty of) the running instance of NFD.
Change-Id: Iba9fcbf3d3ebb1a5ae47018ad3be5d7d2b9c7462
diff --git a/tests/unit-tests/fetch-manager.t.cpp b/tests/unit-tests/fetch-manager.t.cpp
index 24ec688..9ce544f 100644
--- a/tests/unit-tests/fetch-manager.t.cpp
+++ b/tests/unit-tests/fetch-manager.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2016, Regents of the University of California.
+ * Copyright (c) 2013-2017, Regents of the University of California.
*
* This file is part of ChronoShare, a decentralized file sharing application over NDN.
*
@@ -25,7 +25,7 @@
#include <boost/make_shared.hpp>
#include <boost/test/unit_test.hpp>
-INIT_LOGGER("Test.FetchManager");
+_LOG_INIT(Test.FetchManager);
using namespace Ndnx;
using namespace std;
@@ -113,8 +113,6 @@
BOOST_AUTO_TEST_CASE(TestFetcher)
{
- INIT_LOGGERS();
-
CcnxWrapperPtr ccnx = make_shared<CcnxWrapper>();
Name baseName("/base");
@@ -206,8 +204,6 @@
BOOST_AUTO_TEST_CASE (TestFetcher2)
{
- INIT_LOGGERS ();
-
NdnxWrapperPtr ndnx = make_shared<NdnxWrapper> ();
Name baseName ("/base");