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 | |
Spyridon Mastorakis | 429634f | 2015-02-19 17:35:33 -0800 | [diff] [blame^] | 33 | using namespace ndn::tests; |
| 34 | |
| 35 | BOOST_FIXTURE_TEST_SUITE(UtilScheduler, UnitTestTimeFixture) |
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 | BOOST_AUTO_TEST_CASE(Events) |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 38 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 39 | size_t count1 = 0; |
| 40 | size_t count2 = 0; |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 41 | |
| 42 | Scheduler scheduler(io); |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 43 | scheduler.scheduleEvent(time::milliseconds(500), [&] { |
| 44 | ++count1; |
| 45 | BOOST_CHECK_EQUAL(count2, 1); |
| 46 | }); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 47 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 48 | EventId i = scheduler.scheduleEvent(time::seconds(1), [&] { |
| 49 | BOOST_ERROR("This event should not have been fired"); |
| 50 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 51 | scheduler.cancelEvent(i); |
| 52 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 53 | scheduler.scheduleEvent(time::milliseconds(250), [&] { |
| 54 | BOOST_CHECK_EQUAL(count1, 0); |
| 55 | ++count2; |
| 56 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 57 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 58 | i = scheduler.scheduleEvent(time::milliseconds(50), [&] { |
| 59 | BOOST_ERROR("This event should not have been fired"); |
| 60 | }); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 61 | scheduler.cancelEvent(i); |
| 62 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 63 | advanceClocks(time::milliseconds(1), 1000); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 64 | BOOST_CHECK_EQUAL(count1, 1); |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 65 | BOOST_CHECK_EQUAL(count2, 1); |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 66 | } |
| 67 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 68 | BOOST_AUTO_TEST_CASE(CancelEmptyEvent) |
| 69 | { |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 70 | Scheduler scheduler(io); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 71 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 72 | EventId i; |
| 73 | scheduler.cancelEvent(i); |
| 74 | } |
| 75 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 76 | BOOST_AUTO_TEST_CASE(SelfCancel) |
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 | Scheduler scheduler(io); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 79 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 80 | EventId selfEventId; |
| 81 | selfEventId = scheduler.scheduleEvent(time::milliseconds(100), [&] { |
| 82 | scheduler.cancelEvent(selfEventId); |
| 83 | }); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 84 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 85 | BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(100), 10)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 86 | } |
| 87 | |
Spyridon Mastorakis | 429634f | 2015-02-19 17:35:33 -0800 | [diff] [blame^] | 88 | class SelfRescheduleFixture : public UnitTestTimeFixture |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 89 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 90 | public: |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 91 | SelfRescheduleFixture() |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 92 | : scheduler(io) |
| 93 | , count(0) |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 94 | { |
| 95 | } |
| 96 | |
| 97 | void |
| 98 | reschedule() |
| 99 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 100 | EventId eventId = scheduler.scheduleEvent(time::milliseconds(100), |
| 101 | bind(&SelfRescheduleFixture::reschedule, this)); |
| 102 | scheduler.cancelEvent(selfEventId); |
| 103 | selfEventId = eventId; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 104 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 105 | if (count < 5) |
| 106 | count++; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 107 | else |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 108 | scheduler.cancelEvent(selfEventId); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | void |
| 112 | reschedule2() |
| 113 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 114 | scheduler.cancelEvent(selfEventId); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 115 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 116 | if (count < 5) { |
| 117 | selfEventId = scheduler.scheduleEvent(time::milliseconds(100), |
| 118 | bind(&SelfRescheduleFixture::reschedule2, this)); |
| 119 | count++; |
| 120 | } |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 121 | } |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 122 | |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 123 | void |
| 124 | reschedule3() |
| 125 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 126 | scheduler.cancelEvent(selfEventId); |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 127 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 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; }); |
| 132 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
| 133 | scheduler.scheduleEvent(time::milliseconds(100), [&] { ++count; }); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 134 | } |
| 135 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 136 | Scheduler scheduler; |
| 137 | EventId selfEventId; |
| 138 | size_t count; |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 139 | }; |
| 140 | |
| 141 | BOOST_FIXTURE_TEST_CASE(Reschedule, SelfRescheduleFixture) |
| 142 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 143 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 144 | bind(&SelfRescheduleFixture::reschedule, this)); |
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_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 147 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 148 | BOOST_CHECK_EQUAL(count, 5); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | BOOST_FIXTURE_TEST_CASE(Reschedule2, SelfRescheduleFixture) |
| 152 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 153 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 154 | bind(&SelfRescheduleFixture::reschedule2, this)); |
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_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 157 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 158 | BOOST_CHECK_EQUAL(count, 5); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 159 | } |
| 160 | |
| 161 | BOOST_FIXTURE_TEST_CASE(Reschedule3, SelfRescheduleFixture) |
| 162 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 163 | selfEventId = scheduler.scheduleEvent(time::seconds(0), |
| 164 | bind(&SelfRescheduleFixture::reschedule3, this)); |
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_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(10), 1000)); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 167 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 168 | BOOST_CHECK_EQUAL(count, 6); |
Yingdi Yu | f2a8209 | 2014-02-03 16:49:15 -0800 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame] | 172 | struct CancelAllFixture : public ::ndn::tests::UnitTestTimeFixture |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 173 | { |
| 174 | CancelAllFixture() |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 175 | : scheduler(io) |
| 176 | , count(0) |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 177 | { |
| 178 | } |
| 179 | |
| 180 | void |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 181 | event() |
| 182 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 183 | ++count; |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 184 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 185 | scheduler.scheduleEvent(time::seconds(1), [&] { event(); }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 186 | } |
| 187 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 188 | Scheduler scheduler; |
| 189 | uint32_t count; |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | |
| 193 | BOOST_FIXTURE_TEST_CASE(CancelAll, CancelAllFixture) |
| 194 | { |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 195 | scheduler.scheduleEvent(time::milliseconds(500), [&] { scheduler.cancelAllEvents(); }); |
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(1), [&] { event(); }); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 198 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 199 | scheduler.scheduleEvent(time::seconds(3), [] { |
| 200 | BOOST_ERROR("This event should have been cancelled" ); |
| 201 | }); |
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 | advanceClocks(time::milliseconds(100), 100); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 204 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 205 | BOOST_CHECK_EQUAL(count, 0); |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 206 | } |
| 207 | |
Spyridon Mastorakis | 429634f | 2015-02-19 17:35:33 -0800 | [diff] [blame^] | 208 | class ScopedEventFixture : public UnitTestTimeFixture |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame] | 209 | { |
| 210 | public: |
| 211 | ScopedEventFixture() |
| 212 | : scheduler(io) |
| 213 | { |
| 214 | } |
Alexander Afanasyev | 7ae4bf5 | 2014-07-11 17:12:41 -0700 | [diff] [blame] | 215 | |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame] | 216 | public: |
| 217 | Scheduler scheduler; |
| 218 | }; |
| 219 | |
| 220 | BOOST_FIXTURE_TEST_SUITE(ScopedEvents, ScopedEventFixture) |
| 221 | |
| 222 | BOOST_AUTO_TEST_CASE(ScopedEventIdDestruct) |
| 223 | { |
| 224 | int hit = 0; |
| 225 | { |
| 226 | ScopedEventId se(scheduler); |
| 227 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 228 | } // se goes out of scope |
| 229 | this->advanceClocks(time::milliseconds(1), 15); |
| 230 | BOOST_CHECK_EQUAL(hit, 0); |
| 231 | } |
| 232 | |
| 233 | BOOST_AUTO_TEST_CASE(ScopedEventIdAssign) |
| 234 | { |
| 235 | int hit1 = 0, hit2 = 0; |
| 236 | ScopedEventId se1(scheduler); |
| 237 | se1 = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit1; }); |
| 238 | se1 = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit2; }); |
| 239 | this->advanceClocks(time::milliseconds(1), 15); |
| 240 | BOOST_CHECK_EQUAL(hit1, 0); |
| 241 | BOOST_CHECK_EQUAL(hit2, 1); |
| 242 | } |
| 243 | |
| 244 | BOOST_AUTO_TEST_CASE(ScopedEventIdRelease) |
| 245 | { |
| 246 | int hit = 0; |
| 247 | { |
| 248 | ScopedEventId se(scheduler); |
| 249 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 250 | se.release(); |
| 251 | } // se goes out of scope |
| 252 | this->advanceClocks(time::milliseconds(1), 15); |
| 253 | BOOST_CHECK_EQUAL(hit, 1); |
| 254 | } |
| 255 | |
| 256 | BOOST_AUTO_TEST_CASE(ScopedEventIdMove) |
| 257 | { |
| 258 | int hit = 0; |
| 259 | unique_ptr<scheduler::ScopedEventId> se2; |
| 260 | { |
| 261 | ScopedEventId se(scheduler); |
| 262 | se = scheduler.scheduleEvent(time::milliseconds(10), [&] { ++hit; }); |
| 263 | se2.reset(new ScopedEventId(std::move(se))); |
| 264 | } // se goes out of scope |
| 265 | this->advanceClocks(time::milliseconds(1), 15); |
| 266 | BOOST_CHECK_EQUAL(hit, 1); |
| 267 | } |
| 268 | |
| 269 | BOOST_AUTO_TEST_SUITE_END() // ScopedEventId |
| 270 | |
| 271 | BOOST_AUTO_TEST_SUITE_END() // UtilTestScheduler |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 272 | |
Alexander Afanasyev | d3a55b2 | 2014-11-18 19:23:28 -0800 | [diff] [blame] | 273 | } // namespace tests |
Alexander Afanasyev | 9a9952f | 2015-01-28 19:06:48 -0800 | [diff] [blame] | 274 | } // namespace scheduler |
| 275 | } // namespace util |
Alexander Afanasyev | f646889 | 2014-01-29 01:04:14 -0800 | [diff] [blame] | 276 | } // namespace ndn |