| Index: content/public/test/browser_test_base.cc
|
| diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
|
| index 3a5575092f498be01108423b13cfb24e2a0a4274..4cbceaa57ab7e26176464b46c0154eb3146d9fcc 100644
|
| --- a/content/public/test/browser_test_base.cc
|
| +++ b/content/public/test/browser_test_base.cc
|
| @@ -9,7 +9,9 @@
|
| #include "base/debug/stack_trace.h"
|
| #include "base/i18n/icu_util.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/strings/string_number_conversions.h"
|
| #include "base/sys_info.h"
|
| +#include "base/test/test_timeouts.h"
|
| #include "content/public/app/content_main.h"
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -157,6 +159,12 @@ BrowserTestBase::~BrowserTestBase() {
|
| void BrowserTestBase::SetUp() {
|
| CommandLine* command_line = CommandLine::ForCurrentProcess();
|
|
|
| + // Override the child process connection timeout since tests can exceed that
|
| + // when sharded.
|
| + command_line->AppendSwitchASCII(
|
| + switches::kConnectionTimeout,
|
| + base::IntToString(TestTimeouts::action_max_timeout().InSeconds()));
|
| +
|
| // The tests assume that file:// URIs can freely access other file:// URIs.
|
| command_line->AppendSwitch(switches::kAllowFileAccessFromFiles);
|
|
|
|
|