summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-06 17:35:01 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-07-06 17:43:09 +0300
commit2425cf4ef839bbeec82403ea0bf8b74e68ca0ac8 (patch)
tree7ac6197fd6c1515492d9448c01b6969a446ffa6c /test
parent99a4850613931059174ecf0c6a41af4690481e3a (diff)
downloadqtlocation-mapboxgl-2425cf4ef839bbeec82403ea0bf8b74e68ca0ac8.tar.gz
Revert "[android] Do not create Timers on Default main loops"
This reverts commit 13cd75f099c92b6f0862db00eee8ff4a78a73316.
Diffstat (limited to 'test')
-rw-r--r--test/util/timer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/util/timer.cpp b/test/util/timer.cpp
index c37440ed40..f6253ab6d3 100644
--- a/test/util/timer.cpp
+++ b/test/util/timer.cpp
@@ -10,7 +10,7 @@
using namespace mbgl::util;
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Basic)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
Timer timer;
@@ -34,7 +34,7 @@ TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Basic)) {
}
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Repeat)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
Timer timer;
@@ -60,7 +60,7 @@ TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Repeat)) {
}
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Stop)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
Timer timer1;
Timer timer2;
@@ -96,7 +96,7 @@ TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(Stop)) {
}
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(DestroyShouldStop)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
auto timer1 = std::make_unique<Timer>();
Timer timer2;
@@ -132,7 +132,7 @@ TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(DestroyShouldStop)) {
}
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(StartOverrides)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
Timer timer;
@@ -166,7 +166,7 @@ TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(StartOverrides)) {
}
TEST(Timer, TEST_REQUIRES_ACCURATE_TIMING(CanStopNonStartedTimer)) {
- RunLoop loop(RunLoop::Type::New);
+ RunLoop loop;
Timer timer;
timer.stop();