Commit 6198868c authored by skyostil's avatar skyostil Committed by Commit bot

headless: Fix two issues that are making the bot red

1. Update to match new signature of WebContentsCreated.

2. Allow IO in the newly added renderer command prefix test.

Review-Url: https://codereview.chromium.org/2394463002
Cr-Commit-Position: refs/heads/master@{#422757}
parent 189778ba
......@@ -8,6 +8,7 @@
#include "base/files/file_util.h"
#include "base/memory/ptr_util.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/test/browser_test.h"
#include "headless/public/domains/network.h"
#include "headless/public/domains/page.h"
......@@ -603,6 +604,7 @@ IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, SetCookiesWithDevTools) {
#define MAYBE_RendererCommandPrefixTest DISABLED_RendererCommandPrefixTest
#endif // defined(OS_POSIX)
IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, MAYBE_RendererCommandPrefixTest) {
base::ThreadRestrictions::SetIOAllowed(true);
base::FilePath launcher_stamp;
base::CreateTemporaryFile(&launcher_stamp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment