Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
Davide Pesavento | 6b430e9 | 2022-09-18 18:16:02 -0400 | [diff] [blame] | 3 | * Copyright (c) 2013-2022 Regents of the University of California. |
Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 4 | * |
| 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 Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 24 | |
Davide Pesavento | b3570c6 | 2022-02-19 19:19:00 -0500 | [diff] [blame] | 25 | namespace ndn::tests { |
Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 26 | |
| 27 | /** |
| 28 | * @brief A fixture providing an in-memory KeyChain. |
Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 29 | */ |
| 30 | class KeyChainFixture |
| 31 | { |
| 32 | protected: |
Davide Pesavento | 6b430e9 | 2022-09-18 18:16:02 -0400 | [diff] [blame] | 33 | ndn::KeyChain m_keyChain{"pib-memory:", "tpm-memory:"}; |
Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 34 | }; |
| 35 | |
Davide Pesavento | b3570c6 | 2022-02-19 19:19:00 -0500 | [diff] [blame] | 36 | } // namespace ndn::tests |
Davide Pesavento | 6677762 | 2020-10-09 18:46:03 -0400 | [diff] [blame] | 37 | |
| 38 | #endif // NDN_TOOLS_TESTS_KEY_CHAIN_FIXTURE_HPP |