webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
WTR::TestController Class Reference

#include <TestController.h>

Public Member Functions

 TestController (int argc, const char *argv[])
 
 ~TestController ()
 
bool verbose () const
 
WKStringRef injectedBundlePath () const
 
WKStringRef testPluginDirectory () const
 
PlatformWebViewmainWebView ()
 
WKContextRef context ()
 
EventSenderProxyeventSenderProxy ()
 
bool shouldUseRemoteLayerTree () const
 
bool useWaitToDumpWatchdogTimer ()
 
void runUntil (bool &done, double timeoutSeconds)
 
void notifyDone ()
 
bool shouldShowWebView () const
 
bool usingServerMode () const
 
void configureViewForTest (const TestInvocation &)
 
bool beforeUnloadReturnValue () const
 
void setBeforeUnloadReturnValue (bool value)
 
void simulateWebNotificationClick (uint64_t notificationID)
 
void setGeolocationPermission (bool)
 
void setMockGeolocationPosition (double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed)
 
void setMockGeolocationPositionUnavailableError (WKStringRef errorMessage)
 
void handleGeolocationPermissionRequest (WKGeolocationPermissionRequestRef)
 
bool isGeolocationProviderActive () const
 
String saltForOrigin (WKFrameRef, String)
 
void getUserMediaInfoForOrigin (WKFrameRef, WKStringRef originKey, bool &, WKRetainPtr< WKStringRef > &)
 
WKStringRef getUserMediaSaltForOrigin (WKFrameRef, WKStringRef originKey)
 
void setUserMediaPermission (bool)
 
void setUserMediaPersistentPermissionForOrigin (bool, WKStringRef userMediaDocumentOriginString, WKStringRef topLevelDocumentOriginString)
 
void handleUserMediaPermissionRequest (WKFrameRef, WKSecurityOriginRef, WKSecurityOriginRef, WKUserMediaPermissionRequestRef)
 
void handleCheckOfUserMediaPermissionForOrigin (WKFrameRef, WKSecurityOriginRef, WKSecurityOriginRef, const WKUserMediaPermissionCheckRef &)
 
OriginSettingssettingsForOrigin (const String &)
 
unsigned userMediaPermissionRequestCountForOrigin (WKStringRef userMediaDocumentOriginString, WKStringRef topLevelDocumentOriginString)
 
void resetUserMediaPermissionRequestCountForOrigin (WKStringRef userMediaDocumentOriginString, WKStringRef topLevelDocumentOriginString)
 
void setCustomPolicyDelegate (bool enabled, bool permissive)
 
void setHidden (bool)
 
unsigned imageCountInGeneralPasteboard () const
 
bool resetStateToConsistentValues (const TestOptions &)
 
void resetPreferencesToConsistentValues (const TestOptions &)
 
void terminateWebContentProcess ()
 
void reattachPageToWebProcess ()
 
WorkQueueManagerworkQueueManager ()
 
void setRejectsProtectionSpaceAndContinueForAuthenticationChallenges (bool value)
 
void setHandlesAuthenticationChallenges (bool value)
 
void setAuthenticationUsername (String username)
 
void setAuthenticationPassword (String password)
 
void setBlockAllPlugins (bool shouldBlock)
 
void setShouldLogHistoryClientCallbacks (bool shouldLog)
 
void setShouldLogCanAuthenticateAgainstProtectionSpace (bool shouldLog)
 
bool isCurrentInvocation (TestInvocation *invocation) const
 
void setShouldDecideNavigationPolicyAfterDelay (bool value)
 
void setNavigationGesturesEnabled (bool value)
 
void setIgnoresViewportScaleLimits (bool)
 
void setShouldDownloadUndisplayableMIMETypes (bool value)
 
void setStatisticsPrevalentResource (WKStringRef hostName, bool value)
 
bool isStatisticsPrevalentResource (WKStringRef hostName)
 
void setStatisticsHasHadUserInteraction (WKStringRef hostName, bool value)
 
bool isStatisticsHasHadUserInteraction (WKStringRef hostName)
 
void setStatisticsSubframeUnderTopFrameOrigin (WKStringRef hostName, WKStringRef topFrameHostName)
 
