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

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

Issue 2473073003: [headless] Refactor headless devtools client API. (Closed)
Patch Set: Address nits Created 4 years, 1 month 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
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | headless/public/domains/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/public/test/browser_test.h" 9 #include "content/public/test/browser_test.h"
10 #include "headless/public/domains/page.h" 10 #include "headless/public/devtools/domains/page.h"
11 #include "headless/public/headless_browser.h" 11 #include "headless/public/headless_browser.h"
12 #include "headless/public/headless_devtools_client.h" 12 #include "headless/public/headless_devtools_client.h"
13 #include "headless/public/headless_web_contents.h" 13 #include "headless/public/headless_web_contents.h"
14 #include "headless/test/headless_browser_test.h" 14 #include "headless/test/headless_browser_test.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 using testing::UnorderedElementsAre; 20 using testing::UnorderedElementsAre;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void OnScreenshotCaptured( 68 void OnScreenshotCaptured(
69 std::unique_ptr<page::CaptureScreenshotResult> result) { 69 std::unique_ptr<page::CaptureScreenshotResult> result) {
70 EXPECT_LT(0U, result->GetData().length()); 70 EXPECT_LT(0U, result->GetData().length());
71 FinishAsynchronousTest(); 71 FinishAsynchronousTest();
72 } 72 }
73 }; 73 };
74 74
75 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessWebContentsScreenshotTest); 75 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessWebContentsScreenshotTest);
76 76
77 } // namespace headless 77 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | headless/public/domains/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698