[WK2][EFL] Add callbacks to the WKViewClient to handle Web Process crash and relaunch
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformEfl.cmake
1 add_custom_target(forwarding-headersEflForTestWebKitAPI
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
3     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
4 )
5 set(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersEflForTestWebKitAPI)
6
7 add_custom_target(forwarding-headersSoupForTestWebKitAPI
8     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
9     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
10 )
11 set(ForwardingNetworkHeadersForTestWebKitAPI_NAME forwarding-headersSoupForTestWebKitAPI)
12
13 include_directories(
14     ${WEBKIT2_DIR}/UIProcess/API/C/soup
15     ${WEBKIT2_DIR}/UIProcess/API/C/efl
16     ${WEBKIT2_DIR}/UIProcess/API/efl
17     ${ECORE_INCLUDE_DIRS}
18     ${EINA_INCLUDE_DIRS}
19     ${EO_INCLUDE_DIRS}
20     ${EVAS_INCLUDE_DIRS}
21     ${GLIB_INCLUDE_DIRS}
22     ${LIBSOUP_INCLUDE_DIRS}
23 )
24
25 set(test_main_SOURCES
26     ${TESTWEBKITAPI_DIR}/efl/main.cpp
27 )
28
29 set(bundle_harness_SOURCES
30     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
31     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
32 )
33
34 set(webkit2_api_harness_SOURCES
35     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
36     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
37 )
38
39 # The list below works like a test expectation. Tests in the
40 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
41 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
42 # are compiled and suffixed with fail and skipped from the test runner.
43 #
44 # Make sure that the tests are passing on both Debug and
45 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
46
47 set(test_webcore_BINARIES
48     LayoutUnit
49     KURL
50 )
51
52 set(test_webkit2_api_BINARIES
53     AboutBlankLoad
54     CookieManager
55     DOMWindowExtensionNoCache
56     DocumentStartUserScriptAlertCrash
57     EvaluateJavaScript
58     FailedLoad
59     Find
60     ForceRepaint
61     FrameMIMETypeHTML
62     FrameMIMETypePNG
63     GetInjectedBundleInitializationUserDataCallback
64     HitTestResultNodeHandle
65     InjectedBundleBasic
66     InjectedBundleFrameHitTest
67     InjectedBundleInitializationUserDataCallbackWins
68     LoadAlternateHTMLStringWithNonDirectoryURL
69     LoadCanceledNoServerRedirectCallback
70     MouseMoveAfterCrash
71     ReloadPageAfterCrash
72     ResizeWindowAfterCrash
73     NewFirstVisuallyNonEmptyLayout
74     NewFirstVisuallyNonEmptyLayoutFails
75     NewFirstVisuallyNonEmptyLayoutForImages
76     PageLoadBasic
77     PageLoadDidChangeLocationWithinPageForFrame
78     ParentFrame
79     PreventEmptyUserAgent
80     PrivateBrowsingPushStateNoHistoryCallback
81     ShouldGoToBackForwardListItem
82     UserMessage
83     WKConnection
84     WKPreferences
85     WKString
86     WKStringJSString
87     WKURL
88     WillSendSubmitEvent
89     efl/WKViewClientWebProcessCallbacks
90 )
91
92 set(test_webkit2_api_fail_BINARIES
93     CanHandleRequest
94     DOMWindowExtensionBasic
95     DownloadDecideDestinationCrash
96     NewFirstVisuallyNonEmptyLayoutFrames
97     RestoreSessionStateContainingFormData
98     WKPageGetScaleFactorNotZero
99 )
100
101 add_definitions(-DTHEME_DIR="${THEME_BINARY_DIR}")
102
103 # Tests disabled because of missing features on the test harness:
104 #
105 #   ResponsivenessTimerDoesntFireEarly
106 #   SpacebarScrolling