void setStatisticsSubresourceUnderTopFrameOrigin (WKStringRef hostName, WKStringRef topFrameHostName)
 
void setStatisticsSubresourceUniqueRedirectTo (WKStringRef hostName, WKStringRef hostNameRedirectedTo)
 
void setStatisticsTimeToLiveUserInteraction (double seconds)
 
void statisticsFireDataModificationHandler ()
 
void setStatisticsNotifyPagesWhenDataRecordsWereScanned (bool)
 
void setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval (bool)
 
void setStatisticsMinimumTimeBetweeenDataRecordsRemoval (double)
 
void statisticsResetToConsistentState ()
 
WKArrayRef openPanelFileURLs () const
 
void setOpenPanelFileURLs (WKArrayRef fileURLs)
 

Static Public Member Functions

static TestControllersingleton ()
 
static const char * webProcessName ()
 
static const char * networkProcessName ()
 
static const char * databaseProcessName ()
 

Static Public Attributes

static const unsigned viewWidth = 800
 
static const unsigned viewHeight = 600
 
static const unsigned w3cSVGViewWidth = 480
 
static const unsigned w3cSVGViewHeight = 360
 
static const double defaultShortTimeout = 5.0
 
static const double noTimeout = -1
 

Constructor & Destructor Documentation

◆ TestController()

WTR::TestController::TestController ( int  argc,
const char *  argv[] 
)

◆ ~TestController()

WTR::TestController::~TestController ( )

Member Function Documentation

◆ beforeUnloadReturnValue()

bool WTR::TestController::beforeUnloadReturnValue ( ) const
inline

◆ configureViewForTest()

void WTR::TestController::configureViewForTest ( const TestInvocation test)

◆ context()

WKContextRef WTR::TestController::context ( )
inline

◆ databaseProcessName()

const char * WTR::TestController::databaseProcessName ( )
static

◆ eventSenderProxy()

EventSenderProxy* WTR::TestController::eventSenderProxy ( )
inline

◆ getUserMediaInfoForOrigin()

void WTR::TestController::getUserMediaInfoForOrigin ( WKFrameRef  ,
WKStringRef  originKey,
bool &  ,
WKRetainPtr< WKStringRef > &   
)

◆ getUserMediaSaltForOrigin()

WKStringRef WTR::TestController::getUserMediaSaltForOrigin ( WKFrameRef  ,
WKStringRef  originKey 
)

◆ handleCheckOfUserMediaPermissionForOrigin()

void WTR::TestController::handleCheckOfUserMediaPermissionForOrigin ( WKFrameRef  frame,
WKSecurityOriginRef  userMediaDocumentOrigin,
WKSecurityOriginRef  topLevelDocumentOrigin,
const WKUserMediaPermissionCheckRef checkRequest 
)

◆ handleGeolocationPermissionRequest()

void WTR::TestController::handleGeolocationPermissionRequest ( WKGeolocationPermissionRequestRef  geolocationPermissionRequest)

◆ handleUserMediaPermissionRequest()

void WTR::TestController::handleUserMediaPermissionRequest ( WKFrameRef  frame,
WKSecurityOriginRef  userMediaDocumentOrigin,
WKSecurityOriginRef  topLevelDocumentOrigin,
WKUserMediaPermissionRequestRef  request 
)

◆ imageCountInGeneralPasteboard()

unsigned WTR::TestController::imageCountInGeneralPasteboard ( ) const

◆ injectedBundlePath()

WKStringRef WTR::TestController::injectedBundlePath ( ) const
inline

◆ isCurrentInvocation()

bool WTR::TestController::isCurrentInvocation ( TestInvocation invocation) const
inline

◆ isGeolocationProviderActive()

bool WTR::TestController::isGeolocationProviderActive ( ) const

◆ isStatisticsHasHadUserInteraction()

bool WTR::TestController::isStatisticsHasHadUserInteraction ( WKStringRef  hostName)

◆ isStatisticsPrevalentResource()

bool WTR::TestController::isStatisticsPrevalentResource ( WKStringRef  hostName)

◆ mainWebView()

PlatformWebView* WTR::TestController::mainWebView ( )
inline

