Index: test/BaseJsTest.h |
=================================================================== |
--- a/test/BaseJsTest.h |
+++ b/test/BaseJsTest.h |
@@ -35,17 +35,17 @@ |
class ThrowingFileSystem : public AdblockPlus::FileSystem |
{ |
public: |
std::shared_ptr<std::istream> Read(const std::string& path) const |
{ |
throw std::runtime_error("Not implemented"); |
} |
- void Write(const std::string& path, std::shared_ptr<std::istream> content) |
+ void Write(const std::string& path, const std::shared_ptr<std::istream>& content) |
{ |
throw std::runtime_error("Not implemented"); |
} |
void Move(const std::string& fromPath, const std::string& toPath) |
{ |
throw std::runtime_error("Not implemented"); |
} |
@@ -84,17 +84,17 @@ |
std::string dummyData(""); |
if (path == "patterns.ini") |
dummyData = "# Adblock Plus preferences\n[Subscription]\nurl=~fl~"; |
else if (path == "prefs.json") |
dummyData = "{}"; |
return std::shared_ptr<std::istream>(new std::istringstream(dummyData)); |
} |
- void Write(const std::string& path, std::shared_ptr<std::istream> content) |
+ void Write(const std::string& path, const std::shared_ptr<std::istream>& content) |
{ |
} |
void Move(const std::string& fromPath, const std::string& toPath) |
{ |
} |
void Remove(const std::string& path) |