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

Unified Diff: test/Prefs.cpp

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/Prefs.cpp
===================================================================
--- a/test/Prefs.cpp
+++ b/test/Prefs.cpp
@@ -17,32 +17,32 @@
#include <sstream>
#include "../src/Thread.h"
#include "BaseJsTest.h"
namespace
{
- typedef std::tr1::shared_ptr<AdblockPlus::FilterEngine> FilterEnginePtr;
+ typedef std::shared_ptr<AdblockPlus::FilterEngine> FilterEnginePtr;
class TestFileSystem : public LazyFileSystem
{
public:
std::string prefsContents;
- std::tr1::shared_ptr<std::istream> Read(const std::string& path) const
+ std::shared_ptr<std::istream> Read(const std::string& path) const
{
if (path == "prefs.json" && !prefsContents.empty())
- return std::tr1::shared_ptr<std::istream>(new std::istringstream(prefsContents));
+ return std::shared_ptr<std::istream>(new std::istringstream(prefsContents));
return LazyFileSystem::Read(path);
}
- void Write(const std::string& path, std::tr1::shared_ptr<std::istream> content)
+ void Write(const std::string& path, std::shared_ptr<std::istream> content)
{
if (path == "prefs.json")
{
std::stringstream ss;
ss << content->rdbuf();
prefsContents = ss.str();
}
else

Powered by Google App Engine
This is Rietveld