◆ networkProcessName()

const char * WTR::TestController::networkProcessName ( )
static

◆ notifyDone()

void WTR::TestController::notifyDone ( )

◆ openPanelFileURLs()

WKArrayRef WTR::TestController::openPanelFileURLs ( ) const
inline

◆ reattachPageToWebProcess()

void WTR::TestController::reattachPageToWebProcess ( )

◆ resetPreferencesToConsistentValues()

void WTR::TestController::resetPreferencesToConsistentValues ( const TestOptions options)

◆ resetStateToConsistentValues()

bool WTR::TestController::resetStateToConsistentValues ( const TestOptions options)

◆ resetUserMediaPermissionRequestCountForOrigin()

void WTR::TestController::resetUserMediaPermissionRequestCountForOrigin ( WKStringRef  userMediaDocumentOriginString,
WKStringRef  topLevelDocumentOriginString 
)

◆ runUntil()

void WTR::TestController::runUntil ( bool &  done,
double  timeoutSeconds 
)

◆ saltForOrigin()

String WTR::TestController::saltForOrigin ( WKFrameRef  frame,
String  originHash 
)

◆ setAuthenticationPassword()

void WTR::TestController::setAuthenticationPassword ( String  password)
inline

◆ setAuthenticationUsername()

void WTR::TestController::setAuthenticationUsername ( String  username)
inline

◆ setBeforeUnloadReturnValue()

void WTR::TestController::setBeforeUnloadReturnValue ( bool  value)
inline

◆ setBlockAllPlugins()

void WTR::TestController::setBlockAllPlugins ( bool  shouldBlock)
inline

◆ setCustomPolicyDelegate()

void WTR::TestController::setCustomPolicyDelegate ( bool  enabled,
bool  permissive 
)

◆ setGeolocationPermission()

void WTR::TestController::setGeolocationPermission ( bool  enabled)

◆ setHandlesAuthenticationChallenges()

void WTR::TestController::setHandlesAuthenticationChallenges ( bool  value)
inline

◆ setHidden()

void WTR::TestController::setHidden ( bool  hidden)

◆ setIgnoresViewportScaleLimits()

void WTR::TestController::setIgnoresViewportScaleLimits ( bool  ignoresViewportScaleLimits)

◆ setMockGeolocationPosition()

void WTR::TestController::setMockGeolocationPosition ( double  latitude,
double  longitude,
double  accuracy,
bool  providesAltitude,
double  altitude,
bool  providesAltitudeAccuracy,
double  altitudeAccuracy,
bool  providesHeading,
double  heading,
bool  providesSpeed,
double  speed 
)

◆ setMockGeolocationPositionUnavailableError()

void WTR::TestController::setMockGeolocationPositionUnavailableError ( WKStringRef  errorMessage)

◆ setNavigationGesturesEnabled()

void WTR::TestController::setNavigationGesturesEnabled ( bool  value)

◆ setOpenPanelFileURLs()

void WTR::TestController::setOpenPanelFileURLs ( WKArrayRef  fileURLs)
inline

◆ setRejectsProtectionSpaceAndContinueForAuthenticationChallenges()

void WTR::TestController::setRejectsProtectionSpaceAndContinueForAuthenticationChallenges ( bool  value)
inline

◆ setShouldDecideNavigationPolicyAfterDelay()

void WTR::TestController::setShouldDecideNavigationPolicyAfterDelay ( bool  value)
inline

◆ setShouldDownloadUndisplayableMIMETypes()

void WTR::TestController::setShouldDownloadUndisplayableMIMETypes ( bool  value)
inline

◆ setShouldLogCanAuthenticateAgainstProtectionSpace()

void WTR::TestController::setShouldLogCanAuthenticateAgainstProtectionSpace ( bool  shouldLog)
inline

◆ setShouldLogHistoryClientCallbacks()

void WTR::TestController::setShouldLogHistoryClientCallbacks ( bool  shouldLog)
inline

◆ setStatisticsHasHadUserInteraction()

void WTR::TestController::setStatisticsHasHadUserInteraction ( WKStringRef  hostName,
bool  value 
)

