summaryrefslogtreecommitdiffstats
path: root/test/utility/timer.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-18 01:12:09 -0700
committerWilliam A. Kennington III <wak@google.com>2018-10-18 01:15:03 -0700
commit27b7301a3a18f5b8a77363f0f087d0cff960e9ff (patch)
treeafb994958a9065a1ce9ead70a494ca04ebff9025 /test/utility/timer.cpp
parentc07ddb5ad6179eda358b3bb5362609b65eafd108 (diff)
downloadsdeventplus-27b7301a3a18f5b8a77363f0f087d0cff960e9ff.tar.gz
sdeventplus-27b7301a3a18f5b8a77363f0f087d0cff960e9ff.zip
utility/timer: Make it possible to get the Event
Other event sources expose the ability to get th event used for constructing the source. Since our timer is basically just a time source, we should be able to trivially get the event object. Tested: Built and run through unit tests Change-Id: I4b4192797652a903cba90d6e73771014df7702d6 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test/utility/timer.cpp')
-rw-r--r--test/utility/timer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/utility/timer.cpp b/test/utility/timer.cpp
index a329287..6d5dff0 100644
--- a/test/utility/timer.cpp
+++ b/test/utility/timer.cpp
@@ -136,6 +136,7 @@ class TimerTest : public testing::Test
SaveArg<5>(&handler), Return(0)));
expectSetEnabled(source::Enabled::On);
timer = std::make_unique<TestTimer>(*event, runCallback, interval);
+ EXPECT_EQ(expected_event, timer->get_event().get());
}
void TearDown()
OpenPOWER on IntegriCloud