diff options
Diffstat (limited to 'test/storage/storage.cpp')
-rw-r--r-- | test/storage/storage.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/storage/storage.cpp b/test/storage/storage.cpp new file mode 100644 index 0000000000..30f632d193 --- /dev/null +++ b/test/storage/storage.cpp @@ -0,0 +1,13 @@ +#include "storage.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()); + pid = mbgl::test::startServer(server.c_str()); +} + +void Storage::TearDownTestCase() { + mbgl::test::stopServer(pid); +}
\ No newline at end of file |