◆ setStatisticsMinimumTimeBetweeenDataRecordsRemoval()

void WTR::TestController::setStatisticsMinimumTimeBetweeenDataRecordsRemoval ( double  seconds)

◆ setStatisticsNotifyPagesWhenDataRecordsWereScanned()

void WTR::TestController::setStatisticsNotifyPagesWhenDataRecordsWereScanned ( bool  value)

◆ setStatisticsPrevalentResource()

void WTR::TestController::setStatisticsPrevalentResource ( WKStringRef  hostName,
bool  value 
)

◆ setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval()

void WTR::TestController::setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval ( bool  value)

◆ setStatisticsSubframeUnderTopFrameOrigin()

void WTR::TestController::setStatisticsSubframeUnderTopFrameOrigin ( WKStringRef  hostName,
WKStringRef  topFrameHostName 
)

◆ setStatisticsSubresourceUnderTopFrameOrigin()

void WTR::TestController::setStatisticsSubresourceUnderTopFrameOrigin ( WKStringRef  hostName,
WKStringRef  topFrameHostName 
)

◆ setStatisticsSubresourceUniqueRedirectTo()

void WTR::TestController::setStatisticsSubresourceUniqueRedirectTo ( WKStringRef  hostName,
WKStringRef  hostNameRedirectedTo 
)

◆ setStatisticsTimeToLiveUserInteraction()

void WTR::TestController::setStatisticsTimeToLiveUserInteraction ( double  seconds)

◆ settingsForOrigin()

OriginSettings & WTR::TestController::settingsForOrigin ( const String originHash)

◆ setUserMediaPermission()

void WTR::TestController::setUserMediaPermission ( bool  enabled)

◆ setUserMediaPersistentPermissionForOrigin()

void WTR::TestController::setUserMediaPersistentPermissionForOrigin ( bool  permission,
WKStringRef  userMediaDocumentOriginString,
WKStringRef  topLevelDocumentOriginString 
)

◆ shouldShowWebView()

bool WTR::TestController::shouldShowWebView ( ) const
inline

◆ shouldUseRemoteLayerTree()

bool WTR::TestController::shouldUseRemoteLayerTree ( ) const
inline

◆ simulateWebNotificationClick()

void WTR::TestController::simulateWebNotificationClick ( uint64_t  notificationID)

◆ singleton()

TestController & WTR::TestController::singleton ( )
static

◆ statisticsFireDataModificationHandler()

void WTR::TestController::statisticsFireDataModificationHandler ( )

◆ statisticsResetToConsistentState()

void WTR::TestController::statisticsResetToConsistentState ( )

◆ terminateWebContentProcess()

void WTR::TestController::terminateWebContentProcess ( )

◆ testPluginDirectory()

WKStringRef WTR::TestController::testPluginDirectory ( ) const
inline

◆ userMediaPermissionRequestCountForOrigin()

unsigned WTR::TestController::userMediaPermissionRequestCountForOrigin ( WKStringRef  userMediaDocumentOriginString,
WKStringRef  topLevelDocumentOriginString 
)

◆ useWaitToDumpWatchdogTimer()

bool WTR::TestController::useWaitToDumpWatchdogTimer ( )
inline

◆ usingServerMode()

bool WTR::TestController::usingServerMode ( ) const
inline

◆ verbose()

bool WTR::TestController::verbose ( ) const
inline

◆ webProcessName()

const char * WTR::TestController::webProcessName ( )
static

◆ workQueueManager()

WorkQueueManager& WTR::TestController::workQueueManager ( )
inline

Member Data Documentation

◆ defaultShortTimeout

const double WTR::TestController::defaultShortTimeout = 5.0
static

◆ noTimeout

const double WTR::TestController::noTimeout = -1
static

◆ viewHeight

const unsigned WTR::TestController::viewHeight = 600
static

◆ viewWidth

const unsigned WTR::TestController::viewWidth = 800
static

◆ w3cSVGViewHeight

const unsigned WTR::TestController::w3cSVGViewHeight = 360
static

◆ w3cSVGViewWidth

const unsigned WTR::TestController::w3cSVGViewWidth = 480
static

The documentation for this class was generated from the following files: