organicmaps/map/map_tests/framework_light_tests.cpp
Alexander Borsuk 2fcd601b88 [core][ios] Cleaned up Booking, guides, ugc, taxi
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-04-22 08:11:07 +03:00

32 lines
658 B
C++

#include "testing/testing.hpp"
#include "map/framework_light.hpp"
namespace lightweight
{
struct LightFrameworkTest
{
static void SmokeTest()
{
{
Framework f(REQUEST_TYPE_USER_AUTH_STATUS);
f.m_userAuthStatus = true;
TEST(f.IsUserAuthenticated(), ());
}
{
Framework f(REQUEST_TYPE_USER_AUTH_STATUS |
REQUEST_TYPE_NUMBER_OF_UNSENT_EDITS);
f.m_numberOfUnsentEdits = 10;
TEST_EQUAL(f.GetNumberOfUnsentEdits(), 10, ());
TEST(!f.IsUserAuthenticated(), ());
}
}
};
} // namespace lightweight
UNIT_TEST(LightFramework_Smoke)
{
lightweight::LightFrameworkTest::SmokeTest();
}