Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2017-03-02 20:05:35 +0300
committerGitHub <noreply@github.com>2017-03-02 20:05:35 +0300
commit1ffc0f0a5fdeef843457a9668c88f6abd93303f7 (patch)
treef1f1855389cbe16a7f3c464c75339cac47a1ce28
parent85b2c88def832512b9be5a1e3c3948fbcccd9437 (diff)
parent766d0e1550d03c201119ce4bc24c3a06f5f69e7b (diff)
Merge pull request #5506 from milchakov/booking_extended_info_testsbeta-658
Enable booking extended info tests
-rw-r--r--partners_api/partners_api_tests/booking_tests.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/partners_api/partners_api_tests/booking_tests.cpp b/partners_api/partners_api_tests/booking_tests.cpp
index d8b2d41884..e6ceb6b02f 100644
--- a/partners_api/partners_api_tests/booking_tests.cpp
+++ b/partners_api/partners_api_tests/booking_tests.cpp
@@ -16,10 +16,10 @@ UNIT_TEST(Booking_GetHotelAvailability)
UNIT_TEST(Booking_GetExtendedInfo)
{
-// Test hotel is not implemented yet.
-// string result;
-// TEST(booking::RawApi::GetExtendedInfo(kHotelId, "", result), ());
-// TEST(!result.empty(), ());
+ string const kHotelId = "0000000"; // Internal hotel id for testing.
+ string result;
+ TEST(booking::RawApi::GetExtendedInfo(kHotelId, "en", result), ());
+ TEST(!result.empty(), ());
}
UNIT_TEST(Booking_GetMinPrice)
@@ -89,21 +89,21 @@ UNIT_TEST(Booking_GetMinPrice)
UNIT_TEST(GetHotelInfo)
{
-// Test hotel is not implemented yet.
-// booking::Api api;
-// booking::HotelInfo info;
+ string const kHotelId = "0000000"; // Internal hotel id for testing.
+ booking::Api api;
+ booking::HotelInfo info;
-// api.GetHotelInfo(kHotelId, "en", [&info](booking::HotelInfo const & i)
-// {
-// info = i;
-// testing::StopEventLoop();
-// });
-// testing::RunEventLoop();
+ api.GetHotelInfo(kHotelId, "en", [&info](booking::HotelInfo const & i)
+ {
+ info = i;
+ testing::StopEventLoop();
+ });
+ testing::RunEventLoop();
-// TEST_EQUAL(info.m_hotelId, kHotelId, ());
-// TEST(!info.m_description.empty(), ());
-// TEST_EQUAL(info.m_photos.size(), 5, ());
-// TEST_EQUAL(info.m_facilities.size(), 3, ());
-// TEST_EQUAL(info.m_reviews.size(), 12, ());
+ TEST_EQUAL(info.m_hotelId, kHotelId, ());
+ TEST(!info.m_description.empty(), ());
+ TEST_EQUAL(info.m_photos.size(), 2, ());
+ TEST_EQUAL(info.m_facilities.size(), 7, ());
+ TEST_EQUAL(info.m_reviews.size(), 4, ());
}
}