chromium/chrome/browser/chromeos/cros_apps/api/BUILD.gn

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

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos)

source_set("browser_tests") {
  testonly = true

  sources = [
    "cros_apps_api_access_control_browsertest.cc",
    "cros_apps_blink_runtime_feature_browsertest.cc",
  ]

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  deps = [
    "//chrome/browser:browser",
    "//chrome/browser/chromeos/cros_apps:test_support",
    "//chrome/browser/chromeos/cros_apps/api/test:apitest_support",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui",
    "//chrome/common",
    "//chromeos/constants",
    "//content/test:browsertest_support",
    "//content/test:test_support",
    "//testing/gtest",
  ]
}

source_set("api") {
  sources = [
    "cros_apps_api_frame_context.cc",
    "cros_apps_api_frame_context.h",
    "cros_apps_api_info.cc",
    "cros_apps_api_info.h",
    "cros_apps_api_infos.cc",
    "cros_apps_api_infos.h",
    "cros_apps_api_mutable_registry.cc",
    "cros_apps_api_mutable_registry.h",
    "cros_apps_api_registry.cc",
    "cros_apps_api_registry.h",
    "cros_apps_api_utils.cc",
    "cros_apps_api_utils.h",
  ]

  deps = [
    "//chrome/browser/profiles:profile",
    "//chrome/common",
    "//chromeos/constants:constants",
    "//content/public/browser",
    "//content/public/common",
    "//services/network/public/cpp",
  ]
}