blob: 0590ecf494c3040c82c190c2521331fa05339977 [file] [log] [blame]
# 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("//mojo/public/tools/bindings/mojom.gni")
static_library("webui") {
sources = [
"data_sharing_internals_page_handler_impl.cc",
"data_sharing_internals_page_handler_impl.h",
]
deps = [
"//base",
"//components/data_sharing/public",
"//components/data_sharing/public:logger",
]
public_deps = [ ":mojo_bindings" ]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
mojom("mojo_bindings") {
sources = [ "data_sharing_internals.mojom" ]
public_deps = [
"//components/data_sharing/public:logger_interfaces",
"//components/data_sharing/public/protocol:mojo_bindings",
]
webui_module_path = "/"
}
source_set("unit_tests") {
testonly = true
sources = [ "data_sharing_internals_page_handler_impl_unittest.cc" ]
deps = [
":webui",
"//base",
"//base/test:test_support",
"//components/data_sharing:test_support",
"//components/data_sharing/public",
"//testing/gmock",
"//testing/gtest",
]
}