blob: 3141ec5400343a42314e1076b36a28d67760f2af [file] [log] [blame]
Junxiao Shia4c50482014-12-04 12:40:49 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesavento74daf742018-11-23 18:14:13 -05002/*
3 * Copyright (c) 2014-2018 Regents of the University of California,
Spyridon Mastorakis429634f2015-02-19 17:35:33 -08004 * 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.
Junxiao Shia4c50482014-12-04 12:40:49 -070010 *
11 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
12 *
13 * ndn-cxx library is free software: you can redistribute it and/or modify it under the
14 * terms of the GNU Lesser General Public License as published by the Free Software
15 * Foundation, either version 3 of the License, or (at your option) any later version.
16 *
17 * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
20 *
21 * You should have received copies of the GNU General Public License and GNU Lesser
22 * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
23 * <http://www.gnu.org/licenses/>.
24 *
25 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
26 */
27
28#include "util/concepts.hpp"
29
30namespace ndn {
31namespace tests {
32
33class WireEncodableType
34{
35public:
36 const Block&
37 wireEncode();
38};
39BOOST_CONCEPT_ASSERT((WireEncodable<WireEncodableType>));
40
41class WireEncodableType2
42{
43public:
44 Block
45 wireEncode();
46};
47BOOST_CONCEPT_ASSERT((WireEncodable<WireEncodableType2>));
48
49class WireDecodableType
50{
51public:
52 explicit
53 WireDecodableType(const Block& wire);
54
55 void
56 wireDecode(const Block& wire);
57};
58BOOST_CONCEPT_ASSERT((WireDecodable<WireDecodableType>));
59
60} // namespace tests
61} // namespace ndn