Merge "Klockwork fixes: Distance field iteration Checking for null...
[platform/core/uifw/dali-core.git] / automated-tests / src / dali-internal / utc-Dali-Internal-Handles.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 #include <iostream>
19
20 #include <stdlib.h>
21 #include <dali/public-api/dali-core.h>
22 #include <dali/integration-api/glyph-set.h>
23
24 #include <dali-test-suite-utils.h>
25
26 // Internal headers are allowed here
27
28
29 using namespace Dali;
30
31 void utc_dali_internal_handles_startup()
32 {
33   test_return_value = TET_UNDEF;
34 }
35
36 void utc_dali_internal_handles_cleanup()
37 {
38   test_return_value = TET_PASS;
39 }
40
41
42 int UtcDaliCameraActorConstructorRefObject(void)
43 {
44   TestApplication application;
45   tet_infoline("Testing Dali::CameraActor::CameraActor(Internal::CameraActor*)");
46
47   CameraActor actor(NULL);
48
49   DALI_TEST_CHECK(!actor);
50   END_TEST;
51 }
52
53 int UtcDaliImageActorConstructorRefObject(void)
54 {
55   TestApplication application;
56   tet_infoline("Testing Dali::ImageActor::ImageActor(Internal::ImageActor*)");
57
58   ImageActor actor(NULL);
59
60   DALI_TEST_CHECK(!actor);
61   END_TEST;
62 }
63
64 int UtcDaliLightActorConstructorRefObject(void)
65 {
66   TestApplication application;
67   tet_infoline("Testing Dali::LightActor::LightActor(Internal::LightActor*) UtcDaliLightActorConstructorRefObject");
68
69   LightActor actor(NULL);
70
71   DALI_TEST_CHECK(!actor);
72   END_TEST;
73 }
74
75 int UtcDaliMeshActorConstructorRefObject(void)
76 {
77   TestApplication application;
78   tet_infoline("Testing Dali::MeshActor::MeshActor(Internal::MeshActor*)");
79
80   MeshActor actor(NULL);
81   DALI_TEST_CHECK(!actor);
82
83   MeshActor* actorPtr = new MeshActor();
84   DALI_TEST_CHECK( ! *actorPtr );
85   delete actorPtr;
86   END_TEST;
87 }
88
89 int UtcDaliModelConstructorRefObject(void)
90 {
91   TestApplication application;
92   tet_infoline("Testing Dali::Model::Model(Internal::Model*)");
93
94   Model model(NULL);
95
96   DALI_TEST_CHECK(!model);
97   END_TEST;
98 }
99
100 int UtcDaliTextActorConstructorRefObject(void)
101 {
102   TestApplication application;
103   tet_infoline("Testing Dali::TextActor::TextActor(Internal::TextActor*)");
104   TextActor actor(NULL);
105   DALI_TEST_CHECK(!actor);
106   END_TEST;
107 }