2 * Copyright (c) 2018 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.
19 #include <dali/public-api/dali-core.h>
20 #include <dali/integration-api/core.h>
21 #include <dali-test-suite-utils.h>
26 class TestProcessor : public Integration::Processor
34 virtual void Process()
43 int UtcDaliCoreProcessorP(void)
45 TestApplication application;
47 TestProcessor testProcessor;
48 Integration::Core& core = application.GetCore();
49 core.RegisterProcessor( testProcessor );
51 tet_infoline("Test that the processor has not been executed yet:");
52 DALI_TEST_CHECK( testProcessor.processRun == false );
54 application.SendNotification();
56 tet_infoline("Test that the processor has been executed:");
57 DALI_TEST_CHECK( testProcessor.processRun );
59 // Clear down for next part of test
60 testProcessor.processRun = false;
62 core.UnregisterProcessor( testProcessor );
63 application.SendNotification();
64 tet_infoline("Test that the processor has not been executed again:");
65 DALI_TEST_CHECK( testProcessor.processRun == false );