blob: e8581417aec80175e89a355b031613e636ba7577 [file] [log] [blame]
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2011-2015 Regents of the University of California.
4 *
5 * This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
6 * contributors.
7 *
8 * ndnSIM 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 * ndnSIM 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 * ndnSIM, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 **/
19
20#ifndef NDNSIM_TESTS_UNIT_TESTS_TESTS_COMMON_HPP
21#define NDNSIM_TESTS_UNIT_TESTS_TESTS_COMMON_HPP
22
23#include "ns3/core-module.h"
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070024#include "model/ndn-global-router.hpp"
Alexander Afanasyevabc0d912015-08-13 16:49:02 -070025#include "helper/ndn-scenario-helper.hpp"
26
27#include "boost-test.hpp"
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070028
29namespace ns3 {
30namespace ndn {
31
32class CleanupFixture
33{
34public:
35 ~CleanupFixture()
36 {
37 Simulator::Destroy();
38 Names::Clear();
39 GlobalRouter::clear();
40 }
41};
42
Alexander Afanasyevabc0d912015-08-13 16:49:02 -070043class ScenarioHelperWithCleanupFixture : public ScenarioHelper, public CleanupFixture
44{
45public:
46};
47
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070048} // namespace ndn
49} // namespace ns3
50
51#endif // NDNSIM_TESTS_UNIT_TESTS_TESTS_COMMON_HPP