diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-12-09 08:04:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 16:59:48 +0200 |
commit | d5c3f1bf261d98f6d1c0eddcddc4226ad073afb2 (patch) | |
tree | 0a8e2d539b1367aef69a54def3518cdc2b2dbf98 /test | |
parent | af5b0086239b2d0e33b4dcc5b7d401a0e1fc6a70 (diff) |
uitest: add groundwork for ui testing framework
Change-Id: I51b81da870fd220d56b32c20b9e6c4604912a014
Diffstat (limited to 'test')
-rw-r--r-- | test/Library_uitest.mk | 45 | ||||
-rw-r--r-- | test/Module_test.mk | 1 | ||||
-rw-r--r-- | test/source/uitest/uiobject.cxx | 35 | ||||
-rw-r--r-- | test/source/uitest/uitest.cxx | 12 |
4 files changed, 93 insertions, 0 deletions
diff --git a/test/Library_uitest.mk b/test/Library_uitest.mk new file mode 100644 index 000000000000..851b543e2378 --- /dev/null +++ b/test/Library_uitest.mk @@ -0,0 +1,45 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Library_Library,uitest)) + +$(eval $(call gb_Library_add_defs,uitest,\ + -DOOO_DLLIMPLEMENTATION_UITEST \ +)) + +$(eval $(call gb_Library_use_sdk_api,uitest)) + +$(eval $(call gb_Library_use_externals,uitest,\ + boost_headers \ + cppunit \ + libxml2 \ +)) + +$(eval $(call gb_Library_use_libraries,uitest,\ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + i18nlangtag \ + sal \ + svt \ + tl \ + unotest \ + utl \ + vcl \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_Library_add_exception_objects,uitest,\ + test/source/uitest/uitest \ + test/source/uitest/uiobject \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/test/Module_test.mk b/test/Module_test.mk index 7482d280e94e..c43a11fdf2d9 100644 --- a/test/Module_test.mk +++ b/test/Module_test.mk @@ -14,6 +14,7 @@ ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) $(eval $(call gb_Module_add_targets,test,\ Library_test \ Library_subsequenttest \ + Library_uitest \ Library_vclbootstrapprotector \ Package_unittest \ )) diff --git a/test/source/uitest/uiobject.cxx b/test/source/uitest/uiobject.cxx new file mode 100644 index 000000000000..ea8a71594799 --- /dev/null +++ b/test/source/uitest/uiobject.cxx @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <test/uiobject.hxx> + +UIObject::~UIObject() +{ +} + +std::map<const OUString, OUString> UIObject::get_state() +{ + std::map<const OUString, OUString> aMap; + aMap["NotImplemented"] = "NotImplemented"; + return aMap; +} + +void UIObject::execute(const OUString& /*rAction*/, + const std::map<const OUString, OUString>& /*rParameters*/) +{ + // should never be called + throw std::exception(); +} + +UIObjectType UIObject::getType() +{ + return UIObjectType::UNKNOWN; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/source/uitest/uitest.cxx b/test/source/uitest/uitest.cxx new file mode 100644 index 000000000000..92c2f135f47d --- /dev/null +++ b/test/source/uitest/uitest.cxx @@ -0,0 +1,12 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <test/uitest.hxx> + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |