[booking] tests are unified + sponsored search mode + fix xcode build

This commit is contained in:
Arsentiy Milchakov 2017-11-14 15:24:18 +03:00 committed by Yuri Gorshenin
parent 19e5ece8cd
commit 1c214d57ce
14 changed files with 95 additions and 146 deletions

View file

@ -65,7 +65,7 @@ public:
// Sends a signal to the thread to shut down and waits for completion.
void ShutdownAndJoin();
static TimePoint Now() const { return Clock::now(); }
static TimePoint Now() { return Clock::now(); }
private:
enum QueueType

View file

@ -73,6 +73,7 @@ bool TestFeature::Matches(FeatureType const & feature) const
void TestFeature::Serialize(FeatureBuilder1 & fb) const
{
using feature::Metadata;
// Metadata::EType::FMD_CUISINE is the first enum value.
size_t i = static_cast<size_t>(Metadata::EType::FMD_CUISINE);
size_t const count = static_cast<size_t>(Metadata::EType::FMD_COUNT);
for (; i < count; ++i)

View file

@ -1,36 +0,0 @@
#include "indexer/indexer_tests_support/test_mwm_environment.hpp"
#include <indexer/classificator_loader.hpp>
namespace indexer
{
namespace tests_support
{
TestMwmEnvironment::TestMwmEnvironment() { classificator::Load(); }
TestMwmEnvironment::~TestMwmEnvironment()
{
for (auto const & file : m_mwmFiles)
Cleanup(file);
}
void TestMwmEnvironment::Cleanup(platform::LocalCountryFile const & map)
{
platform::CountryIndexes::DeleteFromDisk(map);
map.DeleteFromDisk(MapOptions::Map);
}
bool TestMwmEnvironment::RemoveMwm(MwmSet::MwmId const & mwmId)
{
auto const & file = mwmId.GetInfo()->GetLocalFile();
auto const it = find(m_mwmFiles.begin(), m_mwmFiles.end(), file);
if (it == m_mwmFiles.end())
return false;
Cleanup(*it);
m_mwmFiles.erase(it);
return true;
}
} // namespace tests_support
} // namespace indexer

View file

@ -1,83 +0,0 @@
#pragma once
#include "generator/generator_tests_support/test_feature.hpp"
#include "generator/generator_tests_support/test_mwm_builder.hpp"
#include "platform/local_country_file_utils.hpp"
#include "storage/country_info_getter.hpp"
#include <indexer/index.hpp>
#include <vector>
namespace indexer
{
namespace tests_support
{
class TestMwmEnvironment
{
public:
using MwmList = std::vector<platform::LocalCountryFile>;
TestMwmEnvironment();
~TestMwmEnvironment();
template <typename TBuildFn>
MwmSet::MwmId BuildMwm(string const & name, TBuildFn && fn, int64_t version = 0)
{
m_mwmFiles.emplace_back(GetPlatform().WritableDir(), platform::CountryFile(name), version);
auto & file = m_mwmFiles.back();
Cleanup(file);
{
generator::tests_support::TestMwmBuilder builder(file, feature::DataHeader::country);
fn(builder);
}
auto result = m_index.RegisterMap(file);
CHECK_EQUAL(result.second, MwmSet::RegResult::Success, ());
auto const & id = result.first;
auto const & info = id.GetInfo();
if (info)
m_infoGetter.AddCountry(storage::CountryDef(name, info->m_limitRect));
CHECK(id.IsAlive(), ());
return id;
}
template <typename Checker>
FeatureID FeatureIdForPoint(m2::PointD const & mercator, Checker const & checker)
{
m2::RectD const rect =
MercatorBounds::RectByCenterXYAndSizeInMeters(mercator, 0.2 /* rect width */);
FeatureID id;
auto const fn = [&id, &checker](FeatureType const & featureType)
{
if (checker(featureType))
id = featureType.GetID();
};
m_index.ForEachInRect(fn, rect, scales::GetUpperScale());
CHECK(id.IsValid(), ());
return id;
}
void Cleanup(platform::LocalCountryFile const & map);
bool RemoveMwm(MwmSet::MwmId const & mwmId);
Index & GetIndex() { return m_index; }
Index const & GetIndex() const { return m_index; }
MwmList & GetMwms() { return m_mwmFiles; }
MwmList const & GetMwms() const { return m_mwmFiles; }
private:
Index m_index;
storage::CountryInfoGetterForTesting m_infoGetter;
MwmList m_mwmFiles;
};
} // namespace tests_support
} // namespace indexer

View file

@ -69,6 +69,9 @@ public:
return BuildMwm(name, feature::DataHeader::country, std::forward<BuildFn>(fn));
}
Index & GetIndex() { return m_index; }
Index const & GetIndex() const { return m_index; }
protected:
static void Cleanup(platform::LocalCountryFile const & file);

