Commit fe4a5607 authored by Colin Blundell's avatar Colin Blundell Committed by Commit Bot

[Captive Portal] Componentize CaptivePortalService unittest

Follows the componentization of the production code.

TBR=jochen@chromium.org

Bug: 1030692
Change-Id: I82a8a9bae9e97783569265ac57f7bed61f627fbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012965
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734499}
parent fed404ed
......@@ -5022,7 +5022,6 @@ test("unit_tests") {
if (enable_captive_portal_detection) {
sources += [
"../browser/captive_portal/captive_portal_service_unittest.cc",
"../browser/captive_portal/captive_portal_tab_helper_unittest.cc",
"../browser/captive_portal/captive_portal_tab_reloader_unittest.cc",
]
......
......@@ -218,6 +218,7 @@ test("components_unittests") {
"//components/autofill/content/browser:unit_tests",
"//components/autofill/content/renderer:unit_tests",
"//components/autofill/core/common/mojom:unit_tests",
"//components/captive_portal/content:unit_tests",
"//components/cast_certificate:unit_tests",
"//components/cast_channel:unit_tests",
"//components/certificate_transparency:unit_tests",
......
......@@ -28,3 +28,25 @@ source_set("content") {
"//content/public/browser",
]
}
source_set("unit_tests") {
testonly = true
sources = []
if (enable_captive_portal_detection) {
sources += [ "captive_portal_service_unittest.cc" ]
}
deps = [
":content",
"//base",
"//base/test:test_config",
"//base/test:test_support",
"//components/captive_portal/core",
"//components/captive_portal/core:test_support",
"//components/embedder_support",
"//components/prefs:test_support",
"//content/test:test_support",
"//net",
"//testing/gtest",
]
}
......@@ -4,6 +4,7 @@ include_rules = [
"+components/keyed_service/core",
"+components/prefs",
"+content/public/browser",
"+content/public/test",
"+services/network/public/cpp",
"+net",
"+url",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment