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

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

Issue 2249743002: [DevTools] Rename entities in js_protocol, remove deprecated ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html » ('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 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "content/public/test/browser_test.h" 8 #include "content/public/test/browser_test.h"
9 #include "headless/public/domains/browser.h" 9 #include "headless/public/domains/browser.h"
10 #include "headless/public/domains/network.h" 10 #include "headless/public/domains/network.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsClientObserverTest); 168 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsClientObserverTest);
169 169
170 class HeadlessDevToolsClientExperimentalTest 170 class HeadlessDevToolsClientExperimentalTest
171 : public HeadlessAsyncDevTooledBrowserTest, 171 : public HeadlessAsyncDevTooledBrowserTest,
172 page::ExperimentalObserver { 172 page::ExperimentalObserver {
173 public: 173 public:
174 void RunDevTooledTest() override { 174 void RunDevTooledTest() override {
175 EXPECT_TRUE(embedded_test_server()->Start()); 175 EXPECT_TRUE(embedded_test_server()->Start());
176 // Check that experimental commands require parameter objects. 176 // Check that experimental commands require parameter objects.
177 devtools_client_->GetRuntime()->GetExperimental()->Run( 177 devtools_client_->GetRuntime()->GetExperimental()->RunIfWaitingForDebugger(
178 runtime::RunParams::Builder().Build()); 178 runtime::RunIfWaitingForDebuggerParams::Builder().Build());
179 179
180 devtools_client_->GetPage()->GetExperimental()->AddObserver(this); 180 devtools_client_->GetPage()->GetExperimental()->AddObserver(this);
181 devtools_client_->GetPage()->Enable(); 181 devtools_client_->GetPage()->Enable();
182 devtools_client_->GetPage()->Navigate( 182 devtools_client_->GetPage()->Navigate(
183 embedded_test_server()->GetURL("/hello.html").spec()); 183 embedded_test_server()->GetURL("/hello.html").spec());
184 } 184 }
185 185
186 void OnFrameStoppedLoading( 186 void OnFrameStoppedLoading(
187 const page::FrameStoppedLoadingParams& params) override { 187 const page::FrameStoppedLoadingParams& params) override {
188 FinishAsynchronousTest(); 188 FinishAsynchronousTest();
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 FinishAsynchronousTest(); 613 FinishAsynchronousTest();
614 } 614 }
615 615
616 private: 616 private:
617 bool navigation_requested_ = false; 617 bool navigation_requested_ = false;
618 }; 618 };
619 619
620 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest); 620 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest);
621 621
622 } // namespace headless 622 } // namespace headless
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698