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

Unified Diff: test/BaseJsTest.h

Issue 5163715573841920: Issue 768 - Switch from TR1 to C++11 (Closed)
Patch Set: Created July 11, 2014, 2:24 p.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
Index: test/BaseJsTest.h
===================================================================
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -30,23 +30,23 @@ public:
{
throw std::runtime_error("Unexpected error: " + message);
}
};
class ThrowingFileSystem : public AdblockPlus::FileSystem
{
public:
- std::tr1::shared_ptr<std::istream> Read(const std::string& path) const
+ std::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::istream> content)
+ 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");
}
@@ -75,28 +75,28 @@ public:
{
throw std::runtime_error("Unexpected GET: " + url);
}
};
class LazyFileSystem : public AdblockPlus::FileSystem
{
public:
- std::tr1::shared_ptr<std::istream> Read(const std::string& path) const
+ std::shared_ptr<std::istream> Read(const std::string& path) const
{
std::string dummyData("");
if (path == "patterns.ini")
dummyData = "# Adblock Plus preferences\n[Subscription]\nurl=~fl~";
else if (path == "prefs.json")
dummyData = "{}";
- return std::tr1::shared_ptr<std::istream>(new std::istringstream(dummyData));
+ return std::shared_ptr<std::istream>(new std::istringstream(dummyData));
}
void Write(const std::string& path,
- std::tr1::shared_ptr<std::istream> content)
+ std::shared_ptr<std::istream> content)
{
}
void Move(const std::string& fromPath, const std::string& toPath)
{
}
void Remove(const std::string& path)

Powered by Google App Engine
This is Rietveld