chromium/chrome/services/util_win/BUILD.gn

# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_win)

source_set("lib") {
  sources = [
    "av_products.cc",
    "av_products.h",
    "processor_metrics.cc",
    "processor_metrics.h",
    "util_read_icon.cc",
    "util_read_icon.h",
    "util_win_impl.cc",
    "util_win_impl.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//base",
    "//chrome/browser/win/conflicts:module_info",
    "//chrome/common",
    "//components/variations",
    "//components/version_info",
    "//mojo/public/cpp/bindings",
  ]

  public_deps = [
    "//chrome/services/util_win/public/mojom",
    "//third_party/metrics_proto",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "av_products_unittest.cc",
    "processor_metrics_unittest.cc",
  ]

  deps = [
    ":lib",
    "//base",
    "//base/test:test_support",
    "//components/variations",
    "//testing/gtest",
  ]
}