mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
ceftests: Add support for scaling default test timeout values
This commit is contained in:
@@ -373,8 +373,8 @@ class HttpTestRunner : public base::RefCountedThreadSafe<HttpTestRunner> {
|
||||
|
||||
void SetTestTimeout(int timeout_ms) {
|
||||
EXPECT_UI_THREAD();
|
||||
if (CefCommandLine::GetGlobalCommandLine()->HasSwitch(
|
||||
"disable-test-timeout")) {
|
||||
const auto timeout = GetConfiguredTestTimeout(timeout_ms);
|
||||
if (!timeout) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -382,8 +382,8 @@ class HttpTestRunner : public base::RefCountedThreadSafe<HttpTestRunner> {
|
||||
// test runner can be destroyed before the timeout expires.
|
||||
GetUIThreadHelper()->PostDelayedTask(
|
||||
base::BindOnce(&HttpTestRunner::OnTestTimeout, base::Unretained(this),
|
||||
timeout_ms),
|
||||
timeout_ms);
|
||||
*timeout),
|
||||
*timeout);
|
||||
}
|
||||
|
||||
void OnTestTimeout(int timeout_ms) {
|
||||
|
Reference in New Issue
Block a user