util: add literal operators for duration types
Change-Id: I007fa61c80e535c6e4b12e85a32eeeee62fecc3c
Refs: #4468
diff --git a/tests/unit-tests/util/dummy-client-face.t.cpp b/tests/unit-tests/util/dummy-client-face.t.cpp
index 8469d59..5308e28 100644
--- a/tests/unit-tests/util/dummy-client-face.t.cpp
+++ b/tests/unit-tests/util/dummy-client-face.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2013-2017 Regents of the University of California.
+ * Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -37,11 +37,11 @@
bool isOverrideInvoked = false;
auto override = [&] (time::milliseconds timeout) {
isOverrideInvoked = true;
- BOOST_CHECK_EQUAL(timeout, time::milliseconds(200));
+ BOOST_CHECK_EQUAL(timeout, 200_ms);
};
DummyClientFace face(io, {false, false, override});
- face.processEvents(time::milliseconds(200));
+ face.processEvents(200_ms);
BOOST_CHECK(isOverrideInvoked);
}
@@ -67,7 +67,7 @@
return;
}, nullptr, nullptr);
- advanceClocks(time::milliseconds(25), 4);
+ advanceClocks(25_ms, 4);
int nFace1Data = 0;
int nFace2Nack = 0;
@@ -85,7 +85,7 @@
nFace2Nack++;
}, nullptr);
- advanceClocks(time::milliseconds(10), 100);
+ advanceClocks(10_ms, 100);
BOOST_CHECK_EQUAL(nFace1Data, 1);
BOOST_CHECK_EQUAL(nFace2Nack, 1);