aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2016-09-09 23:51:40 +0100
committerThierry Crozat2016-09-10 01:12:42 +0100
commit1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c (patch)
tree872c1e77f3264360936c029e20a9ebc6bea6d1da /engines
parentdff88b105885e0ed3766f5e86c0d7f606348634a (diff)
downloadscummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.tar.gz
scummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.tar.bz2
scummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.zip
CLOUD: Move openUrl to OSystem
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/misc.cpp3
-rw-r--r--engines/testbed/webserver.cpp13
2 files changed, 7 insertions, 9 deletions
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp
index a463d9e4d0..bda0a361a7 100644
--- a/engines/testbed/misc.cpp
+++ b/engines/testbed/misc.cpp
@@ -22,7 +22,6 @@
#include "testbed/misc.h"
#include "common/timer.h"
-#include "backends/networking/browser/openurl.h"
namespace Testbed {
@@ -170,7 +169,7 @@ TestExitStatus MiscTests::testOpenUrl() {
return kTestSkipped;
}
- if (!Networking::Browser::openUrl("http://scummvm.org/")) {
+ if (!g_system->openUrl("http://scummvm.org/")) {
Testsuite::logPrintf("Info! openUrl() says it couldn't open the url (probably not supported on this platform)\n");
return kTestFailed;
}
diff --git a/engines/testbed/webserver.cpp b/engines/testbed/webserver.cpp
index b4c69b278d..d46cea5585 100644
--- a/engines/testbed/webserver.cpp
+++ b/engines/testbed/webserver.cpp
@@ -23,7 +23,6 @@
#include "testbed/webserver.h"
#include "backends/networking/sdl_net/localwebserver.h"
#include "common/config-manager.h"
-#include "backends/networking/browser/openurl.h"
namespace Testbed {
@@ -92,7 +91,7 @@ TestExitStatus WebserverTests::testIndexPage() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress());
+ g_system->openUrl(LocalServer.getAddress());
if (Testsuite::handleInteractiveInput(
Common::String::format("The %s page opens well?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {
@@ -118,7 +117,7 @@ TestExitStatus WebserverTests::testFilesPageInvalidParameterValue() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress()+"files?path=error");
+ g_system->openUrl(LocalServer.getAddress()+"files?path=error");
if (Testsuite::handleInteractiveInput(
Common::String::format("The %sfiles?path=error page displays error message?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {
@@ -144,7 +143,7 @@ TestExitStatus WebserverTests::testFilesPageCreateDirectory() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/");
+ g_system->openUrl(LocalServer.getAddress() + "files?path=/root/");
if (Testsuite::handleInteractiveInput(
Common::String::format("You could go to %sfiles page, navigate to some directory with write access and create a directory there?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {
@@ -170,7 +169,7 @@ TestExitStatus WebserverTests::testFilesPageUploadFile() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/");
+ g_system->openUrl(LocalServer.getAddress() + "files?path=/root/");
if (Testsuite::handleInteractiveInput(
Common::String::format("You're able to upload a file in some directory with write access through %sfiles page?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {
@@ -196,7 +195,7 @@ TestExitStatus WebserverTests::testFilesPageUploadDirectory() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/");
+ g_system->openUrl(LocalServer.getAddress() + "files?path=/root/");
if (Testsuite::handleInteractiveInput(
Common::String::format("You're able to upload a directory into some directory with write access through %sfiles page using Chrome?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {
@@ -222,7 +221,7 @@ TestExitStatus WebserverTests::testFilesPageDownloadFile() {
return kTestSkipped;
}
- Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/");
+ g_system->openUrl(LocalServer.getAddress() + "files?path=/root/");
if (Testsuite::handleInteractiveInput(
Common::String::format("You're able to download a file through %sfiles page?", LocalServer.getAddress().c_str()),
"Yes", "No", kOptionRight)) {