Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "mgmt/internal-face.hpp" |
| 8 | |
| 9 | #include <boost/test/unit_test.hpp> |
| 10 | |
| 11 | namespace nfd { |
| 12 | |
| 13 | BOOST_AUTO_TEST_SUITE(MgmtInternalFace) |
| 14 | |
| 15 | BOOST_AUTO_TEST_CASE(ValidPrefixRegistration) |
| 16 | { |
| 17 | InternalFace internal; |
| 18 | Interest regInterest("/localhost/nfd/prefixreg/hello/world"); |
| 19 | internal.sendInterest(regInterest); |
| 20 | } |
| 21 | |
| 22 | BOOST_AUTO_TEST_CASE(InvalidPrefixRegistration) |
| 23 | { |
| 24 | InternalFace internal; |
| 25 | Interest nonRegInterest("/hello/world"); |
| 26 | internal.sendInterest(nonRegInterest); |
| 27 | } |
| 28 | |
| 29 | BOOST_AUTO_TEST_SUITE_END() |
| 30 | |
| 31 | } // namespace nfd |