chromium/chrome/browser/enterprise/connectors/device_trust/key_management/core/BUILD.gn

# 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.

source_set("core") {
  public = [
    "ec_signing_key.h",
    "signing_key_pair.h",
  ]

  sources = [
    "ec_signing_key.cc",
    "signing_key_pair.cc",
  ]

  deps = [ "//base" ]

  public_deps = [
    "//components/policy/proto",
    "//crypto",
  ]
}

source_set("constants") {
  public = [ "shared_command_constants.h" ]
  sources = [ "shared_command_constants.cc" ]
  deps = [ "//chrome/common:version_header" ]
}

source_set("util") {
  public = [ "signing_key_util.h" ]
  sources = [ "signing_key_util.cc" ]
  deps = [
    ":core",
    "//base",
    "//chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "ec_signing_key_unittest.cc",
    "signing_key_pair_unittest.cc",
    "signing_key_util_unittest.cc",
  ]

  deps = [
    ":core",
    ":util",
    "//base",
    "//chrome/browser/enterprise/connectors/device_trust/key_management/common",
    "//chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence:test_support",
    "//crypto",
    "//crypto:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}