예제 #1
0
void LayoutTestController::setWaitToDump(bool waitUntilDone)
{
    static const int timeoutSeconds = 30;

    m_waitToDump = waitUntilDone;
    if (m_waitToDump && shouldSetWaitToDumpWatchdog())
        setWaitToDumpWatchdog(g_timeout_add_seconds(timeoutSeconds, waitToDumpWatchdogFired, 0));
}
예제 #2
0
void TestRunner::setWaitToDump(bool waitUntilDone)
{
    static const int timeoutSeconds = 30;

    m_waitToDump = waitUntilDone;
    if (m_waitToDump && shouldSetWaitToDumpWatchdog()) {
        guint id = g_timeout_add_seconds(timeoutSeconds, waitToDumpWatchdogFired, 0);
        g_source_set_name_by_id(id, "[WebKit] waitToDumpWatchdogFired");
        setWaitToDumpWatchdog(id);
    }
}
예제 #3
0
static gboolean waitToDumpWatchdogFired(void*)
{
    setWaitToDumpWatchdog(0);
    gLayoutTestController->waitToDumpWatchdogTimerFired();
    return FALSE;
}
예제 #4
0
static gboolean waitToDumpWatchdogFired(void*)
{
    setWaitToDumpWatchdog(0);
    gTestRunner->waitToDumpWatchdogTimerFired();
    return FALSE;
}