123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- # Copyright 2021 The Chromium Authors.All rights reserved.
- # 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")
- component("constants") {
- output_name = "chromeos_constants"
- defines = [ "IS_CHROMEOS_CONSTANTS_IMPL" ]
- sources = [
- "chromeos_features.cc",
- "chromeos_features.h",
- "devicetype.cc",
- "devicetype.h",
- ]
- deps = [
- "//base",
- "//build:chromeos_buildflags",
- ]
- if (is_chromeos_lacros) {
- deps += [
- "//chromeos/crosapi/mojom",
- "//chromeos/startup",
- ]
- }
- }
- source_set("unit_tests") {
- testonly = true
- sources = [ "devicetype_unittest.cc" ]
- deps = [
- ":constants",
- "//base/test:test_support",
- "//build:chromeos_buildflags",
- "//chromeos/crosapi/mojom",
- "//testing/gtest",
- ]
- if (is_chromeos_lacros) {
- deps += [
- "//chromeos/lacros:lacros",
- "//chromeos/lacros:test_support",
- "//chromeos/startup",
- ]
- }
- }
|