-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
tile.cpp
40 lines (27 loc) · 828 Bytes
/
tile.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <boost/test/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include "args.hpp"
#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()