Alexander Afanasyev | f1e013f | 2012-07-11 17:59:40 -0700 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011 University of California, Los Angeles |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation; |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | * |
| 18 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
| 21 | #ifndef NDNSIM_TEST_PIT_H |
| 22 | #define NDNSIM_TEST_PIT_H |
| 23 | |
| 24 | #include "ns3/test.h" |
| 25 | #include "ns3/ptr.h" |
| 26 | |
Alexander Afanasyev | cf6dc92 | 2012-08-10 16:55:27 -0700 | [diff] [blame] | 27 | namespace ns3 { |
Alexander Afanasyev | f1e013f | 2012-07-11 17:59:40 -0700 | [diff] [blame] | 28 | |
Alexander Afanasyev | cf6dc92 | 2012-08-10 16:55:27 -0700 | [diff] [blame] | 29 | namespace ndn { |
| 30 | class Fib; |
| 31 | class Pit; |
| 32 | } |
Alexander Afanasyev | f1e013f | 2012-07-11 17:59:40 -0700 | [diff] [blame] | 33 | |
| 34 | class PitTest : public TestCase |
| 35 | { |
| 36 | public: |
| 37 | PitTest () |
| 38 | : TestCase ("PIT test") |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | private: |
| 43 | virtual void DoRun (); |
| 44 | |
Alexander Afanasyev | cf6dc92 | 2012-08-10 16:55:27 -0700 | [diff] [blame] | 45 | void Test (Ptr<ndn::Fib> fib); |
| 46 | void Check0 (Ptr<ndn::Pit> pit); |
| 47 | void Check1 (Ptr<ndn::Pit> pit); |
| 48 | void Check2 (Ptr<ndn::Pit> pit); |
| 49 | void Check3 (Ptr<ndn::Pit> pit); |
Alexander Afanasyev | f1e013f | 2012-07-11 17:59:40 -0700 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | } |
| 53 | |
| 54 | #endif // NDNSIM_TEST_PIT_H |