core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
#include <condition_variable>
|
||||
#include <thread>
|
||||
|
||||
using namespace mbgl::util;
|
||||
using namespace mln::util;
|
||||
|
||||
TEST(RunLoop, Stop) {
|
||||
RunLoop loop(RunLoop::Type::New);
|
||||
|
||||
Timer timer;
|
||||
timer.start(mbgl::Duration::zero(), mbgl::Duration::zero(), [&] { loop.stop(); });
|
||||
timer.start(mln::Duration::zero(), mln::Duration::zero(), [&] { loop.stop(); });
|
||||
|
||||
loop.run();
|
||||
}
|
||||
@@ -22,7 +22,7 @@ TEST(RunLoop, MultipleStop) {
|
||||
RunLoop loop(RunLoop::Type::New);
|
||||
|
||||
Timer timer;
|
||||
timer.start(mbgl::Duration::zero(), mbgl::Duration::zero(), [&] {
|
||||
timer.start(mln::Duration::zero(), mln::Duration::zero(), [&] {
|
||||
loop.stop();
|
||||
loop.stop();
|
||||
loop.stop();
|
||||
@@ -36,12 +36,12 @@ TEST(RunLoop, MultipleRun) {
|
||||
RunLoop loop(RunLoop::Type::New);
|
||||
|
||||
Timer timer;
|
||||
timer.start(mbgl::Duration::zero(), mbgl::Duration::zero(), [&] { loop.stop(); });
|
||||
timer.start(mln::Duration::zero(), mln::Duration::zero(), [&] { loop.stop(); });
|
||||
|
||||
loop.run();
|
||||
|
||||
bool secondTimeout = false;
|
||||
timer.start(mbgl::Duration::zero(), mbgl::Duration::zero(), [&] {
|
||||
timer.start(mln::Duration::zero(), mln::Duration::zero(), [&] {
|
||||
secondTimeout = true;
|
||||
loop.stop();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user