chromium/chrome/services/sharing/nearby/quick_start_decoder/BUILD.gn

# Copyright 2023 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/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

source_set("quick_start_decoder") {
  sources = [
    "quick_start_conversions.cc",
    "quick_start_conversions.h",
    "quick_start_decoder.cc",
    "quick_start_decoder.h",
  ]

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

  deps = [
    "//base",
    "//chromeos/ash/components/quick_start",
    "//chromeos/ash/services/nearby/public/mojom",
    "//components/cbor",
    "//mojo/public/cpp/bindings",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "quick_start_decoder_unittest.cc" ]

  deps = [
    ":quick_start_decoder",
    "//base/test:test_support",
    "//chromeos/ash/components/quick_start",
    "//chromeos/ash/services/nearby/public/mojom",
    "//components/cbor",
    "//mojo/public/cpp/bindings",
    "//testing/gmock",
    "//testing/gtest",
  ]
}