Index: test/Notification.cpp |
diff --git a/test/Notification.cpp b/test/Notification.cpp |
index 64fa4560fc16c082ecfd67c21241c80a6652161c..376ea08147e5547b6fc52f5182c5a911db2e8e05 100644 |
--- a/test/Notification.cpp |
+++ b/test/Notification.cpp |
@@ -63,7 +63,7 @@ namespace |
} |
}; |
- class MockWebRequest : public WebRequest |
+ class MockWebRequest : public IWebRequest |
{ |
public: |
std::string responseText; |
@@ -71,18 +71,18 @@ namespace |
: responseText(notification) |
{ |
} |
- ServerResponse GET(const std::string& url, |
- const HeaderList& requestHeaders) const |
+ void GET(const std::string& url, const HeaderList& requestHeaders, |
+ const GetCallback& getCallback) override |
{ |
if (url.find("/notification.json") == std::string::npos) |
{ |
- return ServerResponse(); |
+ return; |
} |
ServerResponse serverResponse; |
serverResponse.status = IWebRequest::NS_OK; |
serverResponse.responseStatus = 200; |
serverResponse.responseText = responseText; |
- return serverResponse; |
+ getCallback(serverResponse); |
} |
}; |