Chromium Code Reviews| Index: headless/lib/headless_browser_browsertest.cc |
| diff --git a/headless/lib/headless_browser_browsertest.cc b/headless/lib/headless_browser_browsertest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1b932c8c6f428a538ce32d4ebdcf27555caf750e |
| --- /dev/null |
| +++ b/headless/lib/headless_browser_browsertest.cc |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/public/test/browser_test.h" |
| +#include "headless/public/headless_browser.h" |
| +#include "headless/public/headless_web_contents.h" |
| +#include "headless/test/headless_browser_test.h" |
| +#include "testing/gtest/include/gtest/gtest.h" |
| +#include "ui/gfx/geometry/size.h" |
| + |
| +namespace headless { |
| + |
| +IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, CreateAndDestroyWebContents) { |
| + scoped_ptr<HeadlessWebContents> web_contents = |
| + browser()->CreateWebContents({800, 600}); |
| + 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.
|
| + web_contents.reset(); |
| +} |
| + |
| +} // namespace headless |