Davide Pesavento | c45a4ea | 2022-09-19 02:10:53 -0400 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013-2022 Regents of the University of California. |
| 4 | * |
| 5 | * This file is part of PSync. |
| 6 | * |
| 7 | * PSync is free software: you can redistribute it and/or modify it under the terms |
| 8 | * of the GNU Lesser General Public License as published by the Free Software Foundation, either |
| 9 | * version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * PSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 12 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 13 | * PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public License along with |
| 16 | * PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef PSYNC_TESTS_KEY_CHAIN_FIXTURE_HPP |
| 20 | #define PSYNC_TESTS_KEY_CHAIN_FIXTURE_HPP |
| 21 | |
| 22 | #include <ndn-cxx/security/key-chain.hpp> |
| 23 | |
| 24 | namespace psync::tests { |
| 25 | |
| 26 | /** |
| 27 | * @brief A fixture providing an in-memory KeyChain. |
| 28 | */ |
| 29 | class KeyChainFixture |
| 30 | { |
| 31 | protected: |
| 32 | ndn::KeyChain m_keyChain{"pib-memory:", "tpm-memory:"}; |
| 33 | }; |
| 34 | |
| 35 | } // namespace psync::tests |
| 36 | |
| 37 | #endif // PSYNC_TESTS_KEY_CHAIN_FIXTURE_HPP |