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:
authorYuri Gorshenin <y@mmaps.me>2015-04-03 16:43:13 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:41:36 +0300
commit90cd2f8c9a70e810b3b93931538ae1693d75bb54 (patch)
tree1721dbbaf7962449ed2eb94f0c2a75ba4673fc75 /indexer/indexer_tests/index_test.cpp
parent7e21339eacb8154fee47c51baa60ee2c716f49e6 (diff)
Fixed constantness.
Diffstat (limited to 'indexer/indexer_tests/index_test.cpp')
-rw-r--r--indexer/indexer_tests/index_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/indexer_tests/index_test.cpp b/indexer/indexer_tests/index_test.cpp
index 288eddaa11..542e186a66 100644
--- a/indexer/indexer_tests/index_test.cpp
+++ b/indexer/indexer_tests/index_test.cpp
@@ -102,7 +102,7 @@ UNIT_TEST(Index_MwmStatusNotifications)
// Checks that observers are triggered after map registration.
{
- pair<MwmSet::MwmLock, bool> p = index.RegisterMap(testMapName);
+ pair<MwmSet::MwmLock, bool> const p = index.RegisterMap(testMapName);
TEST(p.first.IsLocked(), ());
TEST(p.second, ());
TEST_EQUAL(1, observer.map_registered_calls(), ());
@@ -111,7 +111,7 @@ UNIT_TEST(Index_MwmStatusNotifications)
// Checks that map can't registered twice and observers aren't
// triggered.
{
- pair<MwmSet::MwmLock, bool> p = index.RegisterMap(testMapName);
+ pair<MwmSet::MwmLock, bool> const p = index.RegisterMap(testMapName);
TEST(p.first.IsLocked(), ());
TEST(!p.second, ());
TEST_EQUAL(1, observer.map_registered_calls(), ());
@@ -124,7 +124,7 @@ UNIT_TEST(Index_MwmStatusNotifications)
{
TEST_EQUAL(0, observer.map_update_is_ready_calls(), ());
TEST_EQUAL(0, observer.map_updated_calls(), ());
- pair<MwmSet::MwmLock, Index::UpdateStatus> p = index.UpdateMap(testMapName);
+ pair<MwmSet::MwmLock, Index::UpdateStatus> const p = index.UpdateMap(testMapName);
TEST(p.first.IsLocked(), ());
TEST_EQUAL(Index::UPDATE_STATUS_OK, p.second, ());
TEST_EQUAL(1, observer.map_update_is_ready_calls(), ());
@@ -134,7 +134,7 @@ UNIT_TEST(Index_MwmStatusNotifications)
// Tries to delete map in presence of active lock. Map should be
// marked "to be removed" but can't be deleted.
{
- MwmSet::MwmLock lock(index, testMapName);
+ MwmSet::MwmLock const lock(index, testMapName);
TEST(lock.IsLocked(), ());
TEST(!index.DeleteMap(testMapName), ());