blob: 0ece5b67b6386d80af13136f48d530f54d4f333d [file] [log] [blame]
Steve DiBenedetto5b433982014-01-29 17:14:27 -07001/* -*- 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
11namespace nfd {
12
13BOOST_AUTO_TEST_SUITE(MgmtInternalFace)
14
15BOOST_AUTO_TEST_CASE(ValidPrefixRegistration)
16{
17 InternalFace internal;
18 Interest regInterest("/localhost/nfd/prefixreg/hello/world");
19 internal.sendInterest(regInterest);
20}
21
22BOOST_AUTO_TEST_CASE(InvalidPrefixRegistration)
23{
24 InternalFace internal;
25 Interest nonRegInterest("/hello/world");
26 internal.sendInterest(nonRegInterest);
27}
28
29BOOST_AUTO_TEST_SUITE_END()
30
31} // namespace nfd