2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/dali-core.h>
20 #include <dali/devel-api/rendering/cull-face.h>
21 #include <dali-test-suite-utils.h>
25 void cull_face_test_startup(void)
27 test_return_value = TET_UNDEF;
30 void cull_face_test_cleanup(void)
32 test_return_value = TET_PASS;
35 int UtcDaliSetGetCullFaceP(void)
37 TestApplication application;
39 ImageActor imageActor = ImageActor::New();
41 DALI_TEST_CHECK( CullNone == GetCullFace( imageActor ) );
43 SetCullFace( imageActor, CullBack );
45 DALI_TEST_CHECK( CullBack == GetCullFace( imageActor ) );
50 int UtcDaliSetCullFaceN(void)
52 TestApplication application;
56 ImageActor imageActor;
57 SetCullFace( imageActor, CullBack );
58 DALI_TEST_CHECK( false ); // Should not reach here.
62 DALI_TEST_CHECK( true ); // Should throw
67 int UtcDaliGetCullFaceN(void)
69 TestApplication application;
73 ImageActor imageActor;
74 CullFaceMode mode = GetCullFace( imageActor );
76 DALI_TEST_CHECK( false ); // Should not reach here.
80 DALI_TEST_CHECK( true ); // Should throw