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:
authorSergey Yershov <syershov@maps.me>2016-10-28 13:00:29 +0300
committerSergey Yershov <syershov@maps.me>2016-10-28 13:00:29 +0300
commit971b3d39f69bd33f9d9010e2afb878933928c83e (patch)
tree8e7565c93f0d9dbe9a834e2ec8f8a9839bd09aa1 /tracking/tracking_tests
parent9f0137188b8179f41175624d8191a5af0502155e (diff)
Fix tracking and tests
Diffstat (limited to 'tracking/tracking_tests')
-rw-r--r--tracking/tracking_tests/reporter_test.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tracking/tracking_tests/reporter_test.cpp b/tracking/tracking_tests/reporter_test.cpp
index bdd47a60a5..f636a72a97 100644
--- a/tracking/tracking_tests/reporter_test.cpp
+++ b/tracking/tracking_tests/reporter_test.cpp
@@ -70,6 +70,22 @@ void TransferLocation(Reporter & reporter, TestSocket & testSocket, double times
}
}
+UNIT_TEST(Reporter_Smoke)
+{
+ {
+ unique_ptr<platform::Socket> socket;
+ Reporter reporter(move(socket), "localhost", 0, milliseconds(10) /* pushDelay */);
+ }
+ {
+ auto socket = make_unique<TestSocket>();
+ Reporter reporter(move(socket), "localhost", 0, milliseconds(10) /* pushDelay */);
+ }
+ {
+ auto socket = platform::CreateSocket();
+ Reporter reporter(move(socket), "localhost", 0, milliseconds(10) /* pushDelay */);
+ }
+}
+
UNIT_TEST(Reporter_TransferLocations)
{
auto socket = make_unique<TestSocket>();