chromium/chrome/browser/ash/calendar/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("calendar") {
  sources = [
    "calendar_client_impl.cc",
    "calendar_client_impl.h",
    "calendar_keyed_service.cc",
    "calendar_keyed_service.h",
    "calendar_keyed_service_factory.cc",
    "calendar_keyed_service_factory.h",
  ]

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

  deps = [
    "//ash",
    "//base",
    "//chrome/browser:browser_process",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/web_applications",
    "//components/policy/content",
    "//components/policy/core/browser",
    "//components/prefs",
    "//components/services/app_service/public/cpp:app_types",
    "//components/signin/public/base",
    "//components/signin/public/identity_manager",
    "//components/user_manager",
    "//google_apis",
    "//google_apis/calendar",
    "//google_apis/common",
    "//net/traffic_annotation",
    "//services/network/public/cpp",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "calendar_client_impl_unittest.cc",
    "calendar_keyed_service_unittest.cc",
  ]

  deps = [
    ":calendar",
    "//ash",
    "//ash/constants",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/apps/app_service:test_support",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/web_applications",
    "//chrome/test:test_support",
    "//components/account_id",
    "//components/policy/core/common",
    "//components/services/app_service/public/cpp:app_types",
    "//components/sync_preferences",
    "//components/sync_preferences:test_support",
    "//google_apis/calendar",
    "//google_apis/common",
    "//google_apis/common:test_support",
    "//net:test_support",
    "//services/network:test_support",
    "//testing/gtest",
  ]
}