chromium/components/enterprise/idle/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.

source_set("idle") {
  sources = [
    "action_type.cc",
    "action_type.h",
    "idle_pref_names.cc",
    "idle_pref_names.h",
    "idle_timeout_policy_handler.cc",
    "idle_timeout_policy_handler.h",
    "metrics.cc",
    "metrics.h",
  ]
  deps = [
    "//base",
    "//components/browsing_data/core",
    "//components/policy/core/browser",
    "//components/policy/core/common",
    "//components/prefs",
    "//components/strings",
    "//components/sync/base",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "idle_timeout_policy_handler_unittest.cc",
    "metrics_unittest.cc",
  ]
  deps = [
    ":idle",
    "//base",
    "//base/test:test_support",
    "//components/browsing_data/core",
    "//components/policy/core/browser",
    "//components/policy/core/common",
    "//components/prefs",
    "//components/strings",
    "//components/sync/base",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base",
  ]
}