diff options
Diffstat (limited to 'Tools/WebKitTestRunner/TestController.h')
-rw-r--r-- | Tools/WebKitTestRunner/TestController.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/Tools/WebKitTestRunner/TestController.h b/Tools/WebKitTestRunner/TestController.h index b0ad979e0..f6debdd15 100644 --- a/Tools/WebKitTestRunner/TestController.h +++ b/Tools/WebKitTestRunner/TestController.h @@ -46,6 +46,12 @@ class TestController { public: static TestController& shared(); + static const unsigned viewWidth; + static const unsigned viewHeight; + + static const unsigned w3cSVGViewWidth; + static const unsigned w3cSVGViewHeight; + TestController(int argc, const char* argv[]); ~TestController(); @@ -60,10 +66,12 @@ public: void ensureViewSupportsOptions(WKDictionaryRef options); // Runs the run loop until `done` is true or the timeout elapses. - enum TimeoutDuration { ShortTimeout, LongTimeout, NoTimeout }; + enum TimeoutDuration { ShortTimeout, LongTimeout, NoTimeout, CustomTimeout }; bool useWaitToDumpWatchdogTimer() { return m_useWaitToDumpWatchdogTimer; } void runUntil(bool& done, TimeoutDuration); void notifyDone(); + + int getCustomTimeout(); bool beforeUnloadReturnValue() const { return m_beforeUnloadReturnValue; } void setBeforeUnloadReturnValue(bool value) { m_beforeUnloadReturnValue = value; } @@ -86,6 +94,12 @@ public: WorkQueueManager& workQueueManager() { return m_workQueueManager; } + void setHandlesAuthenticationChallenges(bool value) { m_handlesAuthenticationChallenges = value; } + void setAuthenticationUsername(String username) { m_authenticationUsername = username; } + void setAuthenticationPassword(String password) { m_authenticationPassword = password; } + + void setBlockAllPlugins(bool shouldBlock) { m_shouldBlockAllPlugins = shouldBlock; } + private: void initialize(int argc, const char* argv[]); void createWebViewWithOptions(WKDictionaryRef); @@ -110,6 +124,8 @@ private: void didReceiveMessageFromInjectedBundle(WKStringRef messageName, WKTypeRef messageBody); WKRetainPtr<WKTypeRef> didReceiveSynchronousMessageFromInjectedBundle(WKStringRef messageName, WKTypeRef messageBody); + void didReceiveKeyDownMessageFromInjectedBundle(WKDictionaryRef messageBodyDictionary, bool synchronous); + // WKPageLoaderClient static void didCommitLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef userData, const void*); void didCommitLoadForFrame(WKPageRef, WKFrameRef); @@ -120,9 +136,18 @@ private: static void processDidCrash(WKPageRef, const void* clientInfo); void processDidCrash(); + static WKPluginLoadPolicy pluginLoadPolicy(WKPageRef, WKPluginLoadPolicy currentPluginLoadPolicy, WKDictionaryRef pluginInformation, WKStringRef* unavailabilityDescription, const void* clientInfo); + WKPluginLoadPolicy pluginLoadPolicy(WKPageRef, WKPluginLoadPolicy currentPluginLoadPolicy, WKDictionaryRef pluginInformation, WKStringRef* unavailabilityDescription); + + static void decidePolicyForNotificationPermissionRequest(WKPageRef, WKSecurityOriginRef, WKNotificationPermissionRequestRef, const void*); void decidePolicyForNotificationPermissionRequest(WKPageRef, WKSecurityOriginRef, WKNotificationPermissionRequestRef); + static void unavailablePluginButtonClicked(WKPageRef, WKPluginUnavailabilityReason, WKDictionaryRef, const void*); + + static void didReceiveAuthenticationChallengeInFrame(WKPageRef, WKFrameRef, WKAuthenticationChallengeRef, const void *clientInfo); + void didReceiveAuthenticationChallengeInFrame(WKPageRef, WKFrameRef, WKAuthenticationChallengeRef); + // WKPagePolicyClient static void decidePolicyForNavigationAction(WKPageRef, WKFrameRef, WKFrameNavigationType, WKEventModifiers, WKEventMouseButton, WKURLRequestRef, WKFramePolicyListenerRef, WKTypeRef, const void*); void decidePolicyForNavigationAction(WKFramePolicyListenerRef); @@ -169,6 +194,8 @@ private: bool m_useWaitToDumpWatchdogTimer; bool m_forceNoTimeout; + int m_timeout; + bool m_didPrintWebProcessCrashedMessage; bool m_shouldExitWhenWebProcessCrashes; @@ -182,6 +209,12 @@ private: bool m_policyDelegateEnabled; bool m_policyDelegatePermissive; + bool m_handlesAuthenticationChallenges; + String m_authenticationUsername; + String m_authenticationPassword; + + bool m_shouldBlockAllPlugins; + #if PLATFORM(MAC) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL) OwnPtr<EventSenderProxy> m_eventSenderProxy; #endif |