2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
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 "../../../inc/test.h"
19 #if (TEST_MODE == TEST_UNIT)
21 #include "../inc/unit.h"
22 #include "unit_test_assert_test/unit_test_assert.h"
23 #include "unit_test_function_test/unit_test_function.h"
24 #include "unit_test_group_test/unit_test_group.h"
26 #include <Elementary.h>
28 static bool __create(void * data)
37 static void __app_control(app_control_h app_control_handle, void * data)
41 static void __resume(void * data)
45 static void __pause(void * data)
49 static void __terminate(void * data)
51 __TU("If there's no log, test is successful.");
54 int main(int argc, char *argv[])
56 ui_app_lifecycle_callback_s lifecycle_callback = {NULL, };
58 lifecycle_callback.create = __create;
59 lifecycle_callback.app_control = __app_control;
60 lifecycle_callback.resume = __resume;
61 lifecycle_callback.pause = __pause;
62 lifecycle_callback.terminate = __terminate;
64 int ret = ui_app_main(argc, argv, &lifecycle_callback, NULL);
65 if (ret != APP_ERROR_NONE) {
66 __T("app_main() is failed. err = %d", ret);