Index: test/BaseJsTest.cpp |
diff --git a/test/BaseJsTest.cpp b/test/BaseJsTest.cpp |
index c632ca186a0dd7d3da51edbc63d7858979aa49be..2dedd79ad5353e6aed84716fc82f725d35f67983 100644 |
--- a/test/BaseJsTest.cpp |
+++ b/test/BaseJsTest.cpp |
@@ -17,6 +17,21 @@ |
#include "BaseJsTest.h" |
+void DelayedTimer::ProcessImmediateTimers(DelayedTimer::SharedTasks& timerTasks) |
+{ |
+ auto ii = timerTasks->begin(); |
+ while (ii != timerTasks->end()) |
+ { |
+ if (ii->timeout.count() == 0) |
+ { |
+ ii->callback(); |
+ ii = timerTasks->erase(ii); |
+ } |
+ else |
+ ++ii; |
+ } |
+} |
+ |
JsEngineCreationParameters::JsEngineCreationParameters() |
: logSystem(std::make_shared<ThrowingLogSystem>()) |
, timer(new ThrowingTimer()) |