2 * Copyright (c) 2015 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.
18 #include <dali/dali.h>
19 #include <dali-test-suite-utils.h>
23 void utc_dali_ttsplayer_startup(void)
25 test_return_value = TET_UNDEF;
28 void utc_dali_ttsplayer_cleanup(void)
30 test_return_value = TET_PASS;
36 } // unnamed namespace
38 int UtcDaliTtsPlayerConstructorP(void)
40 Dali::TtsPlayer player;
41 DALI_TEST_CHECK( !player );
45 int UtcDaliTtsPlayerCopyConstructorP(void)
47 Dali::TtsPlayer player;
48 Dali::TtsPlayer copy( player );
49 DALI_TEST_CHECK( copy == player );
54 int UtcDaliTtsPlayerAssignmentOperatorP(void)
56 Dali::TtsPlayer player;
58 DALI_TEST_CHECK( ! copy );
60 DALI_TEST_CHECK( copy == player );
65 int UtcDaliTtsPlayerDestructorP(void)
67 Dali::TtsPlayer* player = new Dali::TtsPlayer();
70 DALI_TEST_CHECK( true );
74 int UtcDaliTtsPlayerConstructorFromInternalPointerN(void)
76 Internal::Adaptor::TtsPlayer* internalPlayer = NULL;
77 Dali::TtsPlayer player(internalPlayer);
78 DALI_TEST_CHECK( !player ); // Should not reach here!
83 int UtcDaliTtsPlayerGetP(void)
85 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
86 DALI_TEST_CHECK( !player );
90 int UtcDaliTtsPlayerPlayN(void)
92 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
97 DALI_TEST_CHECK( false ); // Should not reach here!
101 DALI_TEST_CHECK( true );
107 int UtcDaliTtsPlayerStopN(void)
109 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
114 DALI_TEST_CHECK( false ); // Should not reach here!
118 DALI_TEST_CHECK( true );
124 int UtcDaliTtsPlayerPauseN(void)
126 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
131 DALI_TEST_CHECK( false ); // Should not reach here!
135 DALI_TEST_CHECK( true );
141 int UtcDaliTtsPlayerResumeN(void)
143 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
148 DALI_TEST_CHECK( false ); // Should not reach here!
152 DALI_TEST_CHECK( true );
158 int UtcDaliTtsPlayerGetStateN(void)
160 Dali::TtsPlayer player = Dali::TtsPlayer::Get();
164 Dali::TtsPlayer::State state = player.GetState();
165 DALI_TEST_CHECK( false ); // Should not reach here!
169 DALI_TEST_CHECK( true );