# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//build/config/chromeos/ui_mode.gni")
assert(is_chromeos_ash, "Projector App is ash-chrome only")
static_library("annotator") {
sources = [
"untrusted_annotator_page_handler_impl.cc",
"untrusted_annotator_page_handler_impl.h",
"untrusted_annotator_ui.cc",
"untrusted_annotator_ui.h",
]
deps = [
"//ash/public/cpp",
"//ash/strings",
"//ash/webui/annotator/mojom:annotator_mojo_bindings",
"//ash/webui/annotator/public/mojom:annotator_mojo_bindings",
"//ash/webui/media_app_ui:buildflags",
"//ash/webui/resources:annotator_untrusted_resources",
"//ash/webui/resources:media_app_bundle_resources",
"//ash/webui/resources:projector_app_bundle_resources",
"//ash/webui/resources:projector_common_resources",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//ui/webui",
]
public_deps = [
"//ash/webui/annotator/public/cpp",
"//ash/webui/projector_app/public/cpp",
]
}
source_set("test_support") {
testonly = true
sources = [
"test/mock_annotator_client.cc",
"test/mock_annotator_client.h",
"test/mock_untrusted_annotator_page.cc",
"test/mock_untrusted_annotator_page.h",
]
public_deps = [
"//ash/public/cpp:cpp",
"//ash/public/cpp:test_support",
"//ash/webui/annotator/mojom:annotator_mojo_bindings",
"//ash/webui/annotator/public/cpp",
"//ash/webui/annotator/public/mojom:annotator_mojo_bindings",
"//base/test:test_support",
"//testing/gmock",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "test/untrusted_annotator_page_handler_impl_unittest.cc" ]
deps = [
":annotator",
":test_support",
"//ash/webui/annotator/mojom:annotator_mojo_bindings",
"//ash/webui/annotator/public/mojom:annotator_mojo_bindings",
"//base",
"//content/test:test_support",
"//mojo/public/cpp/bindings",
"//testing/gtest",
]
}