Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: headless/lib/headless_browser_browsertest.cc

Issue 1674263002: headless: Initial headless embedder API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix shutdown memory leak. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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});
Ryan Sleevi 2016/02/25 22:04:36 STYLE: uniform initialization syntax is not allowe
Sami 2016/02/26 18:49:16 Oops, missed this one. Fixed.
17 EXPECT_TRUE(web_contents);
18 // TODO(skyostil): Verify viewport dimensions once we can.
19 web_contents.reset();
20 }
21
22 } // namespace headless
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698