chromium/chrome/browser/ash/api/tasks/BUILD.gn

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

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

assert(is_chromeos_ash)

static_library("tasks") {
  sources = [
    "chrome_tasks_delegate.cc",
    "chrome_tasks_delegate.h",
    "tasks_client_impl.cc",
    "tasks_client_impl.h",
  ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash",
    "//ash/constants",
    "//base",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/web_applications",
    "//components/account_id",
    "//components/policy/content",
    "//components/policy/core/browser",
    "//components/services/app_service/public/cpp:app_types",
    "//components/signin/public/identity_manager",
    "//components/user_manager",
    "//google_apis",
    "//google_apis/common",
    "//google_apis/tasks",
    "//net/traffic_annotation",
    "//services/network/public/cpp",
    "//ui/base",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "tasks_client_impl_unittest.cc" ]

  deps = [
    ":tasks",
    "//ash",
    "//ash/constants",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/web_applications",
    "//chrome/test:test_support",
    "//components/services/app_service/public/cpp:app_types",
    "//components/sync_preferences:test_support",
    "//content/test:test_support",
    "//google_apis",
    "//google_apis/common",
    "//google_apis/common:test_support",
    "//net:test_support",
    "//net/traffic_annotation:test_support",
    "//services/network:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base",
  ]
}