forked from organicmaps/organicmaps
[routing] Fix tests
This commit is contained in:
parent
0eba1a010e
commit
ed89224cd1
1 changed files with 3 additions and 0 deletions
|
@ -229,6 +229,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestRouteRebuildingMovingA
|
|||
GetPlatform().RunTask(Platform::Thread::Gui, [&checkTimedSignal, &info, this]() {
|
||||
info.m_longitude = 0.;
|
||||
info.m_latitude = 1.;
|
||||
info.m_speedMpS = routing::KMPH2MPS(60);
|
||||
SessionState code = SessionState::RoutingNotActive;
|
||||
for (size_t i = 0; i < 10; ++i)
|
||||
{
|
||||
|
@ -274,6 +275,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestRouteRebuildingMovingT
|
|||
GetPlatform().RunTask(Platform::Thread::Gui, [&checkTimedSignalAway, &info, this]() {
|
||||
info.m_longitude = 0.0;
|
||||
info.m_latitude = 0.0;
|
||||
info.m_speedMpS = routing::KMPH2MPS(60);
|
||||
SessionState code = SessionState::RoutingNotActive;
|
||||
{
|
||||
SessionStateTest sessionStateTest(
|
||||
|
@ -352,6 +354,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestFollowRouteFlagPersist
|
|||
TEST(m_session->IsFollowing(), ());
|
||||
info.m_longitude = 0.;
|
||||
info.m_latitude = 1.;
|
||||
info.m_speedMpS = routing::KMPH2MPS(60);
|
||||
SessionState code = SessionState::RoutingNotActive;
|
||||
for (size_t i = 0; i < 10; ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue