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: rebase Created Aug. 5, 2015, 10:38 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
Index: test/BaseJsTest.h
diff --git a/test/BaseJsTest.h b/test/BaseJsTest.h
index 2e63c20999eed66418374b701e6439e167ba3680..d4751efa0ebb57ea24b1197db2132abaea7c986a 100644
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -35,13 +35,13 @@ public:
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)
Felix Dahlke 2015/08/05 21:28:05 Nit: This was wrapped because it didn't fit in 80
sergei 2015/08/06 07:35:30 Done.
{
throw std::runtime_error("Not implemented");
}
@@ -80,18 +80,18 @@ public:
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)
Felix Dahlke 2015/08/05 21:28:05 Nit: This was wrapped because it didn't fit in 80
sergei 2015/08/06 07:35:30 Done.
{
}
« src/FilterEngine.cpp ('K') | « src/JsEngine.cpp ('k') | test/ConsoleJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld