summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-12-09 08:04:30 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 16:59:48 +0200
commitd5c3f1bf261d98f6d1c0eddcddc4226ad073afb2 (patch)
tree0a8e2d539b1367aef69a54def3518cdc2b2dbf98 /test/source
parentaf5b0086239b2d0e33b4dcc5b7d401a0e1fc6a70 (diff)
uitest: add groundwork for ui testing framework
Change-Id: I51b81da870fd220d56b32c20b9e6c4604912a014
Diffstat (limited to 'test/source')
-rw-r--r--test/source/uitest/uiobject.cxx35
-rw-r--r--test/source/uitest/uitest.cxx12
2 files changed, 47 insertions, 0 deletions
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: */