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

Unified Diff: test/JsEngine.cpp

Issue 29428624: Issue 5180 - stop using of WebRequestPtr in tests (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 3, 2017, 2:07 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 | « test/FilterEngine.cpp ('k') | test/Notification.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/JsEngine.cpp
diff --git a/test/JsEngine.cpp b/test/JsEngine.cpp
index 68e5b68a9882f3686202cdd062a6d8199c95d691..b26c794ffabb4a2a6ec2c19fe0adfceffed30c21 100644
--- a/test/JsEngine.cpp
+++ b/test/JsEngine.cpp
@@ -177,12 +177,6 @@ TEST(NewJsEngineTest, CallbackGetSet)
AdblockPlus::FileSystemPtr fileSystem(new AdblockPlus::DefaultFileSystem());
jsEngine->SetFileSystem(fileSystem);
ASSERT_EQ(fileSystem, jsEngine->GetFileSystem());
-
- ASSERT_TRUE(jsEngine->GetWebRequest());
- ASSERT_ANY_THROW(jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr()));
- AdblockPlus::WebRequestPtr webRequest(new AdblockPlus::DefaultWebRequest());
- jsEngine->SetWebRequest(webRequest);
- ASSERT_EQ(webRequest, jsEngine->GetWebRequest());
}
TEST(NewJsEngineTest, GlobalPropertyTest)
« no previous file with comments | « test/FilterEngine.cpp ('k') | test/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld