tests: check surfaceProperties.creatorPid too
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Tue, 19 Aug 2014 13:35:14 +0000 (15:35 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Mon, 1 Sep 2014 06:55:44 +0000 (15:55 +0900)
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/test/ilm_control_test.cpp

index b1217e7..6251737 100644 (file)
 
 #include <gtest/gtest.h>
 #include <stdio.h>
+
+#include <unistd.h>
+#include <sys/types.h>
+
 #include "TestBase.h"
 
 extern "C" {
@@ -746,6 +750,7 @@ TEST_F(IlmCommandTest, ilm_getPropertiesOfSurface_ilm_surfaceSetSourceRectangle_
     ASSERT_EQ(9u, surfaceProperties.destHeight);
     ASSERT_EQ(ILM_NINETY, surfaceProperties.orientation);
     ASSERT_TRUE( surfaceProperties.visibility);
+    ASSERT_EQ(getpid(), surfaceProperties.creatorPid);
 
     ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface, 0.436));
     ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetSourceRectangle(surface, 784, 546, 235, 78));