View file

@ -6,6 +6,8 @@
#include "indexer/index.hpp"
#include "platform/platform.hpp"
#include <algorithm>
#include <utility>
#include <vector>
@ -134,7 +136,7 @@ Filter::Filter(Index const & index, booking::Api const & api) : m_index(index),
void Filter::Availability(search::Results const & results,
availability::internal::Params && params)
{
m_filterThread.Push([this, results, params]()
GetPlatform().RunTask(Platform::Thread::File, [this, results, params]()
{
std::lock_guard<std::mutex> lock(m_mutex);

View file

@ -36,8 +36,6 @@ private:
// |m_cacheDropCounter| and |m_currentParams| are used to identify request actuality.
uint32_t m_cacheDropCounter = {};
AvailabilityParams m_currentParams;
base::WorkerThread m_filterThread;
};
} // namespace filter
} // namespace booking

View file

@ -1576,7 +1576,7 @@ void Framework::FillSearchResultsMarks(search::Results::ConstIter begin,
}
// TODO: delete me after Cian project is finished.
if (GetSearchAPI().IsCianSearchMode())
if (GetSearchAPI().GetSponsoredMode() == SearchAPI::SponsoredMode::Cian)
{
mark->SetMarkType(SearchMarkType::Cian);
continue;
@ -1585,8 +1585,8 @@ void Framework::FillSearchResultsMarks(search::Results::ConstIter begin,
if (r.m_metadata.m_isSponsoredHotel)
mark->SetMarkType(SearchMarkType::Booking);
//TODO: set mark in preparing state if some async filter will be applied.
//mark->SetPreparing(true);
if (GetSearchAPI().GetSponsoredMode() == SearchAPI::SponsoredMode::Booking)
mark->SetPreparing(true);
}
}
@ -3330,7 +3330,7 @@ void Framework::FilterSearchResultsOnBooking(booking::filter::availability::Para
std::sort(features.begin(), features.end());
GetPlatform().RunOnGuiThread([this, features]()
GetPlatform().RunTask(Platform::Thread::Gui, [this, features]()
{
m_searchMarks.SetPreparingState(features, false);
});

View file

@ -1,7 +1,7 @@
#include "testing/testing.hpp"
#include "generator/generator_tests_support/test_feature.hpp"
#include "indexer/indexer_tests_support/test_mwm_environment.hpp"
#include "indexer/indexer_tests_support/test_with_custom_mwms.hpp"
#include "map/booking_filter.hpp"
@ -11,6 +11,8 @@
#include "indexer/feature_meta.hpp"
#include "storage/country_info_getter.hpp"
#include "base/scope_guard.hpp"
#include <utility>
@ -20,9 +22,21 @@ using namespace generator::tests_support;
namespace
{
class TestMwmEnvironment : public indexer::tests_support::TestWithCustomMwms
{
protected:
void OnMwmBuilt(MwmInfo const & info) override
{
m_infoGetter.AddCountry(storage::CountryDef(info.GetCountryName(), info.m_limitRect));
}
private:
storage::CountryInfoGetterForTesting m_infoGetter;
};
UNIT_TEST(BookingFilter_AvailabilitySmoke)
{
indexer::tests_support::TestMwmEnvironment env;
TestMwmEnvironment env;
booking::Api api;
Filter filter(env.GetIndex(), api);
@ -31,7 +45,7 @@ UNIT_TEST(BookingFilter_AvailabilitySmoke)
std::vector<std::string> const kHotelIds = {"10623", "10624", "10625"};
env.BuildMwm("TestMwm", [&kHotelIds](TestMwmBuilder & builder)
env.BuildCountry("TestMwm", [&kHotelIds](TestMwmBuilder & builder)
{
TestPOI hotel1(m2::PointD(1.0, 1.0), "hotel 1", "en");
hotel1.GetMetadata().Set(feature::Metadata::FMD_SPONSORED_ID, kHotelIds[0]);

View file

@ -76,6 +76,12 @@ void SearchAPI::OnViewportChanged(m2::RectD const & viewport)
bool SearchAPI::SearchEverywhere(EverywhereSearchParams const & params)
{
// TODO: delete me after Cian project is finished.
if (IsCianMode(params.m_query))
m_sponsoredMode = SponsoredMode::Cian;
else if (!params.m_bookingFilterParams.IsEmpty())
m_sponsoredMode = SponsoredMode::Booking;
SearchParams p;
p.m_query = params.m_query;
p.m_inputLocale = params.m_inputLocale;
@ -87,7 +93,7 @@ bool SearchAPI::SearchEverywhere(EverywhereSearchParams const & params)
p.m_needAddress = true;
p.m_needHighlighting = true;
p.m_hotelsFilter = params.m_hotelsFilter;
p.m_cianMode = IsCianMode(params.m_query);
p.m_cianMode = m_sponsoredMode == SponsoredMode::Cian;
p.m_onResults = EverywhereSearchCallback(
static_cast<EverywhereSearchCallback::Delegate &>(*this),
@ -109,7 +115,10 @@ bool SearchAPI::SearchEverywhere(EverywhereSearchParams const & params)
bool SearchAPI::SearchInViewport(ViewportSearchParams const & params)
{
// TODO: delete me after Cian project is finished.
m_cianSearchMode = IsCianMode(params.m_query);
if (IsCianMode(params.m_query))
m_sponsoredMode = SponsoredMode::Cian;
else if (!params.m_bookingFilterParams.IsEmpty())
m_sponsoredMode = SponsoredMode::Booking;
SearchParams p;
p.m_query = params.m_query;
@ -122,7 +131,7 @@ bool SearchAPI::SearchInViewport(ViewportSearchParams const & params)
p.m_needAddress = false;
p.m_needHighlighting = false;
p.m_hotelsFilter = params.m_hotelsFilter;
p.m_cianMode = m_cianSearchMode;
p.m_cianMode = m_sponsoredMode == SponsoredMode::Cian;
p.m_onStarted = [this, params] {
if (params.m_onStarted)
@ -181,8 +190,7 @@ void SearchAPI::CancelSearch(Mode mode)
if (mode == Mode::Viewport)
{
// TODO: delete me after Cian project is finished.
m_cianSearchMode = false;
m_sponsoredMode = SponsoredMode::None;
m_delegate.ClearViewportSearchResults();
m_delegate.SetSearchDisplacementModeEnabled(false /* enabled */);

View file

@ -46,6 +46,14 @@ class SearchAPI : public search::DownloaderSearchCallback::Delegate,
public search::ViewportSearchCallback::Delegate
{
public:
enum SponsoredMode
{
None,
// TODO (@y, @m): delete me after Cian project is finished.
Cian,
Booking
};
struct Delegate
{
virtual ~Delegate() = default;
@ -83,7 +91,7 @@ public:
void LoadCitiesBoundaries() { m_engine.LoadCitiesBoundaries(); }
bool IsCianSearchMode() const { return m_cianSearchMode; }
SponsoredMode GetSponsoredMode() const { return m_sponsoredMode; }
// Search everywhere.
bool SearchEverywhere(search::EverywhereSearchParams const & params);
@ -146,6 +154,5 @@ private:
m2::RectD m_viewport;
bool m_isViewportInitialized = false;
// TODO (@y, @m): delete me after Cian project is finished.
bool m_cianSearchMode = false;
SponsoredMode m_sponsoredMode = SponsoredMode::None;
};

View file

@ -42,6 +42,10 @@
34AF87E61DBE565F00E5E7DC /* helpers.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 34AF87E41DBE565F00E5E7DC /* helpers.hpp */; };
34AF87E71DBE567C00E5E7DC /* libindexer_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34AF87D71DBE561400E5E7DC /* libindexer_tests_support.a */; };
34AF87E81DBE570200E5E7DC /* helpers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 34AF87E31DBE565F00E5E7DC /* helpers.cpp */; };
3D0AEAF81FBAF9E900AD042B /* test_with_classificator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D0AEAF41FBAF9E900AD042B /* test_with_classificator.cpp */; };
3D0AEAF91FBAF9E900AD042B /* test_with_custom_mwms.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D0AEAF51FBAF9E900AD042B /* test_with_custom_mwms.hpp */; };
3D0AEAFA1FBAF9E900AD042B /* test_with_custom_mwms.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D0AEAF61FBAF9E900AD042B /* test_with_custom_mwms.cpp */; };
3D0AEAFB1FBAF9E900AD042B /* test_with_classificator.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D0AEAF71FBAF9E900AD042B /* test_with_classificator.hpp */; };
3D452AFA1EE6D9F5009EAB9B /* wheelchair_tests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D452AF71EE6D9F5009EAB9B /* wheelchair_tests.cpp */; };
3D452AFB1EE6D9F5009EAB9B /* feature_names_test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D452AF81EE6D9F5009EAB9B /* feature_names_test.cpp */; };
3D452AFC1EE6D9F5009EAB9B /* centers_table_test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D452AF91EE6D9F5009EAB9B /* centers_table_test.cpp */; };
@ -50,8 +54,6 @@
3D489BC81D3D22190052AA38 /* string_slice_tests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D489BA91D3D1F8A0052AA38 /* string_slice_tests.cpp */; };
3D489BF31D4F87740052AA38 /* osm_editor_test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D489BF11D4F87740052AA38 /* osm_editor_test.cpp */; };
3D489BF41D4F87740052AA38 /* osm_editor_test.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D489BF21D4F87740052AA38 /* osm_editor_test.hpp */; };
3D4E99881FB48E5F0025B48C /* test_mwm_environment.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D4E99861FB48E5F0025B48C /* test_mwm_environment.hpp */; };
3D4E99891FB48E5F0025B48C /* test_mwm_environment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D4E99871FB48E5F0025B48C /* test_mwm_environment.cpp */; };
3D51BC311D5E4B7300F1FA8D /* osm_editor_test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D489BF11D4F87740052AA38 /* osm_editor_test.cpp */; };
3D51BC331D5E4BB000F1FA8D /* osm_editor_test.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D489BF21D4F87740052AA38 /* osm_editor_test.hpp */; };
3D51BC351D5E4BF600F1FA8D /* libsearch.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D51BC341D5E4BF600F1FA8D /* libsearch.a */; };
@ -275,6 +277,10 @@
34AF87D71DBE561400E5E7DC /* libindexer_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libindexer_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
34AF87E31DBE565F00E5E7DC /* helpers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cpp; sourceTree = "<group>"; };
34AF87E41DBE565F00E5E7DC /* helpers.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = helpers.hpp; sourceTree = "<group>"; };
3D0AEAF41FBAF9E900AD042B /* test_with_classificator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test_with_classificator.cpp; sourceTree = "<group>"; };
3D0AEAF51FBAF9E900AD042B /* test_with_custom_mwms.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = test_with_custom_mwms.hpp; sourceTree = "<group>"; };
3D0AEAF61FBAF9E900AD042B /* test_with_custom_mwms.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test_with_custom_mwms.cpp; sourceTree = "<group>"; };
3D0AEAF71FBAF9E900AD042B /* test_with_classificator.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = test_with_classificator.hpp; sourceTree = "<group>"; };
3D452AF71EE6D9F5009EAB9B /* wheelchair_tests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = wheelchair_tests.cpp; sourceTree = "<group>"; };
3D452AF81EE6D9F5009EAB9B /* feature_names_test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = feature_names_test.cpp; sourceTree = "<group>"; };
3D452AF91EE6D9F5009EAB9B /* centers_table_test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = centers_table_test.cpp; sourceTree = "<group>"; };
@ -283,8 +289,6 @@
3D489BA91D3D1F8A0052AA38 /* string_slice_tests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = string_slice_tests.cpp; sourceTree = "<group>"; };
3D489BF11D4F87740052AA38 /* osm_editor_test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = osm_editor_test.cpp; sourceTree = "<group>"; };
3D489BF21D4F87740052AA38 /* osm_editor_test.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = osm_editor_test.hpp; sourceTree = "<group>"; };
3D4E99861FB48E5F0025B48C /* test_mwm_environment.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = test_mwm_environment.hpp; sourceTree = "<group>"; };
3D4E99871FB48E5F0025B48C /* test_mwm_environment.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test_mwm_environment.cpp; sourceTree = "<group>"; };
3D51BC341D5E4BF600F1FA8D /* libsearch.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libsearch.a; path = "../../../omim-xcode-build/Debug/libsearch.a"; sourceTree = "<group>"; };
3D51BC361D5E4C3900F1FA8D /* libstorage.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libstorage.a; path = "../../../omim-xcode-build/Debug/libstorage.a"; sourceTree = "<group>"; };
3D51BC381D5E4C4300F1FA8D /* libgenerator.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libgenerator.a; path = "../../../omim-xcode-build/Debug/libgenerator.a"; sourceTree = "<group>"; };
@ -536,8 +540,10 @@
34AF87E21DBE562300E5E7DC /* indexer_tests_support */ = {
isa = PBXGroup;
children = (
3D4E99871FB48E5F0025B48C /* test_mwm_environment.cpp */,
3D4E99861FB48E5F0025B48C /* test_mwm_environment.hpp */,
3D0AEAF41FBAF9E900AD042B /* test_with_classificator.cpp */,
3D0AEAF71FBAF9E900AD042B /* test_with_classificator.hpp */,
3D0AEAF61FBAF9E900AD042B /* test_with_custom_mwms.cpp */,
3D0AEAF51FBAF9E900AD042B /* test_with_custom_mwms.hpp */,
34AF87E31DBE565F00E5E7DC /* helpers.cpp */,
34AF87E41DBE565F00E5E7DC /* helpers.hpp */,
);
@ -838,7 +844,6 @@
files = (
E906DE3C1CF44934004C4F5E /* postcodes_matcher.hpp in Headers */,
6753414E1A3F540F00A0A8C3 /* types_mapping.hpp in Headers */,
3D4E99881FB48E5F0025B48C /* test_mwm_environment.hpp in Headers */,
67BC92F31D21476500A4A378 /* string_set.hpp in Headers */,
6753411F1A3F540F00A0A8C3 /* feature_loader.hpp in Headers */,
675341151A3F540F00A0A8C3 /* feature_covering.hpp in Headers */,
@ -884,6 +889,8 @@
670C615C1AB0691900C38A8C /* features_offsets_table.hpp in Headers */,
6758AED41BB4413000C26E27 /* drules_selector.hpp in Headers */,
675341061A3F540F00A0A8C3 /* coding_params.hpp in Headers */,
3D0AEAF91FBAF9E900AD042B /* test_with_custom_mwms.hpp in Headers */,
3D0AEAFB1FBAF9E900AD042B /* test_with_classificator.hpp in Headers */,
56C74C211C749E4700B71B9F /* edits_migration.hpp in Headers */,
6753412F1A3F540F00A0A8C3 /* index_builder.hpp in Headers */,
456E1B1A1F90E5B7009C32E1 /* ftypes_sponsored.hpp in Headers */,
@ -1092,6 +1099,7 @@
files = (
56C74C241C749E4700B71B9F /* search_string_utils.cpp in Sources */,
3D928F671D50F9FE001670E0 /* index_helpers.cpp in Sources */,
3D0AEAFA1FBAF9E900AD042B /* test_with_custom_mwms.cpp in Sources */,
340DF9D01C1FF04D00B5C7EC /* osm_editor.cpp in Sources */,
67F183731BD4FCF500AB1840 /* map_style.cpp in Sources */,
670D04AB1B0BA8580013A7AC /* feature_loader_101.cpp in Sources */,
@ -1101,7 +1109,6 @@
3D74EF241F8F559D0081202C /* ugc_types_test.cpp in Sources */,
6753410D1A3F540F00A0A8C3 /* drawing_rules.cpp in Sources */,
675341301A3F540F00A0A8C3 /* index.cpp in Sources */,
3D4E99891FB48E5F0025B48C /* test_mwm_environment.cpp in Sources */,
34664CF61D49FEC1003D7096 /* centers_table.cpp in Sources */,
56C74C201C749E4700B71B9F /* edits_migration.cpp in Sources */,
6753414D1A3F540F00A0A8C3 /* types_mapping.cpp in Sources */,
@ -1128,6 +1135,7 @@
3D452AFC1EE6D9F5009EAB9B /* centers_table_test.cpp in Sources */,
34664CF31D49FEC1003D7096 /* altitude_loader.cpp in Sources */,
6726C1D11A49DAAC005EEA39 /* feature_meta.cpp in Sources */,
3D0AEAF81FBAF9E900AD042B /* test_with_classificator.cpp in Sources */,
6753411C1A3F540F00A0A8C3 /* feature_loader_base.cpp in Sources */,
67BC92F41D21476500A4A378 /* string_slice.cpp in Sources */,
675341071A3F540F00A0A8C3 /* data_factory.cpp in Sources */,

View file

@ -20,6 +20,9 @@
34921F661BFA0A6900737D6E /* api_mark_point.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 34921F611BFA0A6900737D6E /* api_mark_point.hpp */; };
34DDA1811DBE5DF40088A609 /* libpartners_api.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34DDA17F1DBE5DF40088A609 /* libpartners_api.a */; };
34DDA1821DBE5DF40088A609 /* libtracking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34DDA1801DBE5DF40088A609 /* libtracking.a */; };
3D0AEAFC1FBB0FF400AD042B /* libgenerator_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D0AEAFF1FBB0FF400AD042B /* libgenerator_tests_support.a */; };
3D0AEAFD1FBB0FF400AD042B /* libindexer_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D0AEB001FBB0FF400AD042B /* libindexer_tests_support.a */; };
3D0AEAFE1FBB0FF400AD042B /* libsearch_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D0AEB011FBB0FF400AD042B /* libsearch_tests_support.a */; };
3D47B2931F054BC5000828D2 /* taxi_delegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D47B2901F054BC5000828D2 /* taxi_delegate.cpp */; };
3D47B2941F054BC5000828D2 /* taxi_delegate.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3D47B2911F054BC5000828D2 /* taxi_delegate.hpp */; };
3D47B2C71F20EF06000828D2 /* displayed_categories_modifiers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D47B2C51F20EF06000828D2 /* displayed_categories_modifiers.cpp */; };
@ -164,6 +167,9 @@
34AF87EA1DBE5AD000E5E7DC /* common-release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "common-release.xcconfig"; path = "../common-release.xcconfig"; sourceTree = "<group>"; };
34DDA17F1DBE5DF40088A609 /* libpartners_api.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libpartners_api.a; path = "/Users/igrechuhin/Repo/omim/xcode/partners_api/../../../omim-xcode-build/Debug/libpartners_api.a"; sourceTree = "<absolute>"; };
34DDA1801DBE5DF40088A609 /* libtracking.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libtracking.a; path = "/Users/igrechuhin/Repo/omim/xcode/tracking/../../../omim-xcode-build/Debug/libtracking.a"; sourceTree = "<absolute>"; };
3D0AEAFF1FBB0FF400AD042B /* libgenerator_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libgenerator_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
3D0AEB001FBB0FF400AD042B /* libindexer_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libindexer_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
3D0AEB011FBB0FF400AD042B /* libsearch_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libsearch_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
3D47B2901F054BC5000828D2 /* taxi_delegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = taxi_delegate.cpp; sourceTree = "<group>"; };
3D47B2911F054BC5000828D2 /* taxi_delegate.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = taxi_delegate.hpp; sourceTree = "<group>"; };
3D47B2C51F20EF06000828D2 /* displayed_categories_modifiers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = displayed_categories_modifiers.cpp; sourceTree = "<group>"; };
@ -300,6 +306,9 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3D0AEAFC1FBB0FF400AD042B /* libgenerator_tests_support.a in Frameworks */,
3D0AEAFD1FBB0FF400AD042B /* libindexer_tests_support.a in Frameworks */,
3D0AEAFE1FBB0FF400AD042B /* libsearch_tests_support.a in Frameworks */,
F6C269F91F16174E00EB6519 /* libugc.a in Frameworks */,
45D287671E966E3400587F05 /* liblocal_ads.a in Frameworks */,
F685EB631E955C45003CA3FF /* libicu.a in Frameworks */,
@ -354,6 +363,9 @@
34DDA17E1DBE5DF40088A609 /* Frameworks */ = {
isa = PBXGroup;
children = (
3D0AEAFF1FBB0FF400AD042B /* libgenerator_tests_support.a */,
3D0AEB001FBB0FF400AD042B /* libindexer_tests_support.a */,
3D0AEB011FBB0FF400AD042B /* libsearch_tests_support.a */,
F6C269F81F16174E00EB6519 /* libugc.a */,
45D287661E966E3400587F05 /* liblocal_ads.a */,
F685EB621E955C45003CA3FF /* libicu.a */,

View file

@ -143,6 +143,8 @@
39BBC13E1F9FD679009D1687 /* segment_tree_tests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 39BBC13D1F9FD679009D1687 /* segment_tree_tests.cpp */; };
39BBC1401F9FD683009D1687 /* point_rect_matcher_tests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 39BBC13F1F9FD683009D1687 /* point_rect_matcher_tests.cpp */; };
39BBC1421F9FD68C009D1687 /* highlighting_tests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 39BBC1411F9FD68C009D1687 /* highlighting_tests.cpp */; };
3D0AEB021FBB102C00AD042B /* libgenerator_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D0AEB041FBB102C00AD042B /* libgenerator_tests_support.a */; };
3D0AEB031FBB102C00AD042B /* libindexer_tests_support.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D0AEB051FBB102C00AD042B /* libindexer_tests_support.a */; };
3DF37FAA1EA11B380012CB31 /* everywhere_search_callback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3DF37FA81EA11B380012CB31 /* everywhere_search_callback.cpp */; };
3DF37FAB1EA11B380012CB31 /* everywhere_search_callback.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3DF37FA91EA11B380012CB31 /* everywhere_search_callback.hpp */; };
3DFEBF761EF2D55800317D5C /* city_finder.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 3DFEBF751EF2D55800317D5C /* city_finder.hpp */; };
@ -371,6 +373,8 @@
39BBC13D1F9FD679009D1687 /* segment_tree_tests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = segment_tree_tests.cpp; sourceTree = "<group>"; };
39BBC13F1F9FD683009D1687 /* point_rect_matcher_tests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = point_rect_matcher_tests.cpp; sourceTree = "<group>"; };
39BBC1411F9FD68C009D1687 /* highlighting_tests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = highlighting_tests.cpp; sourceTree = "<group>"; };
3D0AEB041FBB102C00AD042B /* libgenerator_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libgenerator_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
3D0AEB051FBB102C00AD042B /* libindexer_tests_support.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libindexer_tests_support.a; sourceTree = BUILT_PRODUCTS_DIR; };
3DF37FA81EA11B380012CB31 /* everywhere_search_callback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = everywhere_search_callback.cpp; sourceTree = "<group>"; };
3DF37FA91EA11B380012CB31 /* everywhere_search_callback.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = everywhere_search_callback.hpp; sourceTree = "<group>"; };
3DFEBF751EF2D55800317D5C /* city_finder.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = city_finder.hpp; sourceTree = "<group>"; };
@ -522,6 +526,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3D0AEB021FBB102C00AD042B /* libgenerator_tests_support.a in Frameworks */,
3D0AEB031FBB102C00AD042B /* libindexer_tests_support.a in Frameworks */,
34F558491DBF2EC700A4FC11 /* libz.tbd in Frameworks */,
39AEF8471FB45C8900943FC9 /* libicu.a in Frameworks */,
34F558471DBF2E8100A4FC11 /* libsuccinct.a in Frameworks */,
@ -562,6 +568,8 @@
34F558391DBF2E0E00A4FC11 /* Frameworks */ = {
isa = PBXGroup;
children = (
3D0AEB041FBB102C00AD042B /* libgenerator_tests_support.a */,
3D0AEB051FBB102C00AD042B /* libindexer_tests_support.a */,
39B2B9841FB469ED00AB85A1 /* libminizip.a */,
39B2B9751FB4687500AB85A1 /* libgflags.a */,
39B2B96D1FB4633200AB85A1 /* libtess2.a */,
@ -1214,6 +1222,13 @@
};
name = Release;
};
3D0AEB061FBB102C00AD042B /* Production Full */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = search_tests;
};
name = "Production Full";
};
671C62111AE9225100076BD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {