Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
35
libs/search/search_quality/helpers.hpp
Normal file
35
libs/search/search_quality/helpers.hpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#pragma once
|
||||
|
||||
#include "search/search_tests_support/test_search_engine.hpp"
|
||||
|
||||
#include "geometry/rect2d.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class DataSource;
|
||||
class FrozenDataSource;
|
||||
|
||||
namespace search
|
||||
{
|
||||
namespace search_quality
|
||||
{
|
||||
// todo(@m) We should not need that much.
|
||||
size_t constexpr kMaxOpenFiles = 4000;
|
||||
|
||||
void CheckLocale();
|
||||
|
||||
void ReadStringsFromFile(std::string const & path, std::vector<std::string> & result);
|
||||
|
||||
void SetPlatformDirs(std::string const & dataPath, std::string const & mwmPath);
|
||||
|
||||
void InitViewport(std::string viewportName, m2::RectD & viewport);
|
||||
|
||||
void InitDataSource(FrozenDataSource & dataSource, std::string const & mwmListPath);
|
||||
|
||||
std::unique_ptr<search::tests_support::TestSearchEngine> InitSearchEngine(DataSource & dataSource,
|
||||
std::string const & locale,
|
||||
size_t numThreads);
|
||||
} // namespace search_quality
|
||||
} // namespace search
|
||||
Loading…
Add table
Add a link
Reference in a new issue