chromium/components/page_info/BUILD.gn

import("//build/config/features.gni")

static_library("page_info") {
  sources = [
    "page_info.cc",
    "page_info.h",
    "page_info_delegate.h",
    "page_info_ui.cc",
    "page_info_ui.h",
    "page_info_ui_delegate.h",
  ]

  deps = [
    "//base",
    "//build:chromeos_buildflags",
    "//components/browsing_data/content",
    "//components/browsing_data/core",
    "//components/content_settings/browser",
    "//components/content_settings/browser/ui",
    "//components/content_settings/core/browser",
    "//components/keyed_service/core",
    "//components/optimization_guide/core",
    "//components/page_info/core",
    "//components/password_manager/core/browser",
    "//components/permissions",
    "//components/prefs",
    "//components/privacy_sandbox",
    "//components/safe_browsing:buildflags",
    "//components/safe_browsing/content/browser/password_protection",
    "//components/safe_browsing/core/browser/password_protection:password_protection_metrics_util",
    "//components/safe_browsing/core/common:common",
    "//components/safe_browsing/core/common/proto:csd_proto",
    "//components/security_interstitials/content:security_interstitial_page",
    "//components/security_interstitials/core",
    "//components/security_state/core",
    "//components/signin/public/identity_manager",
    "//components/ssl_errors:ssl_errors",
    "//components/strings:components_branded_strings_grit",
    "//components/strings:components_strings_grit",
    "//components/subresource_filter/core/browser",
    "//components/ukm/content",
    "//components/url_formatter",
    "//components/vector_icons:vector_icons",
    "//content/public/browser:browser",
    "//services/device/public/cpp:device_features",
    "//services/metrics/public/cpp:ukm_builders",
  ]

  if (is_android) {
    deps += [
      "//components/browser_ui/util/android",
      "//components/password_manager/core/browser:password_manager_java_enums_srcjar",
      "//components/resources:android_resources",
    ]
  } else {
    deps += [ "//ui/native_theme" ]
  }
}

source_set("unit_tests") {
  testonly = true

  sources = [ "page_info_ui_unittest.cc" ]

  deps = [
    ":page_info",
    "//base",
    "//build:chromeos_buildflags",
    "//components/strings:components_strings_grit",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base:base",
  ]
}