summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-03 03:45:32 -0700
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-17 10:15:04 +0900
commit7823d6cfc3a02078440c4f4cf8fa777ee9aeb6ec (patch)
tree9128f5f2bd8c1bab85723594854a2d5260f2213e
parente4e932c762fac1a8e82ac826f818ce2931872d76 (diff)
downloadwayland-ivi-extension-7823d6cfc3a02078440c4f4cf8fa777ee9aeb6ec.tar.gz
test: Fix an initial value of t_ilm_notification_mask and operations
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rw-r--r--ivi-layermanagement-api/test/ilm_control_notification_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ivi-layermanagement-api/test/ilm_control_notification_test.cpp b/ivi-layermanagement-api/test/ilm_control_notification_test.cpp
index d146364..012769e 100644
--- a/ivi-layermanagement-api/test/ilm_control_notification_test.cpp
+++ b/ivi-layermanagement-api/test/ilm_control_notification_test.cpp
@@ -65,7 +65,7 @@ public:
// set default values
callbackLayerId = -1;
LayerProperties = ilmLayerProperties();
- mask = ILM_NOTIFICATION_ALL;
+ mask = static_cast<t_ilm_notification_mask>(0);
surface = -1;
SurfaceProperties = ilmSurfaceProperties();
// create a layer
@@ -136,7 +136,7 @@ public:
NotificationTest::callbackLayerId = layer;
NotificationTest::LayerProperties = *LayerProperties;
- NotificationTest::mask = mask;
+ NotificationTest::mask = static_cast<t_ilm_notification_mask>(NotificationTest::mask|mask);
timesCalled++;
pthread_cond_signal( &waiterVariable );
}
@@ -147,7 +147,7 @@ public:
NotificationTest::callbackSurfaceId = surface;
NotificationTest::SurfaceProperties = *surfaceProperties;
- NotificationTest::mask = mask;
+ NotificationTest::mask = static_cast<t_ilm_notification_mask>(NotificationTest::mask|mask);
timesCalled++;
pthread_cond_signal( &waiterVariable );
}