# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//printing/buildflags/buildflags.gni")
import("//testing/test.gni")
assert(enable_printing)
static_library("print_to_pdf") {
sources = [
"pdf_print_job.cc",
"pdf_print_job.h",
"pdf_print_result.cc",
"pdf_print_result.h",
"pdf_print_utils.cc",
"pdf_print_utils.h",
]
deps = [
"//base",
"//components/printing/browser",
"//components/printing/common",
"//components/services/print_compositor",
"//components/services/print_compositor/public/mojom",
"//printing",
"//printing/buildflags",
"//printing/mojom",
"//url",
]
public_deps = [ "//components/printing/common:mojo_interfaces" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "pdf_print_utils_unittest.cc" ]
deps = [
":print_to_pdf",
"//printing",
"//testing/gmock",
"//testing/gtest",
]
}