Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/BaseJsTest.cpp

Issue 29435645: Issue 4688 - stop using of LazyWebRequest in tests/UpdateCheck.cpp (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 10, 2017, 4:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/BaseJsTest.h ('k') | test/UpdateCheck.cpp » ('j') | test/UpdateCheck.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « test/BaseJsTest.h ('k') | test/UpdateCheck.cpp » ('j') | test/UpdateCheck.cpp » ('J')

Powered by Google App Engine
This is Rietveld