ASSERT_TRUE(pLayerGroup);
/// make sure, layer group is initially empty
- EXPECT_EQ(0, pLayerGroup->getList().size());
+ EXPECT_EQ(0u, pLayerGroup->getList().size());
// cleanup
if (pLayerGroup)
ASSERT_TRUE(pSurfaceGroup);
/// make sure, surface group is initially empty
- EXPECT_EQ(0, pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, pSurfaceGroup->getList().size());
// cleanup
if (pSurfaceGroup)
EXPECT_EQ(expectedId, pLayerGroup->getID());
/// make sure, layer group is initially empty
- EXPECT_EQ(0, pLayerGroup->getList().size());
+ EXPECT_EQ(0u, pLayerGroup->getList().size());
// cleanup
if (pLayerGroup)
EXPECT_EQ(expectedId, pSurfaceGroup->getID());
/// make sure, surface group is initially empty
- EXPECT_EQ(0, pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, pSurfaceGroup->getList().size());
// cleanup
if (pSurfaceGroup)
TEST_F(GraphicalGroupTest, getList_Layer)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pLayerGroup->getList().size());
+ EXPECT_EQ(0u, m_pLayerGroup->getList().size());
/// add 3 layers to graphical group
Layer l1, l2, l3;
m_pLayerGroup->addElement(&l3);
/// make sure, list not contains 3 elements
- EXPECT_EQ(3, m_pLayerGroup->getList().size());
+ EXPECT_EQ(3u, m_pLayerGroup->getList().size());
/// remove 2 layers from graphical group
m_pLayerGroup->removeElement(&l2);
m_pLayerGroup->removeElement(&l3);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pLayerGroup->getList().size());
+ EXPECT_EQ(1u, m_pLayerGroup->getList().size());
/// remove last layers from graphical group
m_pLayerGroup->removeElement(&l1);
/// make sure, list is empty
- EXPECT_EQ(0, m_pLayerGroup->getList().size());
+ EXPECT_EQ(0u, m_pLayerGroup->getList().size());
}
TEST_F(GraphicalGroupTest, getList_Surface)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, m_pSurfaceGroup->getList().size());
/// add 3 surfaces to graphical group
Surface l1, l2, l3;
m_pSurfaceGroup->addElement(&l3);
/// make sure, list not contains 3 elements
- EXPECT_EQ(3, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(3u, m_pSurfaceGroup->getList().size());
/// remove 2 surfaces from graphical group
m_pSurfaceGroup->removeElement(&l2);
m_pSurfaceGroup->removeElement(&l3);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(1u, m_pSurfaceGroup->getList().size());
/// remove last surfaces from graphical group
m_pSurfaceGroup->removeElement(&l1);
/// make sure, list is empty
- EXPECT_EQ(0, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, m_pSurfaceGroup->getList().size());
}
TEST_F(GraphicalGroupTest, addElement_Layer)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pLayerGroup->getList().size());
+ EXPECT_EQ(0u, m_pLayerGroup->getList().size());
/// add 1 layer to graphical group
Layer l1;
m_pLayerGroup->addElement(&l1);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pLayerGroup->getList().size());
+ EXPECT_EQ(1u, m_pLayerGroup->getList().size());
/// add 2 layers to graphical group
Layer l2, l3;
m_pLayerGroup->addElement(&l3);
/// make sure, list contains 3 element
- EXPECT_EQ(3, m_pLayerGroup->getList().size());
+ EXPECT_EQ(3u, m_pLayerGroup->getList().size());
}
TEST_F(GraphicalGroupTest, addElement_Surface)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, m_pSurfaceGroup->getList().size());
/// add 1 surface to graphical group
Surface l1;
m_pSurfaceGroup->addElement(&l1);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(1u, m_pSurfaceGroup->getList().size());
/// add 2 surfaces to graphical group
Surface l2, l3;
m_pSurfaceGroup->addElement(&l3);
/// make sure, list contains 3 element
- EXPECT_EQ(3, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(3u, m_pSurfaceGroup->getList().size());
}
TEST_F(GraphicalGroupTest, removeElement_Layer)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pLayerGroup->getList().size());
+ EXPECT_EQ(0u, m_pLayerGroup->getList().size());
/// add 3 layers to graphical group
Layer l1, l2, l3;
m_pLayerGroup->addElement(&l3);
/// make sure, list not contains 3 elements
- EXPECT_EQ(3, m_pLayerGroup->getList().size());
+ EXPECT_EQ(3u, m_pLayerGroup->getList().size());
/// remove 2 layers from graphical group
m_pLayerGroup->removeElement(&l2);
m_pLayerGroup->removeElement(&l3);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pLayerGroup->getList().size());
+ EXPECT_EQ(1u, m_pLayerGroup->getList().size());
/// remove last layers from graphical group
m_pLayerGroup->removeElement(&l1);
/// make sure, list is empty
- EXPECT_EQ(0, m_pLayerGroup->getList().size());
+ EXPECT_EQ(0u, m_pLayerGroup->getList().size());
}
TEST_F(GraphicalGroupTest, removeElement_Surface)
{
/// make sure, list is empty
- EXPECT_EQ(0, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, m_pSurfaceGroup->getList().size());
/// add 3 surfaces to graphical group
Surface l1, l2, l3;
m_pSurfaceGroup->addElement(&l3);
/// make sure, list not contains 3 elements
- EXPECT_EQ(3, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(3u, m_pSurfaceGroup->getList().size());
/// remove 2 surfaces from graphical group
m_pSurfaceGroup->removeElement(&l2);
m_pSurfaceGroup->removeElement(&l3);
/// make sure, list not contains 1 element
- EXPECT_EQ(1, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(1u, m_pSurfaceGroup->getList().size());
/// remove last surfaces from graphical group
m_pSurfaceGroup->removeElement(&l1);
/// make sure, list is empty
- EXPECT_EQ(0, m_pSurfaceGroup->getList().size());
+ EXPECT_EQ(0u, m_pSurfaceGroup->getList().size());
}
TEST_F(GraphicalGroupTest, DISABLED_getShader)
/// make sure, surface has default source rectangle
const Rectangle& srcRect = surface.getSourceRegion();
- EXPECT_EQ(0, srcRect.height);
- EXPECT_EQ(0, srcRect.width);
- EXPECT_EQ(0, srcRect.x);
- EXPECT_EQ(0, srcRect.y);
+ EXPECT_EQ(0u, srcRect.height);
+ EXPECT_EQ(0u, srcRect.width);
+ EXPECT_EQ(0u, srcRect.x);
+ EXPECT_EQ(0u, srcRect.y);
/// make sure, surface has default destination rectangle
const Rectangle& destRect = surface.getDestinationRegion();
- EXPECT_EQ(0, destRect.height);
- EXPECT_EQ(0, destRect.width);
- EXPECT_EQ(0, destRect.x);
- EXPECT_EQ(0, destRect.y);
+ EXPECT_EQ(0u, destRect.height);
+ EXPECT_EQ(0u, destRect.width);
+ EXPECT_EQ(0u, destRect.x);
+ EXPECT_EQ(0u, destRect.y);
/// make sure, surface has no native content associated
EXPECT_FALSE(m_pSurface->hasNativeContent());
/// make sure, surface has default source rectangle
const Rectangle& srcRect = surface.getSourceRegion();
- EXPECT_EQ(0, srcRect.height);
- EXPECT_EQ(0, srcRect.width);
- EXPECT_EQ(0, srcRect.x);
- EXPECT_EQ(0, srcRect.y);
+ EXPECT_EQ(0u, srcRect.height);
+ EXPECT_EQ(0u, srcRect.width);
+ EXPECT_EQ(0u, srcRect.x);
+ EXPECT_EQ(0u, srcRect.y);
/// make sure, surface has default destination rectangle
const Rectangle& destRect = surface.getDestinationRegion();
- EXPECT_EQ(0, destRect.height);
- EXPECT_EQ(0, destRect.width);
- EXPECT_EQ(0, destRect.x);
- EXPECT_EQ(0, destRect.y);
+ EXPECT_EQ(0u, destRect.height);
+ EXPECT_EQ(0u, destRect.width);
+ EXPECT_EQ(0u, destRect.x);
+ EXPECT_EQ(0u, destRect.y);
/// make sure, surface has no native content associated
EXPECT_FALSE(m_pSurface->hasNativeContent());
/// make sure, surface has 1st expected native content associated
EXPECT_TRUE(m_pSurface->hasNativeContent());
- EXPECT_EQ(expectedNativeHandle1, m_pSurface->getNativeContent());
+ EXPECT_EQ((long)expectedNativeHandle1, m_pSurface->getNativeContent());
/// set 2nd expected native content of surface
m_pSurface->setNativeContent(expectedNativeHandle2);
/// make sure, surface still has 1st expected native content associated
EXPECT_TRUE(m_pSurface->hasNativeContent());
- EXPECT_EQ(expectedNativeHandle1, m_pSurface->getNativeContent());
+ EXPECT_EQ((long)expectedNativeHandle1, m_pSurface->getNativeContent());
/// remove native content of surface
m_pSurface->removeNativeContent();
/// make sure, surface has 2nd expected native content associated
EXPECT_TRUE(m_pSurface->hasNativeContent());
- EXPECT_EQ(expectedNativeHandle2, m_pSurface->getNativeContent());
+ EXPECT_EQ((long)expectedNativeHandle2, m_pSurface->getNativeContent());
}
TEST_F(SurfaceTest, getNativeContent)
/// make sure, surface has 1st expected native content associated
EXPECT_TRUE(m_pSurface->hasNativeContent());
- EXPECT_EQ(expectedNativeHandle1, m_pSurface->getNativeContent());
+ EXPECT_EQ((long)expectedNativeHandle1, m_pSurface->getNativeContent());
/// remove native content of surface
m_pSurface->removeNativeContent();
/// make sure, surface has 2nd expected native content associated
EXPECT_TRUE(m_pSurface->hasNativeContent());
- EXPECT_EQ(expectedNativeHandle2, m_pSurface->getNativeContent());
+ EXPECT_EQ((long)expectedNativeHandle2, m_pSurface->getNativeContent());
}