asset:// URLs are local to the executable path now

This commit is contained in:
Konstantin Käfer
2015-01-23 11:04:26 +01:00
parent 9a549094e0
commit 4a985e09f2
17 changed files with 170 additions and 150 deletions

View File

@@ -4,6 +4,7 @@
#include <mbgl/map/map.hpp>
#include <mbgl/util/image.hpp>
#include <mbgl/util/std.hpp>
#include <mbgl/platform/platform.hpp>
#include <mbgl/util/io.hpp>
#include <rapidjson/document.h>
@@ -29,7 +30,7 @@ void rewriteLocalScheme(rapidjson::Value &value, rapidjson::Document::AllocatorT
class HeadlessTest : public ::testing::TestWithParam<std::string> {
public:
static void SetUpTestCase() {
const auto server = mbgl::test::getBaseDirectory() + "/headless/server.js";
const auto server = mbgl::platform::applicationRoot() + "/TEST_DATA/headless/server.js";
pid = mbgl::test::startServer(server.c_str());
display = std::make_shared<mbgl::HeadlessDisplay>();
}