(AutomatedTests) Move devel-api dependent tests to internal tests
[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/devel-api/actors/mesh-actor.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 UtcDaliMeshActorConstructorRefObject(void)
65 {
66   TestApplication application;
67   tet_infoline("Testing Dali::MeshActor::MeshActor(Internal::MeshActor*)");
68
69   MeshActor actor(NULL);
70   DALI_TEST_CHECK(!actor);
71
72   MeshActor* actorPtr = new MeshActor();
73   DALI_TEST_CHECK( ! *actorPtr );
74   delete actorPtr;
75   END_TEST;
76 }
77
78 int UtcDaliTextActorConstructorRefObject(void)
79 {
80   TestApplication application;
81   tet_infoline("Testing Dali::TextActor::TextActor(Internal::TextActor*)");
82   ImageActor actor(NULL);
83   DALI_TEST_CHECK(!actor);
84   END_TEST;
85 }