2 * Copyright (c) 2020 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.
21 #include <dali-toolkit/internal/feedback/feedback-style.h>
22 #include <dali-toolkit-test-suite-utils.h>
23 #include <dali-toolkit/dali-toolkit.h>
24 #include <dali/devel-api/adaptor-framework/feedback-player.h>
27 using namespace Toolkit;
39 * @brief Sets the return value of the FeedbackPlayer::LoadFile() method of the stub implementation.
41 * Used to improve the line coverage.
43 * @param[in] feedbackPlayer The FeedbackPlayer singleton.
44 * @param[in] returnValue The desired return value for the FeedbackPlayer::LoadFile() method. Either true or false.
46 void SetLoadFileReturnValue( Dali::FeedbackPlayer feedbackPlayer, bool returnValue );
54 int UtcDaliFeedbackStyle(void)
56 // Not too much to test. Just to improve coverage.
58 ToolkitTestApplication application;
59 tet_infoline(" UtcDaliFeedbackStyle");
63 Toolkit::Internal::FeedbackStyle feedbackStyle;
65 Dali::FeedbackPlayer feedbackPlayer = Dali::FeedbackPlayer::Get();
66 Dali::Internal::Adaptor::SetLoadFileReturnValue(feedbackPlayer, false);
68 Toolkit::Internal::FeedbackStyle feedbackStyle2;
70 Dali::Internal::Adaptor::SetLoadFileReturnValue(feedbackPlayer, true);