Skip to content

Commit 517a408

Browse files
Guocheng WeiChromium LUCI CQ
Guocheng Wei
authored and
Chromium LUCI CQ
committed
[fuchsia] Move webinstance_host_integration_test
Move the webinstance host integration test out of webengine as a `source_set`. It will still be executed with the rest of web_engine_integration_tests. Bug: 1081525 Change-Id: Ica82e1e468ae76d099578ab2cf274d4b86e4bc19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3769340 Reviewed-by: Wez <[email protected]> Reviewed-by: David Dorwin <[email protected]> Reviewed-by: David Benjamin <[email protected]> Commit-Queue: Guocheng Wei <[email protected]> Cr-Commit-Position: refs/heads/main@{#1034050}
1 parent 84cd714 commit 517a408

File tree

4 files changed

+30
-16
lines changed

4 files changed

+30
-16
lines changed

fuchsia_web/webengine/BUILD.gn

+5-6
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,10 @@ fuchsia_package_installer("web_engine_with_webui_installer") {
473473

474474
# TODO(crbug.com/1081525): Move to ../common/test.
475475
source_set("browsertest_core") {
476-
visibility += [ "//fuchsia_web/runners:*" ]
476+
visibility += [
477+
"//fuchsia_web/runners:*",
478+
"//fuchsia_web/webinstance_host:*",
479+
]
477480
testonly = true
478481
sources = [
479482
"test/frame_for_test.cc",
@@ -666,10 +669,6 @@ test("web_engine_integration_tests") {
666669
"web_engine_integration_test.cc",
667670
"web_engine_integration_test_base.cc",
668671
"web_engine_integration_test_base.h",
669-
670-
# TODO(crbug.com/1081525): Move to //fuchsia_web/webinstance_host/ and
671-
# remove the deps below.
672-
"web_instance_host_integration_test.cc",
673672
]
674673
data = [ "test/data" ]
675674
deps = [
@@ -679,7 +678,7 @@ test("web_engine_integration_tests") {
679678
"//components/version_info",
680679
"//fuchsia_web/common/test:run_all_integration_tests",
681680
"//fuchsia_web/common/test:test_support",
682-
"//fuchsia_web/webinstance_host",
681+
"//fuchsia_web/webinstance_host:webinstance_host_integration_test",
683682
"//media",
684683
"//media/fuchsia/audio:test_support",
685684
"//media/fuchsia/camera:test_support",

fuchsia_web/webinstance_host/BUILD.gn

+16-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
assert(is_fuchsia)
66

7-
visibility = []
7+
visibility = [ ":*" ]
88

99
source_set("webinstance_host") {
1010
assert_no_deps = [
@@ -19,10 +19,6 @@ source_set("webinstance_host") {
1919
"//fuchsia_web/runners/*",
2020
"//fuchsia_web/shell:*",
2121
"//fuchsia_web/webengine:context_provider",
22-
23-
# TODO(crbug.com/1081525): Move dependent tests into this directory and
24-
# source_sets that have these deps.
25-
"//fuchsia_web/webengine:web_engine_integration_tests__exec",
2622
]
2723
sources = [
2824
"fuchsia_web_debug_proxy.cc",
@@ -53,3 +49,18 @@ source_set("webinstance_host") {
5349
"//third_party/fuchsia-sdk/sdk/pkg/fidl",
5450
]
5551
}
52+
53+
source_set("webinstance_host_integration_test") {
54+
testonly = true
55+
visibility += [ "//fuchsia_web/webengine/*" ]
56+
sources = [ "web_instance_host_integration_test.cc" ]
57+
deps = [
58+
":webinstance_host",
59+
"//base",
60+
"//fuchsia_web/common/test:test_support",
61+
"//fuchsia_web/webengine:browsertest_core",
62+
"//net:test_support",
63+
"//testing/gtest",
64+
"//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
65+
]
66+
}

fuchsia_web/webinstance_host/DEPS

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
include_rules = [
22
"+components/embedder_support",
33
"+components/fuchsia_component_support",
4-
"+content/public/common",
54
"+fuchsia_web/webengine/features.h",
65
"+fuchsia_web/webengine/switches.h",
7-
"+gpu/config/gpu_finch_features.h",
86
"+gpu/command_buffer/service/gpu_switches.h",
9-
"+media/base/key_system_names.h",
10-
"+media/base/media_switches.h",
7+
"+gpu/config/gpu_finch_features.h",
118
"+net/http/http_util.h",
129
"+services/network/public/cpp/features.h",
1310
"+services/network/public/cpp/network_switches.h",
1411
"+third_party/blink/public/common/switches.h",
1512
"+third_party/widevine/cdm/widevine_cdm_common.h",
1613
"+ui/display/display_switches.h",
17-
"+ui/gl/gl_switches.h",
1814
"+ui/gfx/switches.h",
15+
"+ui/gl/gl_switches.h",
1916
"+ui/ozone/public/ozone_switches.h",
2017
]
18+
19+
specific_include_rules = {
20+
"web_instance_host_integration_test\.cc": [
21+
"+fuchsia_web/webengine/test/frame_for_test.h",
22+
"+net/test/embedded_test_server",
23+
],
24+
}

0 commit comments

Comments
 (0)