summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-15 16:36:56 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-16 12:48:50 -0800
commitd66d145c6e90dabe442c384fe2a10aef4f0a4fbb (patch)
tree9332e0ab1e826478d52631cceab901a5e60821f5 /test/util
parent5ca625ba0dccc60bc3ad83fdea74a2406b3dd447 (diff)
downloadqtlocation-mapboxgl-d66d145c6e90dabe442c384fe2a10aef4f0a4fbb.tar.gz
[core] Remove RunLoop::{ref,unref}
Diffstat (limited to 'test/util')
-rw-r--r--test/util/run_loop.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/util/run_loop.cpp b/test/util/run_loop.cpp
index f00f7248b5..b6e5acca09 100644
--- a/test/util/run_loop.cpp
+++ b/test/util/run_loop.cpp
@@ -29,47 +29,3 @@ TEST(RunLoop, MultipleStop) {
loop.run();
}
-
-TEST(RunLoop, UnrefShouldStop) {
- RunLoop loop(RunLoop::Type::New);
-
- Timer timer;
- timer.start(mbgl::Duration::zero(), mbgl::Duration::zero(), [&] {
- loop.unref();
- });
-
- loop.run();
-}
-
-TEST(RunLoop, RefUnref) {
- RunLoop loop(RunLoop::Type::New);
-
- Timer timer;
- auto zero = mbgl::Duration::zero();
-
- auto cb3 = [&] {
- loop.stop();
- };
-
- auto cb2 = [&] {
- loop.unref();
- loop.unref();
-
- loop.ref();
-
- timer.start(zero, zero, cb3);
- };
-
- auto cb1 = [&] {
- loop.ref();
- loop.ref();
-
- loop.unref();
-
- timer.start(zero, zero, cb2);
- };
-
- timer.start(zero, zero, cb1);
-
- loop.run();
-}