Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/BaseJsTest.h

Issue 10805001: Fixed: FileSystem;:Write should take an istream instance for input, not ostream (Closed)
Patch Set: Created May 24, 2013, 9:35 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/Utils.cpp ('k') | test/FileSystemJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/BaseJsTest.h
===================================================================
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -35,17 +35,17 @@ public:
class ThrowingFileSystem : public AdblockPlus::FileSystem
{
std::tr1::shared_ptr<std::istream> Read(const std::string& path) const
{
throw std::runtime_error("Not implemented");
}
void Write(const std::string& path,
- std::tr1::shared_ptr<std::ostream> content)
+ std::tr1::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 @@ class LazyFileSystem : public AdblockPlu
std::string dummyData("# Adblock Plus preferences\n[Subscription]\nurl=~fl~");
return std::tr1::shared_ptr<std::istream>(new std::istringstream(dummyData));
}
else
return std::tr1::shared_ptr<std::istream>();
}
void Write(const std::string& path,
- std::tr1::shared_ptr<std::ostream> content)
+ std::tr1::shared_ptr<std::istream> content)
{
}
void Move(const std::string& fromPath, const std::string& toPath)
{
}
void Remove(const std::string& path)
« no previous file with comments | « src/Utils.cpp ('k') | test/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld