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

assert(is_chromeos)

component("constants") {
  output_name = "chromeos_constants"
  defines = [ "IS_CHROMEOS_CONSTANTS_IMPL" ]
  sources = [
    "chromeos_features.cc",
    "chromeos_features.h",
    "chromeos_switches.cc",
    "chromeos_switches.h",
    "devicetype.cc",
    "devicetype.h",
    "pkcs11_definitions.h",
    "pref_names.h",
    "url_constants.h",
  ]
  deps = [
    "//base",
    "//chromeos/components/libsegmentation:buildflags",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "devicetype_unittest.cc" ]
  deps = [
    ":constants",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}
