Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Alexander Afanasyev | 319f2c8 | 2015-01-07 14:56:53 -0800 | [diff] [blame] | 3 | * Copyright (c) 2014-2015, Regents of the University of California, |
| 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology, |
| 9 | * The University of Memphis. |
Alexander Afanasyev | 9bcbc7c | 2014-04-06 19:37:37 -0700 | [diff] [blame] | 10 | * |
| 11 | * This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 12 | * See AUTHORS.md for complete list of NFD authors and contributors. |
| 13 | * |
| 14 | * NFD is free software: you can redistribute it and/or modify it under the terms |
| 15 | * of the GNU General Public License as published by the Free Software Foundation, |
| 16 | * either version 3 of the License, or (at your option) any later version. |
| 17 | * |
| 18 | * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 19 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 20 | * PURPOSE. See the GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License along with |
| 23 | * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
Steve DiBenedetto | ef04f27 | 2014-06-04 14:28:31 -0600 | [diff] [blame] | 24 | */ |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 25 | |
Alexander Afanasyev | 0eb7065 | 2014-02-27 18:35:07 -0800 | [diff] [blame] | 26 | #include "face/ethernet-factory.hpp" |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 27 | #include "face/ethernet-transport.hpp" |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 28 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 29 | #include "face/lp-face-wrapper.hpp" |
| 30 | #include "network-interface-fixture.hpp" |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 31 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 32 | #include <pcap/pcap.h> |
| 33 | |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 34 | namespace nfd { |
Junxiao Shi | d9ee45c | 2014-02-27 15:38:11 -0700 | [diff] [blame] | 35 | namespace tests { |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 36 | |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 37 | BOOST_AUTO_TEST_SUITE(Face) |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 38 | BOOST_FIXTURE_TEST_SUITE(TestEthernet, NetworkInterfaceFixture) |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 39 | |
| 40 | using nfd::Face; |
| 41 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 42 | BOOST_AUTO_TEST_CASE(GetChannels) |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 43 | { |
Alexander Afanasyev | 0eb7065 | 2014-02-27 18:35:07 -0800 | [diff] [blame] | 44 | EthernetFactory factory; |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 45 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 46 | auto channels = factory.getChannels(); |
| 47 | BOOST_CHECK_EQUAL(channels.empty(), true); |
| 48 | } |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 49 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 50 | BOOST_AUTO_TEST_CASE(MulticastFacesMap) |
| 51 | { |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 52 | SKIP_IF_NETWORK_INTERFACE_COUNT_LT(1); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 53 | |
| 54 | EthernetFactory factory; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 55 | auto face1 = factory.createMulticastFace(m_interfaces.front(), ethernet::getBroadcastAddress()); |
| 56 | auto face1bis = factory.createMulticastFace(m_interfaces.front(), ethernet::getBroadcastAddress()); |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 57 | BOOST_CHECK_EQUAL(face1, face1bis); |
| 58 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 59 | auto face2 = factory.createMulticastFace(m_interfaces.front(), ethernet::getDefaultMulticastAddress()); |
| 60 | BOOST_CHECK_NE(face1, face2); |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 61 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 62 | SKIP_IF_NETWORK_INTERFACE_COUNT_LT(2); |
| 63 | |
| 64 | auto face3 = factory.createMulticastFace(m_interfaces.back(), ethernet::getBroadcastAddress()); |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 65 | BOOST_CHECK_NE(face1, face3); |
| 66 | } |
| 67 | |
Yukai Tu | 7c90e6d | 2015-07-11 12:21:46 +0800 | [diff] [blame] | 68 | BOOST_AUTO_TEST_CASE(UnsupportedFaceCreate) |
| 69 | { |
| 70 | EthernetFactory factory; |
| 71 | |
| 72 | BOOST_CHECK_THROW(factory.createFace(FaceUri("ether://[08:00:27:01:01:01]"), |
| 73 | ndn::nfd::FACE_PERSISTENCY_PERMANENT, |
| 74 | bind([]{}), |
| 75 | bind([]{})), |
| 76 | ProtocolFactory::Error); |
| 77 | |
| 78 | BOOST_CHECK_THROW(factory.createFace(FaceUri("ether://[08:00:27:01:01:01]"), |
| 79 | ndn::nfd::FACE_PERSISTENCY_ON_DEMAND, |
| 80 | bind([]{}), |
| 81 | bind([]{})), |
| 82 | ProtocolFactory::Error); |
| 83 | |
| 84 | BOOST_CHECK_THROW(factory.createFace(FaceUri("ether://[08:00:27:01:01:01]"), |
| 85 | ndn::nfd::FACE_PERSISTENCY_PERSISTENT, |
| 86 | bind([]{}), |
| 87 | bind([]{})), |
| 88 | ProtocolFactory::Error); |
| 89 | } |
| 90 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 91 | BOOST_AUTO_TEST_CASE(SendPacket) |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 92 | { |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 93 | SKIP_IF_NETWORK_INTERFACE_COUNT_LT(1); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 94 | |
Davide Pesavento | b60cc12 | 2014-03-19 19:26:02 +0100 | [diff] [blame] | 95 | EthernetFactory factory; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 96 | auto face = factory.createMulticastFace(m_interfaces.front(), ethernet::getDefaultMulticastAddress()); |
Alexander Afanasyev | 355c066 | 2014-03-20 18:08:17 -0700 | [diff] [blame] | 97 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 98 | BOOST_REQUIRE(static_cast<bool>(face)); |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 99 | BOOST_CHECK_EQUAL(face->isLocal(), false); |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 100 | BOOST_CHECK_EQUAL(face->getPersistency(), ndn::nfd::FACE_PERSISTENCY_PERMANENT); |
Davide Pesavento | 9427941 | 2015-02-27 01:29:32 +0100 | [diff] [blame] | 101 | BOOST_CHECK_EQUAL(face->isMultiAccess(), true); |
Junxiao Shi | 7949416 | 2014-04-02 18:25:11 -0700 | [diff] [blame] | 102 | BOOST_CHECK_EQUAL(face->getRemoteUri().toString(), |
Davide Pesavento | b499a60 | 2014-11-18 22:36:56 +0100 | [diff] [blame] | 103 | "ether://[" + ethernet::getDefaultMulticastAddress().toString() + "]"); |
Junxiao Shi | 7949416 | 2014-04-02 18:25:11 -0700 | [diff] [blame] | 104 | BOOST_CHECK_EQUAL(face->getLocalUri().toString(), |
Davide Pesavento | b499a60 | 2014-11-18 22:36:56 +0100 | [diff] [blame] | 105 | "dev://" + m_interfaces.front().name); |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 106 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 0); |
| 107 | BOOST_CHECK_EQUAL(face->getCounters().nOutBytes, 0); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 108 | |
Junxiao Shi | c099ddb | 2014-12-25 20:53:20 -0700 | [diff] [blame] | 109 | face->onFail.connect([] (const std::string& reason) { BOOST_FAIL(reason); }); |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 110 | |
Alexander Afanasyev | b56c5b9 | 2014-06-05 08:05:24 +0300 | [diff] [blame] | 111 | shared_ptr<Interest> interest1 = makeInterest("ndn:/TpnzGvW9R"); |
| 112 | shared_ptr<Data> data1 = makeData("ndn:/KfczhUqVix"); |
| 113 | shared_ptr<Interest> interest2 = makeInterest("ndn:/QWiIMfj5sL"); |
| 114 | shared_ptr<Data> data2 = makeData("ndn:/XNBV796f"); |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 115 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 116 | face->sendInterest(*interest1); |
| 117 | face->sendData (*data1 ); |
| 118 | face->sendInterest(*interest2); |
| 119 | face->sendData (*data2 ); |
| 120 | |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 121 | BOOST_CHECK_EQUAL(face->getCounters().nOutBytes, |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 122 | interest1->wireEncode().size() + |
| 123 | data1->wireEncode().size() + |
| 124 | interest2->wireEncode().size() + |
| 125 | data2->wireEncode().size()); |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 126 | } |
| 127 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 128 | BOOST_AUTO_TEST_CASE(ProcessIncomingPacket) |
| 129 | { |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 130 | SKIP_IF_NETWORK_INTERFACE_COUNT_LT(1); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 131 | |
| 132 | EthernetFactory factory; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 133 | auto face = factory.createMulticastFace(m_interfaces.front(), ethernet::getDefaultMulticastAddress()); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 134 | BOOST_REQUIRE(static_cast<bool>(face)); |
| 135 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 136 | auto transport = dynamic_cast<face::EthernetTransport*>(face->getLpFace()->getTransport()); |
| 137 | BOOST_REQUIRE(transport != nullptr); |
| 138 | |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 139 | std::vector<Interest> recInterests; |
| 140 | std::vector<Data> recDatas; |
| 141 | |
Junxiao Shi | c099ddb | 2014-12-25 20:53:20 -0700 | [diff] [blame] | 142 | face->onFail.connect([] (const std::string& reason) { BOOST_FAIL(reason); }); |
| 143 | face->onReceiveInterest.connect( |
| 144 | [&recInterests] (const Interest& i) { recInterests.push_back(i); }); |
| 145 | face->onReceiveData.connect([&recDatas] (const Data& d) { recDatas.push_back(d); }); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 146 | |
| 147 | // check that packet data is not accessed if pcap didn't capture anything (caplen == 0) |
Davide Pesavento | ed89ccc | 2015-11-01 20:35:04 +0100 | [diff] [blame] | 148 | static const pcap_pkthdr zeroHeader{}; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 149 | transport->processIncomingPacket(&zeroHeader, nullptr); |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 150 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 0); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 151 | BOOST_CHECK_EQUAL(recInterests.size(), 0); |
| 152 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 153 | |
| 154 | // runt frame (too short) |
Davide Pesavento | ed89ccc | 2015-11-01 20:35:04 +0100 | [diff] [blame] | 155 | pcap_pkthdr runtHeader{}; |
| 156 | runtHeader.caplen = ethernet::HDR_LEN + 6; |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 157 | static const uint8_t packet2[ethernet::HDR_LEN + 6]{}; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 158 | transport->processIncomingPacket(&runtHeader, packet2); |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 159 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 0); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 160 | BOOST_CHECK_EQUAL(recInterests.size(), 0); |
| 161 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 162 | |
| 163 | // valid frame, but TLV block has invalid length |
Davide Pesavento | ed89ccc | 2015-11-01 20:35:04 +0100 | [diff] [blame] | 164 | pcap_pkthdr validHeader{}; |
| 165 | validHeader.caplen = ethernet::HDR_LEN + ethernet::MIN_DATA_LEN; |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 166 | static const uint8_t packet3[ethernet::HDR_LEN + ethernet::MIN_DATA_LEN]{ |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 167 | 0x01, 0x00, 0x5e, 0x00, 0x17, 0xaa, // destination address |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 168 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, // source address |
| 169 | 0x86, 0x24, // NDN ethertype |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 170 | tlv::Interest, // TLV type |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 171 | 0xfd, 0xff, 0xff // TLV length (invalid because greater than buffer size) |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 172 | }; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 173 | transport->processIncomingPacket(&validHeader, packet3); |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 174 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 0); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 175 | BOOST_CHECK_EQUAL(recInterests.size(), 0); |
| 176 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 177 | |
| 178 | // valid frame, but TLV block has invalid type |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 179 | static const uint8_t packet4[ethernet::HDR_LEN + ethernet::MIN_DATA_LEN]{ |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 180 | 0x01, 0x00, 0x5e, 0x00, 0x17, 0xaa, // destination address |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 181 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, // source address |
| 182 | 0x86, 0x24, // NDN ethertype |
| 183 | 0x00, // TLV type (invalid) |
| 184 | 0x00 // TLV length |
| 185 | }; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 186 | transport->processIncomingPacket(&validHeader, packet4); |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 187 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 2); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 188 | BOOST_CHECK_EQUAL(recInterests.size(), 0); |
| 189 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 190 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 191 | // valid frame and valid NDNLPv2 packet, but invalid network-layer packet |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 192 | static const uint8_t packet5[ethernet::HDR_LEN + ethernet::MIN_DATA_LEN]{ |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 193 | 0x01, 0x00, 0x5e, 0x00, 0x17, 0xaa, // destination address |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 194 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, // source address |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 195 | 0x86, 0x24, // NDN ethertype |
| 196 | lp::tlv::LpPacket, 0x04, // start of NDNLPv2 packet |
| 197 | lp::tlv::Fragment, 0x02, // single fragment |
| 198 | 0x00, // TLV type (invalid) |
| 199 | 0x00 // TLV length |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 200 | }; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 201 | transport->processIncomingPacket(&validHeader, packet5); |
| 202 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 8); |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 203 | BOOST_CHECK_EQUAL(recInterests.size(), 0); |
| 204 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 205 | |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 206 | // valid frame, valid NDNLPv2 packet, and valid NDN (interest) packet |
Matteo Sammarco | 66df974 | 2014-11-21 18:31:26 +0100 | [diff] [blame] | 207 | static const uint8_t packet6[ethernet::HDR_LEN + ethernet::MIN_DATA_LEN]{ |
| 208 | 0x01, 0x00, 0x5e, 0x00, 0x17, 0xaa, // destination address |
| 209 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, // source address |
| 210 | 0x86, 0x24, // NDN ethertype |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 211 | lp::tlv::LpPacket, 0x1a, // start of NDNLPv2 packet |
| 212 | lp::tlv::Fragment, 0x18, // single fragment |
| 213 | tlv::Interest, 0x16, // start of NDN packet |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 214 | 0x07, 0x0e, 0x08, 0x07, 0x65, 0x78, // payload |
| 215 | 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x08, |
| 216 | 0x03, 0x66, 0x6f, 0x6f, 0x0a, 0x04, |
| 217 | 0x03, 0xef, 0xe9, 0x7c |
| 218 | }; |
Davide Pesavento | 35120ea | 2015-11-17 21:13:18 +0100 | [diff] [blame] | 219 | transport->processIncomingPacket(&validHeader, packet6); |
| 220 | BOOST_CHECK_EQUAL(face->getCounters().nInBytes, 36); |
Davide Pesavento | 7726ae5 | 2014-11-23 21:01:05 +0100 | [diff] [blame] | 221 | BOOST_CHECK_EQUAL(recInterests.size(), 1); |
| 222 | BOOST_CHECK_EQUAL(recDatas.size(), 0); |
| 223 | } |
| 224 | |
Junxiao Shi | da93f1f | 2015-11-11 06:13:16 -0700 | [diff] [blame] | 225 | BOOST_AUTO_TEST_SUITE_END() // TestEthernet |
| 226 | BOOST_AUTO_TEST_SUITE_END() // Face |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 227 | |
Junxiao Shi | d9ee45c | 2014-02-27 15:38:11 -0700 | [diff] [blame] | 228 | } // namespace tests |
Davide Pesavento | 44deacc | 2014-02-19 10:48:07 +0100 | [diff] [blame] | 229 | } // namespace nfd |