class FakeObject : public BaseObject
{
};
-// used for testing ThisIsSaferThanReturningVoidStar
-class FakeHandle : public BaseHandle
-{
-public:
- void RunTest()
- {
- return ThisIsSaferThanReturningVoidStar();
- }
-};
} // namespace
int UtcDaliBaseHandleConstructorVoid(void)
END_TEST;
}
-int UtcDaliBaseHandleThisIsSaferThanReturningVoidStar(void)
-{
- TestApplication application;
- tet_infoline("Testing Dali::BaseHandle::GetTypeInfo");
- FakeHandle handle;
- handle.RunTest();
- tet_result(TET_PASS);
- END_TEST;
-}
-
int UtcDaliBaseHandleGetTypeInfoN(void)
{
TestApplication application;
int UtcDaliBaseHandleBooleanCast(void)
{
TestApplication application;
- tet_infoline("Testing Dali::BaseHandle::BooleanType");
+ tet_infoline("Testing Dali::BaseHandle::operator bool");
// get the root layer
BaseHandle handle = Actor::New();
- DALI_TEST_CHECK(static_cast<BaseHandle::BooleanType>(handle));
+ DALI_TEST_CHECK(static_cast<bool>(handle));
END_TEST;
}