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

Side by Side Diff: headless/lib/embedder_mojo_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/browser/types_h.template ('k') | headless/lib/headless_browser_browsertest.cc » ('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 "base/optional.h" 6 #include "base/optional.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/threading/thread_restrictions.h" 9 #include "base/threading/thread_restrictions.h"
10 #include "content/public/test/browser_test.h" 10 #include "content/public/test/browser_test.h"
11 #include "headless/grit/headless_browsertest_resources.h" 11 #include "headless/grit/headless_browsertest_resources.h"
12 #include "headless/lib/embedder_test.mojom.h" 12 #include "headless/lib/embedder_test.mojom.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/headless_browser.h" 16 #include "headless/public/headless_browser.h"
17 #include "headless/public/headless_devtools_client.h" 17 #include "headless/public/headless_devtools_client.h"
18 #include "headless/public/headless_devtools_target.h" 18 #include "headless/public/headless_devtools_target.h"
19 #include "headless/public/headless_web_contents.h" 19 #include "headless/public/headless_web_contents.h"
20 #include "headless/test/headless_browser_test.h" 20 #include "headless/test/headless_browser_test.h"
21 #include "mojo/public/cpp/bindings/binding_set.h" 21 #include "mojo/public/cpp/bindings/binding_set.h"
22 #include "mojo/public/cpp/bindings/interface_ptr_set.h" 22 #include "mojo/public/cpp/bindings/interface_ptr_set.h"
23 #include "mojo/public/cpp/bindings/interface_request.h" 23 #include "mojo/public/cpp/bindings/interface_request.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void OnLoadingFailed(const network::LoadingFailedParams& params) override { 238 void OnLoadingFailed(const network::LoadingFailedParams& params) override {
239 // The navigation should fail since HTTP requests are blackholed. 239 // The navigation should fail since HTTP requests are blackholed.
240 EXPECT_EQ(params.GetErrorText(), "net::ERR_FILE_NOT_FOUND"); 240 EXPECT_EQ(params.GetErrorText(), "net::ERR_FILE_NOT_FOUND");
241 FinishAsynchronousTest(); 241 FinishAsynchronousTest();
242 } 242 }
243 }; 243 };
244 244
245 DEVTOOLS_CLIENT_TEST_F(HttpDisabledByDefaultWhenMojoBindingsUsed); 245 DEVTOOLS_CLIENT_TEST_F(HttpDisabledByDefaultWhenMojoBindingsUsed);
246 246
247 } // namespace headless 247 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/types_h.template ('k') | headless/lib/headless_browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698