aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslaw Jaryszew <jaroslaw.jaryszew@teleca.com>2010-07-19 16:36:10 +0200
committerDaniel d'Andrada <daniel.dandrada@nokia.com>2010-07-20 10:35:11 +0300
commit98bb5aa71d0fa3ce2eb19e57b0b0704c5148ba87 (patch)
tree8e7c6ccfea7fd5090918e79c203e2b57408401a3
parent0c46a1d19dc0366d37404b6fcbf44cb2574c7b6d (diff)
Changes: Stubbed MDeviceProfile methods for 2 unit tests.
RevBy: Daniel d'Andrada Details: MDeviceProfile::orientationAngleIsSupported is now stubbed for ut_mwindow and ut_mscenemanager.
-rw-r--r--tests/ut_mscenemanager/ut_mscenemanager.cpp9
-rw-r--r--tests/ut_mwindow/ut_mwindow.cpp8
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ut_mscenemanager/ut_mscenemanager.cpp b/tests/ut_mscenemanager/ut_mscenemanager.cpp
index 80d87008..78420750 100644
--- a/tests/ut_mscenemanager/ut_mscenemanager.cpp
+++ b/tests/ut_mscenemanager/ut_mscenemanager.cpp
@@ -38,6 +38,15 @@
#include <MComponentData>
#include <mapplicationwindow.h>
+#include <MDeviceProfile>
+
+bool MDeviceProfile::orientationAngleIsSupported(M::OrientationAngle angle, bool isKeyboardOpen) const
+{
+ Q_UNUSED(isKeyboardOpen);
+ if (angle == M::Angle270)
+ return true;
+ return false;
+}
bool gMWindowIsOnDisplay = false;
bool MWindow::isOnDisplay() const
diff --git a/tests/ut_mwindow/ut_mwindow.cpp b/tests/ut_mwindow/ut_mwindow.cpp
index 65357011..8a9cb805 100644
--- a/tests/ut_mwindow/ut_mwindow.cpp
+++ b/tests/ut_mwindow/ut_mwindow.cpp
@@ -26,6 +26,14 @@
#include "ut_mwindow.h"
+bool MDeviceProfile::orientationAngleIsSupported(M::OrientationAngle angle, bool isKeyboardOpen) const
+{
+ Q_UNUSED(isKeyboardOpen);
+ if (angle == M::Angle270)
+ return true;
+ return false;
+}
+
MWindow *win;
// Variables for onDisplay -tests