From 9a131feeb507988b9bde7ff1baccf4e13fe903c4 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Tue, 9 Dec 2014 20:38:09 +0100 Subject: another try to get the stream method to work. Still compiler errors. --- test/core/ResourceLocatorTest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/core/ResourceLocatorTest.cpp b/test/core/ResourceLocatorTest.cpp index 2e663f5..08259b6 100644 --- a/test/core/ResourceLocatorTest.cpp +++ b/test/core/ResourceLocatorTest.cpp @@ -35,14 +35,17 @@ class TestResourceLocator : public ResourceLocator { return ResourceLocation(true, *this, type, path); } - std::istream stream(const std::string &location, std::istream& input) const override { + std::istream stream(const std::string &location) const override { //trivial test implementation. - input << "test"; + std::stringstream ss; + ss << "test"; + return std::move(ss); } }; TEST(ResourceLocator, locate) { + } } -- cgit v1.2.3