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

Unified Diff: test/FileSystemJsObject.cpp

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 | « test/BaseJsTest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/FileSystemJsObject.cpp
===================================================================
--- a/test/FileSystemJsObject.cpp
+++ b/test/FileSystemJsObject.cpp
@@ -45,17 +45,17 @@ namespace
{
if (!success)
throw std::runtime_error("Unable to read " + path);
std::stringstream* const stream = new std::stringstream;
*stream << contentToRead;
return std::tr1::shared_ptr<std::istream>(stream);
}
- void Write(const std::string& path, std::tr1::shared_ptr<std::ostream> data)
+ void Write(const std::string& path, std::tr1::shared_ptr<std::istream> data)
{
if (!success)
throw std::runtime_error("Unable to write to " + path);
lastWrittenPath = path;
std::stringstream content;
content << data->rdbuf();
lastWrittenContent = content.str();
« no previous file with comments | « test/BaseJsTest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld