Index: test/UpdateCheck.cpp |
=================================================================== |
--- a/test/UpdateCheck.cpp |
+++ b/test/UpdateCheck.cpp |
@@ -115,18 +115,18 @@ |
AdblockPlus::Sleep(100); |
ASSERT_FALSE(eventCallbackCalled); |
ASSERT_TRUE(updateCallbackCalled); |
ASSERT_FALSE(updateError.empty()); |
std::string expectedUrl(filterEngine->GetPref("update_url_release").AsString()); |
- std::string platform = jsEngine->Evaluate("require('info').platform")->AsString(); |
- std::string platformVersion = jsEngine->Evaluate("require('info').platformVersion")->AsString(); |
+ std::string platform = jsEngine->Evaluate("require('info').platform").AsString(); |
+ std::string platformVersion = jsEngine->Evaluate("require('info').platformVersion").AsString(); |
FindAndReplace(expectedUrl, "%NAME%", appInfo.name); |
FindAndReplace(expectedUrl, "%TYPE%", "1"); // manual update |
expectedUrl += "&addonName=" + appInfo.name + |
"&addonVersion=" + appInfo.version + |
"&application=" + appInfo.application + |
"&applicationVersion=" + appInfo.applicationVersion + |
"&platform=" + platform + |
@@ -154,18 +154,18 @@ |
ASSERT_TRUE(eventCallbackCalled); |
ASSERT_EQ(1u, eventCallbackParams.size()); |
ASSERT_EQ("https://foo.bar/", eventCallbackParams[0].AsString()); |
ASSERT_TRUE(updateCallbackCalled); |
ASSERT_TRUE(updateError.empty()); |
std::string expectedUrl(filterEngine->GetPref("update_url_devbuild").AsString()); |
- std::string platform = jsEngine->Evaluate("require('info').platform")->AsString(); |
- std::string platformVersion = jsEngine->Evaluate("require('info').platformVersion")->AsString(); |
+ std::string platform = jsEngine->Evaluate("require('info').platform").AsString(); |
+ std::string platformVersion = jsEngine->Evaluate("require('info').platformVersion").AsString(); |
FindAndReplace(expectedUrl, "%NAME%", appInfo.name); |
FindAndReplace(expectedUrl, "%TYPE%", "1"); // manual update |
expectedUrl += "&addonName=" + appInfo.name + |
"&addonVersion=" + appInfo.version + |
"&application=" + appInfo.application + |
"&applicationVersion=" + appInfo.applicationVersion + |
"&platform=" + platform + |