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

Unified Diff: test/FileSystemJsObject.cpp

Issue 5163715573841920: Issue 768 - Switch from TR1 to C++11 (Closed)
Patch Set: address comments Created Aug. 6, 2015, 7:34 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/DefaultFileSystem.cpp ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/FileSystemJsObject.cpp
diff --git a/test/FileSystemJsObject.cpp b/test/FileSystemJsObject.cpp
index d87647f4b9a83ea9fb57cc333a794ac4d1d49120..d03e55db5acf39ee43e0e247bc55470216b7bd66 100644
--- a/test/FileSystemJsObject.cpp
+++ b/test/FileSystemJsObject.cpp
@@ -41,16 +41,16 @@ namespace
{
}
- std::tr1::shared_ptr<std::istream> Read(const std::string& path) const
+ std::shared_ptr<std::istream> Read(const std::string& path) const
{
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);
+ return std::shared_ptr<std::istream>(stream);
}
- void Write(const std::string& path, std::tr1::shared_ptr<std::istream> data)
+ void Write(const std::string& path, std::shared_ptr<std::istream> data)
{
if (!success)
throw std::runtime_error("Unable to write to " + path);
@@ -107,7 +107,7 @@ namespace
error = jsEngine->Evaluate("result.error")->AsString();
}
- typedef std::tr1::shared_ptr<MockFileSystem> MockFileSystemPtr;
+ typedef std::shared_ptr<MockFileSystem> MockFileSystemPtr;
class FileSystemJsObjectTest : public BaseJsTest
{
« no previous file with comments | « test/DefaultFileSystem.cpp ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld