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

@@ -1,10 +1,10 @@
#include "storage.hpp"
#include <mbgl/platform/platform.hpp>
pid_t Storage::pid = 0;
void Storage::SetUpTestCase() {
const auto server = mbgl::test::getBaseDirectory() + "/storage/server.js";
fprintf(stderr, "server: %s\n", server.c_str());
const auto server = mbgl::platform::applicationRoot() + "/TEST_DATA/storage/server.js";
pid = mbgl::test::startServer(server.c_str());
}