diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-09 20:38:09 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-09 20:38:09 +0100 |
commit | 9a131feeb507988b9bde7ff1baccf4e13fe903c4 (patch) | |
tree | bcaeb941698171420b719be6f0db595a1c06bbd2 /test/core/ResourceLocatorTest.cpp | |
parent | 3ca274c015bc99aaa40f6337d493ea172309f294 (diff) |
another try to get the stream method to work. Still compiler errors.
Diffstat (limited to 'test/core/ResourceLocatorTest.cpp')
-rw-r--r-- | test/core/ResourceLocatorTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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) { + } } |