History

Added method to detect OS type. Needed for running automated tests.

NissimHadar committed 8 years ago

Commit 189a7991 parent 935a8c92 files · +17 −0Browse files

Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/TestScriptingInterface.cpp+10−0
@@ -199,3 +199,13 @@ void TestScriptingInterface::setOtherAvatarsReplicaCount(int count) { · 198 unmodified lines
199int TestScriptingInterface::getOtherAvatarsReplicaCount() {199int TestScriptingInterface::getOtherAvatarsReplicaCount() {
200 return qApp->getOtherAvatarsReplicaCount();200 return qApp->getOtherAvatarsReplicaCount();
201}201}
202
203QString TestScriptingInterface::getOperatingSystemType() {
204#ifdef Q_OS_WIN
205 return "WINDOWS";
206#elif defined Q_OS_MAC
207 return "MACOS";
208#else
209 return "UNKNOWN";
210#endif
211}