BIND 10 trac1016, updated. 535a401494dd268de77cccfaba68cacbaa1b2a6e [trac1016] Trivial editorial cleanups
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 7 14:01:57 UTC 2011
The branch, trac1016 has been updated
via 535a401494dd268de77cccfaba68cacbaa1b2a6e (commit)
from cb8f695c11b2a6e5402ca58fabcc8a17800177ee (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 535a401494dd268de77cccfaba68cacbaa1b2a6e
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Jul 7 16:01:22 2011 +0200
[trac1016] Trivial editorial cleanups
-----------------------------------------------------------------------
Summary of changes:
src/lib/asiolink/tests/interval_timer_unittest.cc | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/asiolink/tests/interval_timer_unittest.cc b/src/lib/asiolink/tests/interval_timer_unittest.cc
index 51c74f2..420cb90 100644
--- a/src/lib/asiolink/tests/interval_timer_unittest.cc
+++ b/src/lib/asiolink/tests/interval_timer_unittest.cc
@@ -28,7 +28,7 @@ const boost::posix_time::time_duration TIMER_MARGIN_MSEC =
using namespace isc::asiolink;
-// This fixture is for testing IntervalTimer. Some callback functors are
+// This fixture is for testing IntervalTimer. Some callback functors are
// registered as callback function of the timer to test if they are called
// or not.
class IntervalTimerTest : public ::testing::Test {
@@ -50,7 +50,9 @@ protected:
};
class TimerCallBackCounter : public std::unary_function<void, void> {
public:
- TimerCallBackCounter(IntervalTimerTest* test_obj) : test_obj_(test_obj) {
+ TimerCallBackCounter(IntervalTimerTest* test_obj) :
+ test_obj_(test_obj)
+ {
counter_ = 0;
}
void operator()() {
@@ -169,13 +171,13 @@ TEST_F(IntervalTimerTest, startIntervalTimer) {
// delta: difference between elapsed time and 100 milliseconds.
boost::posix_time::time_duration test_runtime =
boost::posix_time::microsec_clock::universal_time() - start;
- EXPECT_FALSE(test_runtime.is_negative()) <<
- "test duration " << test_runtime <<
+ EXPECT_FALSE(test_runtime.is_negative()) <<
+ "test duration " << test_runtime <<
" negative - clock skew?";
// Expect TimerCallBack is called; timer_called_ is true
EXPECT_TRUE(timer_called_);
// Expect test_runtime is 100 milliseconds or longer.
- EXPECT_TRUE(test_runtime > boost::posix_time::milliseconds(100)) <<
+ EXPECT_TRUE(test_runtime > boost::posix_time::milliseconds(100)) <<
"test runtime " << test_runtime.total_milliseconds() <<
"msec " << ">= 100";
}
More information about the bind10-changes
mailing list