blob: 3ad17011ae204cdce2b92e315f447b5be73c8232 [file] [log] [blame]
Junxiao Shif3c07812014-03-11 21:48:49 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "validation-common.hpp"
8
9#include <boost/test/unit_test.hpp>
10
11namespace nfd {
12namespace tests {
13
14const Name CommandIdentityGlobalFixture::s_identityName("/unit-test/CommandFixture/id");
15shared_ptr<ndn::IdentityCertificate> CommandIdentityGlobalFixture::s_certificate;
16
17CommandIdentityGlobalFixture::CommandIdentityGlobalFixture()
18{
19 BOOST_ASSERT(!static_cast<bool>(s_certificate));
20 s_certificate = m_keys.getCertificate(m_keys.createIdentity(s_identityName));
21}
22
23CommandIdentityGlobalFixture::~CommandIdentityGlobalFixture()
24{
25 s_certificate.reset();
26 m_keys.deleteIdentity(s_identityName);
27}
28
29BOOST_GLOBAL_FIXTURE(CommandIdentityGlobalFixture);
30
31} // namespace tests
32} // namespace nfd
33