# Copyright 2025 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("incognito") {
  configs += [ "//components/enterprise:extra_warnings" ]

  sources = [
    "incognito_navigation_throttle.cc",
    "incognito_navigation_throttle.h",
  ]

  deps = [
    "//base",
    "//base:i18n",
    "//chrome/browser:browser_process",
    "//chrome/browser:resources",
    "//chrome/browser/profiles:profile",
    "//chrome/common",
    "//components/prefs",
    "//components/strings:components_strings",
    "//content/public/browser",
    "//content/public/common",
    "//extensions/browser",
    "//ui/base",
    "//ui/strings:ui_strings_grit",
  ]
}

if (!is_android) {
  source_set("browser_tests") {
    testonly = true
    defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
    configs += [ "//components/enterprise:extra_warnings" ]

    sources = [ "incognito_navigation_throttle_browsertest.cc" ]

    deps = [
      ":incognito",
      "//base",
      "//chrome/browser/sync/test/integration:sync_integration_test_support",
      "//chrome/browser/ui/browser_window",
      "//chrome/test:test_support",
      "//chrome/test:test_support_ui",
      "//content/test:test_support",
      "//testing/gmock",
    ]
  }
}
