Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/public/test/browser_test.h" | |
| 6 #include "headless/public/headless_browser.h" | |
| 7 #include "headless/public/headless_web_contents.h" | |
| 8 #include "headless/test/headless_browser_test.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | |
| 10 #include "ui/gfx/geometry/size.h" | |
| 11 | |
| 12 namespace headless { | |
| 13 | |
| 14 IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, CreateAndDestroyWebContents) { | |
| 15 scoped_ptr<HeadlessWebContents> web_contents = | |
| 16 browser()->CreateWebContents({800, 600}); | |
| 17 EXPECT_TRUE(web_contents); | |
|
alex clarke (OOO till 29th)
2016/02/10 13:20:34
Can we check that the view bounds are 800x600?
Pr
Sami
2016/02/10 16:43:33
Not currently -- I've removed that method for now.
| |
| 18 web_contents.reset(); | |
| 19 } | |
| 20 | |
| 21 } // namespace headless | |
| OLD | NEW |