blob: d886aee0e06685c20f3f338bac604fa0fc7707a6 [file] [log] [blame]
shockjianga5ae48c2014-07-27 23:21:41 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2014, Regents of the University of California.
4 *
5 * This file is part of NDNS (Named Data Networking Domain Name Service).
6 * See AUTHORS.md for complete list of NDNS authors and contributors.
7 *
8 * NDNS is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * NDNS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22/**
23 * Copyright (c) 2014, Regents of the University of California.
24 *
25 * This file is part of NDNS (Named Data Networking Domain Name Service).
26 * See AUTHORS.md for complete list of NDNS authors and contributors.
27 *
28 * NDNS is free software: you can redistribute it and/or modify it under the terms
29 * of the GNU General Public License as published by the Free Software Foundation,
30 * either version 3 of the License, or (at your option) any later version.
31 *
32 * NDNS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
33 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
34 * PURPOSE. See the GNU General Public License for more details.
35 *
36 * You should have received a copy of the GNU General Public License along with
37 * NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
38 */
39
40#include "app/name-caching-resolver.hpp"
41#include "../boost-test.hpp"
42
43//#include <boost/test/test_tools.hpp>
44//#include <string>
45
46namespace ndn {
47namespace ndns {
48namespace tests {
49
50using namespace std;
51
52BOOST_AUTO_TEST_SUITE(nameCachingResolver)
53
54BOOST_AUTO_TEST_CASE(Protocol)
55{
56 string label = "nameCachingResolver::Protocol";
57 printbegin(label);
58
59 Name name = "/DNS-R/net/ndnsim/www/TXT";
60 Interest interest;
61 interest.setName(name);
62
63 NameCachingResolver resolver("resolver", "/DNS-R");
64 cout<<"onInterest"<<endl;
65 resolver.onInterest(name, interest);
66
67
68
69 printend(label);
70}
71
72BOOST_AUTO_TEST_SUITE_END()
73
74} // namespace tests
75} // namespace ndns
76} // namespace ndn
77