blob: 95639c17646b8116424c9440d88f64542b6e637f [file] [log] [blame]
Alexander Afanasyev650028d2014-04-25 18:39:10 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2014, 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
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/>.
24 */
25
26#ifndef NFD_TESTS_DAEMON_FACE_PACKET_DATASETS_HPP
27#define NFD_TESTS_DAEMON_FACE_PACKET_DATASETS_HPP
28
29#include "tests/test-common.hpp"
30
31namespace nfd {
32namespace tests {
33
Alexander Afanasyev650028d2014-04-25 18:39:10 -070034class CorruptedInterest
35{
36public:
37 typedef std::vector<ndn::Buffer> Container;
38
39 static std::string
40 getName()
41 {
42 return "CorruptedInterest";
43 }
44
45 CorruptedInterest()
46 {
47 static const uint8_t interest[] = {
48 0x05, 0x1d, 0x07, 0x84, 0x08, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x08, 0x03, 0x6e, 0x64,
49 0x6e, 0x08, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x09, 0x02, 0x12, 0x00, 0x0a, 0x01,
50 0x01
51 };
52
53 data.push_back(ndn::Buffer(interest, sizeof(interest)));
54 }
55public:
56 Container data;
57};
58
Yukai Tu16aabbc2015-10-06 05:08:42 -070059typedef boost::mpl::vector<CorruptedInterest> CorruptedPackets;
Alexander Afanasyev650028d2014-04-25 18:39:10 -070060
61} // namespace tests
62} // namespace nfd
63
64#endif // NFD_TESTS_DAEMON_FACE_PACKET_DATASETS_HPP