From 4755818efb01787b7098bd17946fa85686aeeee5 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 25 Sep 2018 15:18:14 -0700 Subject: utility/timer: Callback should pass in the timer This makes the timer better resemble the other source types, and makes it easier to access timer properties from the callback. Since we do not yet have any committed users of this API it is safe to change it. Tested: Unit tests were run and builds work fine. Change-Id: I9ecb24a20bc822b2ab55900e47a7cae834ba873d Signed-off-by: William A. Kennington III --- test/utility/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utility/timer.cpp') diff --git a/test/utility/timer.cpp b/test/utility/timer.cpp index c919f7e..414ad82 100644 --- a/test/utility/timer.cpp +++ b/test/utility/timer.cpp @@ -91,7 +91,7 @@ class TimerTest : public testing::Test .WillRepeatedly(DoAll(EventUnref(), Return(nullptr))); Event event(expected_event, &mock); - auto runCallback = [&]() { + auto runCallback = [&](TestTimer&) { if (callback) { callback(); -- cgit v1.2.3