diff options
Diffstat (limited to 'unotest/source/cpp')
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 5c5b3bcc3a9c..5eb5b91dcaf0 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -13,6 +13,10 @@ #include <comphelper/processfactory.hxx> #include <basic/sbstar.hxx> +#if defined _WIN32 +#include <systools/win32/uwinapi.h> +#endif + using namespace ::com::sun::star; // NB. this constructor is called before any tests are run, once for each @@ -32,4 +36,13 @@ void test::BootstrapFixtureBase::setUp() void test::BootstrapFixtureBase::tearDown() { StarBASIC::DetachAllDocBasicItems(); } +bool test::BootstrapFixtureBase::isWindowsRDP() const +{ +#if defined _WIN32 + return GetSystemMetrics(SM_REMOTESESSION); +#else + return false; +#endif +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |