Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 2 | /** |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 3 | * Copyright (c) 2013-2015 Regents of the University of California. |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 4 | * |
| 5 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 6 | * |
Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 7 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 8 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 9 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 13 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 16 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #include "util/scheduler.hpp" |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 23 | #include "util/scheduler-scoped-event-id.hpp" |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 24 | |
Alexander Afanasyev | b1db7c6 | 2014-04-03 14:57:25 -0700 | [diff] [blame] | 25 | #include "boost-test.hpp" |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 26 | #include "../unit-test-time-fixture.hpp" |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 27 | |
| 28 | namespace ndn { |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 29 | namespace util { |
| 30 | namespace scheduler { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 31 | namespace tests { |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 32 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 33 | BOOST_FIXTURE_TEST_SUITE(UtilTestScheduler, ::ndn::tests::UnitTestTimeFixture) |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 34 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 35 | BOOST_AUTO_TEST_CASE(Events) |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 36 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 37 | size_t count1 = 0; |
| 38 | size_t count2 = 0; |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 39 | |
| 40 | Scheduler scheduler(io); |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 41 | scheduler.scheduleEvent(time::milliseconds(500), [&] { |
| 42 | ++count1; |
| 43 | BOOST_CHECK_EQUAL(count2, 1); |
| 44 | }); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 45 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 46 | EventId i = scheduler.scheduleEvent(time::seconds(1), [&] { |
| 47 | BOOST_ERROR("This event should not have been fired"); |
| 48 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 49 | scheduler.cancelEvent(i); |
| 50 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 51 | scheduler.scheduleEvent(time::milliseconds(250), [&] { |
| 52 | BOOST_CHECK_EQUAL(count1, 0); |
| 53 | ++count2; |
| 54 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 55 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 56 | i = scheduler.scheduleEvent(time::milliseconds(50), [&] { |
| 57 | BOOST_ERROR("This event should not have been fired"); |
| 58 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 59 | scheduler.cancelEvent(i); |
| 60 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 61 | advanceClocks(time::milliseconds(1), 1000); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 62 | BOOST_CHECK_EQUAL(count1, 1); |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 63 | BOOST_CHECK_EQUAL(count2, 1); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 64 | } |
| 65 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 66 | BOOST_AUTO_TEST_CASE(CancelEmptyEvent) |
| 67 | { |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 68 | Scheduler scheduler(io); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 69 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 70 | EventId i; |
| 71 | scheduler.cancelEvent(i); |
| 72 | } |
| 73 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 74 | BOOST_AUTO_TEST_CASE(SelfCancel) |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 75 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 76 | Scheduler scheduler(io); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 77 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 78 | EventId selfEventId; |
| 79 | selfEventId = scheduler.scheduleEvent(time::milliseconds(100), [&] { |
| 80 | scheduler.cancelEvent(selfEventId); |
| 81 | }); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 82 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 83 | BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(100), 10)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 84 | } |
| 85 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 86 | class SelfRescheduleFixture : public ::ndn::tests::UnitTestTimeFixture |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 87 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 88 | public: |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 89 | SelfRescheduleFixture() |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 90 | : scheduler(io) |
| 91 | , count(0) |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 92 | { |
| 93 | } |
| 94 | |
| 95 | void |
| 96 | reschedule() |
| 97 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 98 | EventId eventId = scheduler.scheduleEvent(time::milliseconds(100), |
| 99 | bind(&SelfRescheduleFixture::reschedule, this)); |
| 100 | scheduler.cancelEvent(selfEventId); |
| 101 | selfEventId = eventId; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 102 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 103 | if (count < 5) |
| 104 | count++; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 105 | else |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 106 | scheduler.cancelEvent(selfEventId); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | void |
| 110 | reschedule2() |
| 111 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 112 | scheduler.cancelEvent(selfEventId); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 113 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 114 | if (count < 5) { |
| 115 | selfEventId = scheduler.scheduleEvent(time::milliseconds(100), |
| 116 | bind(&SelfRescheduleFixture::reschedule2, this)); |
| 117 | count++; |
| 118 | } |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 119 | } |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 120 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 121 | void |
| 122 | reschedule3() |
| 123 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 124 | scheduler.cancelEvent(selfEventId); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 125 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 126 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 127 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 128 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 129 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 130 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 131 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 132 | } |
| 133 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 134 | Scheduler scheduler; |
| 135 | EventId selfEventId; |
| 136 | size_t count; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | BOOST_FIXTURE_TEST_CASE(Reschedule, SelfRescheduleFixture) |
| 140 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 141 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 142 | bind(&SelfRescheduleFixture::reschedule, this)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 143 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 144 | BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 145 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 146 | BOOST_CHECK_EQUAL(count, 5); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | BOOST_FIXTURE_TEST_CASE(Reschedule2, SelfRescheduleFixture) |
| 150 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 151 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 152 | bind(&SelfRescheduleFixture::reschedule2, this)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 153 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 154 | BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 155 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 156 | BOOST_CHECK_EQUAL(count, 5); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | BOOST_FIXTURE_TEST_CASE(Reschedule3, SelfRescheduleFixture) |
| 160 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 161 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 162 | bind(&SelfRescheduleFixture::reschedule3, this)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 163 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 164 | BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 165 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 166 | BOOST_CHECK_EQUAL(count, 6); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 167 | } |
| 168 | |
| 169 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 170 | struct CancelAllFixture : public ::ndn::tests::UnitTestTimeFixture |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 171 | { |
| 172 | CancelAllFixture() |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 173 | : scheduler(io) |
| 174 | , count(0) |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 175 | { |
| 176 | } |
| 177 | |
| 178 | void |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 179 | event() |
| 180 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 181 | ++count; |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 182 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 183 | scheduler.scheduleEvent(time::seconds(1), [&] { event(); }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 184 | } |
| 185 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 186 | Scheduler scheduler; |
| 187 | uint32_t count; |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 188 | }; |
| 189 | |
| 190 | |
| 191 | BOOST_FIXTURE_TEST_CASE(CancelAll, CancelAllFixture) |
| 192 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 193 | scheduler.scheduleEvent(time::milliseconds(500), [&] { scheduler.cancelAllEvents(); }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 194 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 195 | scheduler.scheduleEvent(time::seconds(1), [&] { event(); }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 196 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 197 | scheduler.scheduleEvent(time::seconds(3), [] { |
| 198 | BOOST_ERROR("This event should have been cancelled" ); |
| 199 | }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 200 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 201 | advanceClocks(time::milliseconds(100), 100); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 202 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 203 | BOOST_CHECK_EQUAL(count, 0); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 204 | } |
| 205 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 206 | class ScopedEventFixture : public ::ndn::tests::UnitTestTimeFixture |
| 207 | { |
| 208 | public: |
| 209 | ScopedEventFixture() |
| 210 | : scheduler(io) |
| 211 | { |
| 212 | } |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 213 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 214 | public: |
| 215 | Scheduler scheduler; |
| 216 | }; |
| 217 | |
| 218 | BOOST_FIXTURE_TEST_SUITE(ScopedEvents, ScopedEventFixture) |
| 219 | |
| 220 | BOOST_AUTO_TEST_CASE(ScopedEventIdDestruct) |
| 221 | { |
| 222 | int hit = 0; |
| 223 | { |
| 224 | ScopedEventId se(scheduler); |
| 225 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 226 | } // se goes out of scope |
| 227 | this->advanceClocks(time::milliseconds(1), 15); |
| 228 | BOOST_CHECK_EQUAL(hit, 0); |
| 229 | } |
| 230 | |
| 231 | BOOST_AUTO_TEST_CASE(ScopedEventIdAssign) |
| 232 | { |
| 233 | int hit1 = 0, hit2 = 0; |
| 234 | ScopedEventId se1(scheduler); |
| 235 | se1 = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit1; }); |
| 236 | se1 = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit2; }); |
| 237 | this->advanceClocks(time::milliseconds(1), 15); |
| 238 | BOOST_CHECK_EQUAL(hit1, 0); |
| 239 | BOOST_CHECK_EQUAL(hit2, 1); |
| 240 | } |
| 241 | |
| 242 | BOOST_AUTO_TEST_CASE(ScopedEventIdRelease) |
| 243 | { |
| 244 | int hit = 0; |
| 245 | { |
| 246 | ScopedEventId se(scheduler); |
| 247 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 248 | se.release(); |
| 249 | } // se goes out of scope |
| 250 | this->advanceClocks(time::milliseconds(1), 15); |
| 251 | BOOST_CHECK_EQUAL(hit, 1); |
| 252 | } |
| 253 | |
| 254 | BOOST_AUTO_TEST_CASE(ScopedEventIdMove) |
| 255 | { |
| 256 | int hit = 0; |
| 257 | unique_ptr<scheduler::ScopedEventId> se2; |
| 258 | { |
| 259 | ScopedEventId se(scheduler); |
| 260 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 261 | se2.reset(new ScopedEventId(std::move(se))); |
| 262 | } // se goes out of scope |
| 263 | this->advanceClocks(time::milliseconds(1), 15); |
| 264 | BOOST_CHECK_EQUAL(hit, 1); |
| 265 | } |
| 266 | |
| 267 | BOOST_AUTO_TEST_SUITE_END() // ScopedEventId |
| 268 | |
| 269 | BOOST_AUTO_TEST_SUITE_END() // UtilTestScheduler |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 270 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 271 | } // namespace tests |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame^] | 272 | } // namespace scheduler |
| 273 | } // namespace util |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 274 | } // namespace ndn |