2 * Copyright (c) 2014 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>
20 #include <dali-test-suite-utils.h>
24 void utc_dali_window_startup(void)
26 test_return_value = TET_UNDEF;
29 void utc_dali_window_cleanup(void)
31 test_return_value = TET_PASS;
37 intptr_t screenId = 0; // intptr_t has the same size as a pointer and is platform independent so this can be returned as a pointer in ecore_x_default_screen_get below without compilation warnings
39 } // unnamed namespace
44 Ecore_X_Screen* ecore_x_default_screen_get(void)
47 return (Ecore_X_Screen*)screenId;
50 void ecore_x_screen_size_get(const Ecore_X_Screen *screen, int *w, int *h)
56 Ecore_X_Window ecore_x_window_argb_new(Ecore_X_Window parent, int x, int y, int w, int h)
63 int UtcDaliToolkitWindowConstructorP(void)
66 DALI_TEST_CHECK( !window );
70 int UtcDaliToolkitWindowCopyConstructorP(void)
73 Dali::Window copy( window );
74 DALI_TEST_CHECK( copy == window );
79 int UtcDaliToolkitWindowAssignmentOperatorP(void)
82 Dali::Window copy = window;
83 DALI_TEST_CHECK( copy == window );
88 int UtcDaliWindowDestructorP(void)
90 Dali::Window* window = new Dali::Window();
93 DALI_TEST_CHECK( true );
97 int UtcDaliWindowNewN(void)
99 // Attempt to create a new window
102 PositionSize windowPosition(0, 0, 0, 0);
103 Dali::Window window = Dali::Window::New( windowPosition, "test-window", true );
105 tet_result( TET_FAIL );
107 catch ( DaliException& e )
109 DALI_TEST_ASSERT( e, "Failed to create X window", TEST_LOCATION );