BUILD.gn 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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("common") {
  7. sources = [
  8. "api_error_codes.cc",
  9. "api_error_codes.h",
  10. "auth_service.cc",
  11. "auth_service.h",
  12. "auth_service_interface.h",
  13. "auth_service_observer.h",
  14. "base_requests.cc",
  15. "base_requests.h",
  16. "parser_util.cc",
  17. "parser_util.h",
  18. "request_sender.cc",
  19. "request_sender.h",
  20. "task_util.cc",
  21. "task_util.h",
  22. "time_util.cc",
  23. "time_util.h",
  24. ]
  25. deps = [
  26. "//base",
  27. "//components/signin/public/identity_manager",
  28. "//google_apis:google_apis",
  29. "//net",
  30. "//services/network/public/cpp",
  31. ]
  32. }
  33. source_set("test_support") {
  34. testonly = true
  35. sources = [
  36. "dummy_auth_service.cc",
  37. "dummy_auth_service.h",
  38. "test_util.cc",
  39. "test_util.h",
  40. ]
  41. public_deps = [
  42. ":common",
  43. "//base",
  44. "//base/test:test_support",
  45. "//google_apis:test_support",
  46. "//net:test_support",
  47. ]
  48. }
  49. source_set("common_unittests") {
  50. testonly = true
  51. sources = [
  52. "base_requests_unittest.cc",
  53. "request_sender_unittest.cc",
  54. "time_util_unittest.cc",
  55. ]
  56. deps = [
  57. ":common",
  58. ":test_support",
  59. "//base",
  60. "//base/test:test_support",
  61. "//services/network:test_support",
  62. "//testing/gmock",
  63. "//testing/gtest",
  64. ]
  65. }