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

Unified Diff: test/WebRequest.cpp

Issue 29382567: No issue - change initialiser calls (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Updated commit message. Created March 16, 2017, 4:14 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/WebRequest.cpp
===================================================================
--- a/test/WebRequest.cpp
+++ b/test/WebRequest.cpp
@@ -52,18 +52,18 @@ namespace
template<class T>
class WebRequestTest : public BaseJsTest
{
protected:
void SetUp()
{
BaseJsTest::SetUp();
- jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new T));
- jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr(new LazyFileSystem));
+ jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new T()));
+ jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr(new LazyFileSystem()));
}
};
typedef WebRequestTest<MockWebRequest> MockWebRequestTest;
typedef WebRequestTest<AdblockPlus::DefaultWebRequest> DefaultWebRequestTest;
typedef WebRequestTest<MockWebRequest> XMLHttpRequestTest;
void ResetTestXHR(const AdblockPlus::JsEnginePtr& jsEngine)
@@ -202,17 +202,17 @@ namespace
}
};
typedef std::shared_ptr<CatchLogSystem> CatchLogSystemPtr;
}
TEST_F(XMLHttpRequestTest, RequestHeaderValidation)
{
- auto catchLogSystem = CatchLogSystemPtr(new CatchLogSystem);
+ auto catchLogSystem = CatchLogSystemPtr(new CatchLogSystem());
jsEngine->SetLogSystem(catchLogSystem);
AdblockPlus::FilterEngine filterEngine(jsEngine);
auto webRequest =
std::static_pointer_cast<MockWebRequest>(jsEngine->GetWebRequest());
ASSERT_TRUE(webRequest);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld