# 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.

source_set("origin_trials") {
  sources = [
    "origin_trials_factory.cc",
    "origin_trials_factory.h",
  ]

  public_deps = [
    "//chrome/browser/profiles:profile",
    "//content/public/browser",
  ]

  deps = [
    "//base",
    "//components/keyed_service/content",
    "//components/origin_trials:browser",
    "//third_party/blink/public/common",
  ]
}

source_set("browser_tests") {
  testonly = true
  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  sources = [ "origin_trials_browsertest.cc" ]

  deps = [
    "//base",
    "//chrome/browser/profiles:profile",
    "//chrome/test:test_support",
    "//components/origin_trials:browser",
    "//content/public/browser",
    "//content/test:test_support",
    "//testing/gtest",
    "//url",
  ]
}
