Commit 377e23f4 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Make PrinterCapabilitiesTest run.

PrinterCapabilitiesTest is in printer_capabilities_unittest.cc inside
components/, but is not built as part of components_unittests. Instead,
it it built as part of components_browsertests, but does not appear in
the list of tests.

Fix the build rules so it builds in components_unittests as a proper
test. Move printer_capabilities_unittest.cc next to
printer_capabilities.cc.

Change-Id: I6be9606a97968e26de5528ee395e044d92f1ed9c
Reviewed-on: https://chromium-review.googlesource.com/c/1357616Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarCait Phillips <caitkp@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613269}
parent 00ebecaf
......@@ -239,6 +239,7 @@ test("components_unittests") {
"//components/policy/core/browser:unit_tests",
"//components/policy/core/common:unit_tests",
"//components/previews/content:unit_tests",
"//components/printing/common:unit_tests",
"//components/safe_browsing/common:unit_tests",
"//components/safe_browsing/password_protection:password_protection_unittest",
"//components/safe_browsing/triggers:unit_tests",
......
......@@ -30,3 +30,18 @@ static_library("common") {
"//ui/gfx/ipc/skia",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"printer_capabilities_unittest.cc",
]
deps = [
":common",
"//base",
"//content/test:test_support",
"//printing:test_support",
"//testing/gtest",
]
}
......@@ -3,3 +3,9 @@ include_rules = [
"+components/strings/grit",
"+ui/base/l10n",
]
specific_include_rules = {
"printer_capabilities_unittest.cc": [
"+content/public/test",
],
}
......@@ -12,7 +12,6 @@ static_library("test_support") {
"print_mock_render_thread.h",
"print_test_content_renderer_client.cc",
"print_test_content_renderer_client.h",
"printer_capabilities_unittest.cc",
]
public_deps = [
......
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