BUILD.gn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/features.gni")
  5. import("//testing/test.gni")
  6. static_library("calendar") {
  7. sources = [
  8. "calendar_api_requests.cc",
  9. "calendar_api_requests.h",
  10. "calendar_api_response_types.cc",
  11. "calendar_api_response_types.h",
  12. "calendar_api_url_generator.cc",
  13. "calendar_api_url_generator.h",
  14. ]
  15. deps = [
  16. "//base",
  17. "//base/third_party/dynamic_annotations",
  18. "//components/signin/public/identity_manager",
  19. "//crypto",
  20. "//google_apis:google_apis",
  21. "//google_apis/common:common",
  22. "//net",
  23. "//services/network/public/cpp",
  24. ]
  25. }
  26. source_set("test_support") {
  27. testonly = true
  28. sources = []
  29. public_deps = [
  30. ":calendar",
  31. "//base",
  32. "//base/test:test_support",
  33. "//google_apis:test_support",
  34. "//google_apis/common:common",
  35. "//google_apis/common:test_support",
  36. "//net:test_support",
  37. ]
  38. }
  39. source_set("calendar_unittests") {
  40. testonly = true
  41. sources = [
  42. "calendar_api_requests_unittest.cc",
  43. "calendar_api_response_types_unittest.cc",
  44. "calendar_api_url_generator_unittest.cc",
  45. ]
  46. deps = [
  47. ":calendar",
  48. ":test_support",
  49. "//base",
  50. "//base/test:test_support",
  51. "//services/network:test_support",
  52. "//testing/gmock",
  53. "//testing/gtest",
  54. ]
  55. }