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

Side by Side Diff: headless/lib/headless_devtools_client_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
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 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "content/public/browser/render_widget_host_view.h" 8 #include "content/public/browser/render_widget_host_view.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/test/browser_test.h" 10 #include "content/public/test/browser_test.h"
11 #include "headless/lib/browser/headless_web_contents_impl.h" 11 #include "headless/lib/browser/headless_web_contents_impl.h"
12 #include "headless/public/domains/emulation.h" 12 #include "headless/public/devtools/domains/emulation.h"
13 #include "headless/public/domains/network.h" 13 #include "headless/public/devtools/domains/network.h"
14 #include "headless/public/domains/page.h" 14 #include "headless/public/devtools/domains/page.h"
15 #include "headless/public/domains/runtime.h" 15 #include "headless/public/devtools/domains/runtime.h"
16 #include "headless/public/domains/target.h" 16 #include "headless/public/devtools/domains/target.h"
17 #include "headless/public/headless_browser.h" 17 #include "headless/public/headless_browser.h"
18 #include "headless/public/headless_devtools_client.h" 18 #include "headless/public/headless_devtools_client.h"
19 #include "headless/public/headless_devtools_target.h" 19 #include "headless/public/headless_devtools_target.h"
20 #include "headless/test/headless_browser_test.h" 20 #include "headless/test/headless_browser_test.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 #define EXPECT_SIZE_EQ(expected, actual) \ 24 #define EXPECT_SIZE_EQ(expected, actual) \
25 do { \ 25 do { \
26 EXPECT_EQ((expected).width(), (actual).width()); \ 26 EXPECT_EQ((expected).width(), (actual).width()); \
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 FinishAsynchronousTest(); 654 FinishAsynchronousTest();
655 } 655 }
656 656
657 private: 657 private:
658 bool navigation_requested_ = false; 658 bool navigation_requested_ = false;
659 }; 659 };
660 660
661 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest); 661 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest);
662 662
663 } // namespace headless 663 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/headless_browser_browsertest.cc ('k') | headless/lib/headless_web_contents_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698