OLD | NEW |
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 Loading... |
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 |
OLD | NEW |