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

Unified Diff: test/UpdateCheck.cpp

Issue 29428650: Issue 5180 - introduce asynchronous web request (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 3, 2017, 2:21 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/Notification.cpp ('k') | test/WebRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/UpdateCheck.cpp
diff --git a/test/UpdateCheck.cpp b/test/UpdateCheck.cpp
index ddcbb8f5fc980b68bc0b8fc6ccd8cc8f579c1c90..d5ddf4e917db775ae193c49dc2b2a537f241c163 100644
--- a/test/UpdateCheck.cpp
+++ b/test/UpdateCheck.cpp
@@ -101,7 +101,7 @@ namespace
TEST_F(UpdateCheckTest, RequestFailure)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_ERROR_FAILURE;
+ webRequest->response.status = IWebRequest::NS_ERROR_FAILURE;
appInfo.name = "1";
appInfo.version = "3";
@@ -136,7 +136,7 @@ TEST_F(UpdateCheckTest, RequestFailure)
TEST_F(UpdateCheckTest, UpdateAvailable)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_OK;
+ webRequest->response.status = IWebRequest::NS_OK;
webRequest->response.responseStatus = 200;
webRequest->response.responseText = "{\"1\": {\"version\":\"3.1\",\"url\":\"https://foo.bar/\"}}";
@@ -175,7 +175,7 @@ TEST_F(UpdateCheckTest, UpdateAvailable)
TEST_F(UpdateCheckTest, ApplicationUpdateAvailable)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_OK;
+ webRequest->response.status = IWebRequest::NS_OK;
webRequest->response.responseStatus = 200;
webRequest->response.responseText = "{\"1/4\": {\"version\":\"3.1\",\"url\":\"https://foo.bar/\"}}";
@@ -199,7 +199,7 @@ TEST_F(UpdateCheckTest, ApplicationUpdateAvailable)
TEST_F(UpdateCheckTest, WrongApplication)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_OK;
+ webRequest->response.status = IWebRequest::NS_OK;
webRequest->response.responseStatus = 200;
webRequest->response.responseText = "{\"1/3\": {\"version\":\"3.1\",\"url\":\"https://foo.bar/\"}}";
@@ -221,7 +221,7 @@ TEST_F(UpdateCheckTest, WrongApplication)
TEST_F(UpdateCheckTest, WrongVersion)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_OK;
+ webRequest->response.status = IWebRequest::NS_OK;
webRequest->response.responseStatus = 200;
webRequest->response.responseText = "{\"1\": {\"version\":\"3\",\"url\":\"https://foo.bar/\"}}";
@@ -243,7 +243,7 @@ TEST_F(UpdateCheckTest, WrongVersion)
TEST_F(UpdateCheckTest, WrongURL)
{
- webRequest->response.status = AdblockPlus::WebRequest::NS_OK;
+ webRequest->response.status = IWebRequest::NS_OK;
webRequest->response.responseStatus = 200;
webRequest->response.responseText = "{\"1\": {\"version\":\"3.1\",\"url\":\"http://insecure/\"}}";
« no previous file with comments | « test/Notification.cpp ('k') | test/WebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld