# Copyright 2026 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("device_trust") {
  sources = [
    "device_trust_challenge_tab_helper.h",
    "device_trust_challenge_tab_helper.mm",
  ]

  deps = [
    "//base",
    "//components/device_signals/core/browser",
    "//components/enterprise/device_trust",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/profile:profile_keyed_service_factory",
    "//ios/web/common:features",
    "//ios/web/public",
    "//ios/web/public/navigation",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "device_trust_challenge_tab_helper_unittest.mm" ]

  deps = [
    ":device_trust",
    "//base/test:test_support",
    "//ios/chrome/browser/enterprise/connectors/device_trust/model:unit_tests",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}

source_set("features") {
  sources = [
    "features.h",
    "features.mm",
  ]

  deps = [ "//base" ]
}
