Unity fixes

This commit is contained in:
Alexander Borsuk 2022-01-02 18:23:29 +01:00
parent aa0766233d
commit 90c98e1be0
8 changed files with 15 additions and 6 deletions

View file

@ -64,9 +64,9 @@ vector<uint32_t> CalcRoadFeatureIds(string const & dataPath, string const & boun
CitiesBoundariesChecker const checker(citiesBoundaries);
vector<uint32_t> cityRoadFeatureIds;
ForEachFeature(dataPath, [&cityRoadFeatureIds, &checker](FeatureType & ft, uint32_t)
feature::ForEachFeature(dataPath, [&cityRoadFeatureIds, &checker](FeatureType & ft, uint32_t)
{
TypesHolder types(ft);
feature::TypesHolder types(ft);
if (!routing::IsCarRoad(types) && !routing::IsBicycleRoad(types))
return;

View file

@ -8,6 +8,7 @@
#include "platform/platform.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "geometry/mercator.hpp"

View file

@ -30,6 +30,8 @@
namespace generator_tests
{
using namespace generator;
class Feature : public generator::tests_support::TestFeature
{
public:

View file

@ -19,6 +19,7 @@ namespace feature_builder_test
{
using namespace feature;
using namespace generator::tests_support;
using namespace std;
using namespace tests;
UNIT_CLASS_TEST(TestWithClassificator, FBuilder_ManyTypes)

View file

@ -16,6 +16,7 @@
#include "routing_common/maxspeed_conversion.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/data_source.hpp"
#include "indexer/feature.hpp"
@ -405,7 +406,7 @@ UNIT_TEST(MaxspeedCollector_Smoke)
auto const filename = GetFileName();
SCOPE_GUARD(_, std::bind(Platform::RemoveFileIfExists, std::cref(filename)));
FeatureBuilder builder;
feature::FeatureBuilder builder;
auto c1 = std::make_shared<MaxspeedsCollector>(filename);
c1->CollectFeature(builder, MakeOsmElement(1 /* id */, {{"maxspeed:forward", "50"}} /* tags */, OsmElement::EntityType::Way));

View file

@ -17,9 +17,9 @@
namespace restriction_test
{
using namespace std;
using namespace routing;
using routing_test::TestRestrictions;
using namespace routing_test;
using namespace std;
using Algorithm = AStarAlgorithm<Segment, SegmentEdge, RouteWeight>;

View file

@ -10,8 +10,11 @@
namespace turns_sound_test
{
using namespace location;
using namespace routing::turns::sound;
using namespace std;
using routing::turns::CarDirection;
using routing::turns::TurnItemDist;
using routing::turns::sound::NotificationManager;
using routing::turns::sound::Settings;
// An error to compare two double after conversion feet to meters.
double const kEps = 1.;

View file

@ -8,6 +8,7 @@
namespace uturn_restriction_tests
{
using namespace routing;
using namespace routing_test;
using Algorithm = AStarAlgorithm<Segment, SegmentEdge, RouteWeight>;