Files
NFD/tests/mgmt/validation-common.cpp
T
Junxiao Shi f3c0781d22 fw: refine pipelines, dispatch to strategy
refs #1345 #1255

Change-Id: If1cfc26049f87318103fc09c3b211ebf1eb3ebaa
2014-03-11 22:33:15 -07:00

34 lines
888 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "validation-common.hpp"
#include <boost/test/unit_test.hpp>
namespace nfd {
namespace tests {
const Name CommandIdentityGlobalFixture::s_identityName("/unit-test/CommandFixture/id");
shared_ptr<ndn::IdentityCertificate> CommandIdentityGlobalFixture::s_certificate;
CommandIdentityGlobalFixture::CommandIdentityGlobalFixture()
{
BOOST_ASSERT(!static_cast<bool>(s_certificate));
s_certificate = m_keys.getCertificate(m_keys.createIdentity(s_identityName));
}
CommandIdentityGlobalFixture::~CommandIdentityGlobalFixture()
{
s_certificate.reset();
m_keys.deleteIdentity(s_identityName);
}
BOOST_GLOBAL_FIXTURE(CommandIdentityGlobalFixture);
} // namespace tests
} // namespace nfd