41 lines
826 B
C++
41 lines
826 B
C++
#include <boost/test/unit_test.hpp>
|
|
#include <boost/test/test_case_template.hpp>
|
|
|
|
#include "args.h"
|
|
|
|
#include "osrm/tile_parameters.hpp"
|
|
|
|
#include "osrm/coordinate.hpp"
|
|
#include "osrm/engine_config.hpp"
|
|
#include "osrm/json_container.hpp"
|
|
#include "osrm/status.hpp"
|
|
#include "osrm/osrm.hpp"
|
|
|
|
BOOST_AUTO_TEST_SUITE(tile)
|
|
|
|
BOOST_AUTO_TEST_CASE(test_tile)
|
|
{
|
|
const auto args = get_args();
|
|
BOOST_REQUIRE_EQUAL(args.size(), 1);
|
|
|
|
using namespace osrm;
|
|
|
|
EngineConfig config{args[0]};
|
|
config.use_shared_memory = false;
|
|
|
|
OSRM osrm{config};
|
|
|
|
/*
|
|
TileParameters params{0, 0, 0};
|
|
|
|
// TODO(daniel-j-h): why does the API expect a string?
|
|
std::string result;
|
|
|
|
const auto rc = osrm.Tile(params, result);
|
|
|
|
BOOST_CHECK(rc == Status::Ok || rc == Status::Error);
|
|
*/
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|