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

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

Issue 2854823006: headless: Remove deprecated DevTools domain bindings (Closed)
Patch Set: Created 3 years, 7 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 | « headless/lib/browser/devtools_api/deprecated_types_h.template ('k') | 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/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
11 #include "content/public/browser/render_view_host.h" 11 #include "content/public/browser/render_view_host.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/test/browser_test.h" 13 #include "content/public/test/browser_test.h"
14 #include "headless/lib/browser/headless_web_contents_impl.h" 14 #include "headless/lib/browser/headless_web_contents_impl.h"
15 #include "headless/public/domains/runtime.h" 15 #include "headless/public/devtools/domains/runtime.h"
16 #include "headless/public/headless_browser.h" 16 #include "headless/public/headless_browser.h"
17 #include "headless/public/headless_browser_context.h" 17 #include "headless/public/headless_browser_context.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/public/headless_web_contents.h" 20 #include "headless/public/headless_web_contents.h"
21 #include "headless/test/headless_browser_test.h" 21 #include "headless/test/headless_browser_test.h"
22 #include "headless/test/test_protocol_handler.h" 22 #include "headless/test/test_protocol_handler.h"
23 #include "net/base/io_buffer.h" 23 #include "net/base/io_buffer.h"
24 #include "net/http/http_response_headers.h" 24 #include "net/http/http_response_headers.h"
25 #include "net/test/spawned_test_server/spawned_test_server.h" 25 #include "net/test/spawned_test_server/spawned_test_server.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 // Verify that the preference takes effect. 291 // Verify that the preference takes effect.
292 HeadlessWebContentsImpl* contents_impl = 292 HeadlessWebContentsImpl* contents_impl =
293 HeadlessWebContentsImpl::From(web_contents); 293 HeadlessWebContentsImpl::From(web_contents);
294 EXPECT_TRUE(contents_impl->web_contents() 294 EXPECT_TRUE(contents_impl->web_contents()
295 ->GetRenderViewHost() 295 ->GetRenderViewHost()
296 ->GetWebkitPreferences().hide_scrollbars); 296 ->GetWebkitPreferences().hide_scrollbars);
297 } 297 }
298 298
299 } // namespace headless 299 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/devtools_api/deprecated_types_h.template ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698