X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-render-controller.cpp;h=1b90e0c49f910c13fba81ad18d5e47ea20b5af33;hb=6a219d0bbcfd016e24b5466d5fb1a666c92feae5;hp=76b20de8fefb95f8fe05e961deaf8faddce8b005;hpb=fa6279fb2830427d5ab569ca14e6ade1557ef2fa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp index 76b20de..1b90e0c 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-render-controller.cpp @@ -1,24 +1,24 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #include "test-render-controller.h" namespace Dali { - TestRenderController::TestRenderController() { Initialize(); @@ -28,12 +28,12 @@ TestRenderController::~TestRenderController() { } -void TestRenderController::RequestUpdate() +void TestRenderController::RequestUpdate(bool forceUpdate) { mRequestUpdateCalled = true; } -void TestRenderController::RequestProcessEventsOnIdle() +void TestRenderController::RequestProcessEventsOnIdle(bool forceProcess) { mRequestProcessEventsOnIdleCalled = true; } @@ -42,8 +42,10 @@ bool TestRenderController::WasCalled(TestRenderControllerFuncEnum func) { switch(func) { - case RequestUpdateFunc: return mRequestUpdateCalled; - case RequestProcessEventsOnIdleFunc: return mRequestProcessEventsOnIdleCalled; + case RequestUpdateFunc: + return mRequestUpdateCalled; + case RequestProcessEventsOnIdleFunc: + return mRequestProcessEventsOnIdleCalled; } return false; @@ -51,9 +53,8 @@ bool TestRenderController::WasCalled(TestRenderControllerFuncEnum func) void TestRenderController::Initialize() { - mRequestUpdateCalled = false; + mRequestUpdateCalled = false; mRequestProcessEventsOnIdleCalled = false; } - -} // namespace dali +} // namespace Dali