# 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.h",
"action.mm",
"action_runner.h",
"action_runner_impl.h",
"action_runner_impl.mm",
"idle_service.h",
"idle_service.mm",
"idle_service_factory.h",
"idle_service_factory.mm",
"idle_service_observer_bridge.h",
"idle_service_observer_bridge.mm",
"idle_timeout_policy_utils.h",
"idle_timeout_policy_utils.mm",
]
deps = [
"//base",
"//components/browsing_data/core",
"//components/enterprise/idle",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//components/pref_registry",
"//components/prefs",
"//ios/chrome/browser/browsing_data/model",
"//ios/chrome/browser/discover_feed/model:discover_feed_factory",
"//ios/chrome/browser/discover_feed/model:model",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/web_state_list:web_state_list",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/web_state_list/model/web_usage_enabler",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"action_runner_impl_unittest.mm",
"action_unittest.mm",
"idle_service_unittest.mm",
]
deps = [
":idle",
"//base",
"//base/test:test_support",
"//components/enterprise:test_support",
"//components/enterprise/idle",
"//components/policy/core/browser:test_support",
"//components/pref_registry",
"//components/prefs",
"//ios/chrome/browser/browsing_data/model:test_support",
"//ios/chrome/browser/prefs/model",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list/test:test_support",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//testing/gtest",
]
}