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

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

Issue 2277193002: headless: Fix browser test build failure (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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/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"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsClientObserverTest); 179 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsClientObserverTest);
180 180
181 class HeadlessDevToolsClientExperimentalTest 181 class HeadlessDevToolsClientExperimentalTest
182 : public HeadlessAsyncDevTooledBrowserTest, 182 : public HeadlessAsyncDevTooledBrowserTest,
183 page::ExperimentalObserver { 183 page::ExperimentalObserver {
184 public: 184 public:
185 void RunDevTooledTest() override { 185 void RunDevTooledTest() override {
186 EXPECT_TRUE(embedded_test_server()->Start()); 186 EXPECT_TRUE(embedded_test_server()->Start());
187 // Check that experimental commands require parameter objects. 187 // Check that experimental commands require parameter objects.
188 devtools_client_->GetRuntime()->GetExperimental()->RunIfWaitingForDebugger( 188 devtools_client_->GetRuntime()
189 runtime::RunIfWaitingForDebuggerParams::Builder().Build()); 189 ->GetExperimental()
190 ->SetCustomObjectFormatterEnabled(
191 runtime::SetCustomObjectFormatterEnabledParams::Builder()
192 .SetEnabled(false)
193 .Build());
190 194
191 devtools_client_->GetPage()->GetExperimental()->AddObserver(this); 195 devtools_client_->GetPage()->GetExperimental()->AddObserver(this);
192 devtools_client_->GetPage()->Enable(); 196 devtools_client_->GetPage()->Enable();
193 devtools_client_->GetPage()->Navigate( 197 devtools_client_->GetPage()->Navigate(
194 embedded_test_server()->GetURL("/hello.html").spec()); 198 embedded_test_server()->GetURL("/hello.html").spec());
195 } 199 }
196 200
197 void OnFrameStoppedLoading( 201 void OnFrameStoppedLoading(
198 const page::FrameStoppedLoadingParams& params) override { 202 const page::FrameStoppedLoadingParams& params) override {
199 FinishAsynchronousTest(); 203 FinishAsynchronousTest();
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 FinishAsynchronousTest(); 635 FinishAsynchronousTest();
632 } 636 }
633 637
634 private: 638 private:
635 bool navigation_requested_ = false; 639 bool navigation_requested_ = false;
636 }; 640 };
637 641
638 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest); 642 HEADLESS_ASYNC_DEVTOOLED_TEST_F(HeadlessDevToolsNavigationControlTest);
639 643
640 } // namespace headless 644 } // namespace headless
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698