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.
20 #include <dali/public-api/dali-core.h>
21 #include <dali-test-suite-utils.h>
22 #include <dali/devel-api/dynamics/dynamics.h>
27 int UtcDaliDynamicsWorldConfigConstructor(void)
29 #if !defined(DYNAMICS_SUPPORT)
30 tet_infoline("No dynamics support compiled\n");
33 tet_infoline("UtcDaliDynamicsWorldConfigConstructor - DynamicsWorldConfig::DynamicsWorldConfig");
35 TestApplication application;
38 application.SendNotification();
42 // Default constructor - create an uninitialized handle
43 DynamicsWorldConfig worldConfig;
44 DALI_TEST_CHECK( !worldConfig );
47 worldConfig = DynamicsWorldConfig::New();
49 DALI_TEST_CHECK( worldConfig );
53 int UtcDaliDynamicsWorldConfigNew(void)
55 #if !defined(DYNAMICS_SUPPORT)
56 tet_infoline("No dynamics support compiled\n");
59 tet_infoline("UtcDaliDynamicsWorldConfigNew - DynamicsWorldConfig::New");
61 TestApplication application;
64 application.SendNotification();
68 // Default constructor - create an uninitialized handle
69 DynamicsWorldConfig worldConfig( DynamicsWorldConfig::New() );
71 DALI_TEST_CHECK( worldConfig );
75 int UtcDaliDynamicsWorldConfigType(void)
77 #if !defined(DYNAMICS_SUPPORT)
78 tet_infoline("No dynamics support compiled\n");
81 TestApplication application;
84 application.SendNotification();
88 // Default constructor - create an uninitialized handle
89 DynamicsWorldConfig worldConfig( DynamicsWorldConfig::New() );
91 tet_infoline("UtcDaliDynamicsWorldConfigNew - DynamicsWorldConfig::GetType");
92 DALI_TEST_CHECK(DynamicsWorldConfig::RIGID == worldConfig.GetType());
94 tet_infoline("UtcDaliDynamicsWorldConfigNew - DynamicsWorldConfig::SetType");
95 worldConfig.SetType(DynamicsWorldConfig::SOFT);
96 DALI_TEST_CHECK(DynamicsWorldConfig::SOFT == worldConfig.GetType());