# Copyright 2024 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)
static_library("device_activity") {
sources = [
"device_activity_sampler.cc",
"device_activity_sampler.h",
]
deps = [
"//base",
"//components/reporting/metrics:metrics_data_collection",
"//components/reporting/proto:metric_data_proto",
"//ui/base/idle",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "device_activity_sampler_unittest.cc" ]
deps = [
":device_activity",
"//base/test:test_support",
"//components/reporting/proto:metric_data_proto",
"//components/reporting/util:test_callbacks_support",
"//testing/gmock",
"//testing/gtest",
"//ui/base/idle",
"//ui/base/idle:test_support",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "device_activity_sampler_browsertest.cc" ]
deps = [
"//base",
"//chrome/browser",
"//chrome/browser/ash/login/lock:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/policy/affiliation:test_support",
"//chrome/browser/ash/policy/core:test_support",
"//chrome/browser/ash/settings",
"//chrome/browser/ash/settings:test_support",
"//chrome/browser/chromeos",
"//chrome/browser/chromeos/reporting",
"//chrome/test:test_support_ui",
"//chromeos/ash/components/settings",
"//chromeos/dbus/missive:test_support",
"//components/reporting/proto:metric_data_proto",
"//components/reporting/proto:record_constants",
"//components/reporting/proto:record_proto",
"//components/reporting/util:test_callbacks_support",
"//components/session_manager/core",
"//content/public/browser",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//ui/base",
]
}