blob: 8eaffc298f99d9095b2ba71ed2385ddf4fc9c0a6 [file] [log] [blame]
Davide Pesavento66777622020-10-09 18:46:03 -04001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
Davide Pesavento6b430e92022-09-18 18:16:02 -04003 * Copyright (c) 2013-2022 Regents of the University of California.
Davide Pesavento66777622020-10-09 18:46:03 -04004 *
5 * This file is part of ndn-tools (Named Data Networking Essential Tools).
6 * See AUTHORS.md for complete list of ndn-tools authors and contributors.
7 *
8 * ndn-tools is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef NDN_TOOLS_TESTS_KEY_CHAIN_FIXTURE_HPP
21#define NDN_TOOLS_TESTS_KEY_CHAIN_FIXTURE_HPP
22
23#include <ndn-cxx/security/key-chain.hpp>
Davide Pesavento66777622020-10-09 18:46:03 -040024
Davide Pesaventob3570c62022-02-19 19:19:00 -050025namespace ndn::tests {
Davide Pesavento66777622020-10-09 18:46:03 -040026
27/**
28 * @brief A fixture providing an in-memory KeyChain.
Davide Pesavento66777622020-10-09 18:46:03 -040029 */
30class KeyChainFixture
31{
32protected:
Davide Pesavento6b430e92022-09-18 18:16:02 -040033 ndn::KeyChain m_keyChain{"pib-memory:", "tpm-memory:"};
Davide Pesavento66777622020-10-09 18:46:03 -040034};
35
Davide Pesaventob3570c62022-02-19 19:19:00 -050036} // namespace ndn::tests
Davide Pesavento66777622020-10-09 18:46:03 -040037
38#endif // NDN_TOOLS_TESTS_KEY_CHAIN_FIXTURE_HPP