chromium/google_apis/tasks/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")
import("//build/config/features.gni")
import("//testing/test.gni")

assert(is_chromeos)

static_library("tasks") {
  sources = [
    "tasks_api_request_types.cc",
    "tasks_api_request_types.h",
    "tasks_api_requests.cc",
    "tasks_api_requests.h",
    "tasks_api_response_types.cc",
    "tasks_api_response_types.h",
    "tasks_api_task_status.cc",
    "tasks_api_task_status.h",
    "tasks_api_url_generator_utils.cc",
    "tasks_api_url_generator_utils.h",
  ]

  deps = [
    "//base",
    "//google_apis:google_apis",
    "//google_apis/common:common",
    "//net",
    "//services/network/public/cpp",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]
}

source_set("tasks_unittests") {
  testonly = true

  sources = [
    "tasks_api_request_types_unittest.cc",
    "tasks_api_requests_unittest.cc",
    "tasks_api_response_types_unittest.cc",
    "tasks_api_task_status_unittest.cc",
    "tasks_api_url_generator_utils_unittest.cc",
  ]

  deps = [
    ":tasks",
    "//base/test:test_support",
    "//google_apis:test_support",
    "//google_apis/common:test_support",
    "//net:test_support",
    "//services/network:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}