summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commit44f7ad5222d824d81dc743045d5887418847e74e (patch)
tree1b41535ac00b8b225a25dba2873b064cb074bfa9 /tests
parent90fca083052880479ad90d870e556f0648e32106 (diff)
downloadingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.gz
ingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.bz2
ingen-44f7ad5222d824d81dc743045d5887418847e74e.zip
Add URI class and remove use of Raul::URI
Diffstat (limited to 'tests')
-rw-r--r--tests/TestClient.hpp2
-rw-r--r--tests/ingen_test.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/TestClient.hpp b/tests/TestClient.hpp
index 6af0235a..8d99db86 100644
--- a/tests/TestClient.hpp
+++ b/tests/TestClient.hpp
@@ -30,7 +30,7 @@ public:
explicit TestClient(Log& log) : _log(log) {}
~TestClient() {}
- Raul::URI uri() const override { return Raul::URI("ingen:testClient"); }
+ URI uri() const override { return URI("ingen:testClient"); }
void message(const Message& msg) override {
if (const Response* const response = boost::get<Response>(&msg)) {
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index 5f0f6772..ccd39d9c 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -191,7 +191,7 @@ main(int argc, char** argv)
const std::string base = Glib::path_get_basename(cmds_file_path);
const std::string out_name = base.substr(0, base.find('.')) + ".out.ingen";
const std::string out_path = Glib::build_filename(Glib::get_current_dir(), out_name);
- world->serialiser()->write_bundle(r->second, Glib::filename_to_uri(out_path));
+ world->serialiser()->write_bundle(r->second, URI(Glib::filename_to_uri(out_path)));
// Undo every event (should result in a graph identical to the original)
for (int i = 0; i < n_events; ++i) {
@@ -203,7 +203,7 @@ main(int argc, char** argv)
r = world->store()->find(Raul::Path("/"));
const std::string undo_name = base.substr(0, base.find('.')) + ".undo.ingen";
const std::string undo_path = Glib::build_filename(Glib::get_current_dir(), undo_name);
- world->serialiser()->write_bundle(r->second, Glib::filename_to_uri(undo_path));
+ world->serialiser()->write_bundle(r->second, URI(Glib::filename_to_uri(undo_path)));
// Redo every event (should result in a graph identical to the pre-undo output)
for (int i = 0; i < n_events; ++i) {
@@ -215,7 +215,7 @@ main(int argc, char** argv)
r = world->store()->find(Raul::Path("/"));
const std::string redo_name = base.substr(0, base.find('.')) + ".redo.ingen";
const std::string redo_path = Glib::build_filename(Glib::get_current_dir(), redo_name);
- world->serialiser()->write_bundle(r->second, Glib::filename_to_uri(redo_path));
+ world->serialiser()->write_bundle(r->second, URI(Glib::filename_to_uri(redo_path)));
serd_env_free(env);
sratom_free(sratom);