blob: 601f0b9feada4324e32cc20ba2f270a65ef2fb6e [file] [log] [blame]
Junxiao Shi047a6fb2017-06-08 16:16:05 +00001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Alexander Afanasyevc0e26582017-08-13 21:16:49 -04002/*
weijia yuan82cf9142018-10-21 12:25:02 -07003 * Copyright (c) 2014-2018, Regents of the University of California.
Junxiao Shi047a6fb2017-06-08 16:16:05 +00004 *
5 * This file is part of NDN repo-ng (Next generation of NDN repository).
6 * See AUTHORS.md for complete list of repo-ng authors and contributors.
7 *
8 * repo-ng 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 * repo-ng 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 * repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP
21#define REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP
22
23#include "../identity-management-fixture.hpp"
24#include <ndn-cxx/security/validator-null.hpp>
weijia yuan82cf9142018-10-21 12:25:02 -070025#include <ndn-cxx/mgmt/dispatcher.hpp>
Junxiao Shi047a6fb2017-06-08 16:16:05 +000026
27namespace repo {
28namespace tests {
29
30class CommandFixture : public virtual IdentityManagementFixture
31{
32protected:
33 CommandFixture();
34
35protected:
36 Face repoFace;
37 Scheduler scheduler;
38 KeyChain& keyChain;
weijia yuan82cf9142018-10-21 12:25:02 -070039 ndn::mgmt::Dispatcher dispatcher;
Junxiao Shi047a6fb2017-06-08 16:16:05 +000040 /// \todo #4091 switch to ValidatorPolicyConf and load insert-delete-validator-config.conf
Alexander Afanasyevc0e26582017-08-13 21:16:49 -040041 ValidatorConfig validator;
Junxiao Shi047a6fb2017-06-08 16:16:05 +000042};
43
44} // namespace tests
45} // namespace repo
46
47#endif // REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP