Index: headless/lib/headless_web_contents_browsertest.cc |
diff --git a/headless/lib/headless_web_contents_browsertest.cc b/headless/lib/headless_web_contents_browsertest.cc |
index 5cff88c0441b2529962893f61341be2272bb62e3..88700d95c23cbc3a773de186fd7f9858b105b54c 100644 |
--- a/headless/lib/headless_web_contents_browsertest.cc |
+++ b/headless/lib/headless_web_contents_browsertest.cc |
@@ -23,8 +23,11 @@ class HeadlessWebContentsTest : public HeadlessBrowserTest {}; |
IN_PROC_BROWSER_TEST_F(HeadlessWebContentsTest, Navigation) { |
EXPECT_TRUE(embedded_test_server()->Start()); |
- HeadlessWebContents* web_contents = browser()->CreateWebContents( |
- embedded_test_server()->GetURL("/hello.html"), gfx::Size(800, 600)); |
+ HeadlessWebContents* web_contents = |
+ browser() |
+ ->CreateWebContentsBuilder() |
+ .SetInitialURL(embedded_test_server()->GetURL("/hello.html")) |
+ .Build(); |
EXPECT_TRUE(WaitForLoad(web_contents)); |
std::vector<HeadlessWebContents*> all_web_contents = |
@@ -37,8 +40,11 @@ IN_PROC_BROWSER_TEST_F(HeadlessWebContentsTest, Navigation) { |
IN_PROC_BROWSER_TEST_F(HeadlessWebContentsTest, WindowOpen) { |
EXPECT_TRUE(embedded_test_server()->Start()); |
- HeadlessWebContents* web_contents = browser()->CreateWebContents( |
- embedded_test_server()->GetURL("/window_open.html"), gfx::Size(800, 600)); |
+ HeadlessWebContents* web_contents = |
+ browser() |
+ ->CreateWebContentsBuilder() |
+ .SetInitialURL(embedded_test_server()->GetURL("/window_open.html")) |
+ .Build(); |
EXPECT_TRUE(WaitForLoad(web_contents)); |
std::vector<HeadlessWebContents*> all_web_contents = |