BUILD.gn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 2019 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. static_library("sync_user_events") {
  5. sources = [
  6. "global_id_mapper.h",
  7. "no_op_user_event_service.cc",
  8. "no_op_user_event_service.h",
  9. "user_event_model_type_controller.cc",
  10. "user_event_model_type_controller.h",
  11. "user_event_service.h",
  12. "user_event_service_impl.cc",
  13. "user_event_service_impl.h",
  14. "user_event_sync_bridge.cc",
  15. "user_event_sync_bridge.h",
  16. ]
  17. public_deps = [
  18. "//base",
  19. "//components/keyed_service/core",
  20. "//components/sync",
  21. "//components/sync/protocol",
  22. ]
  23. deps = [
  24. "//components/signin/public/base",
  25. "//google_apis",
  26. ]
  27. }
  28. static_library("test_support") {
  29. testonly = true
  30. sources = [
  31. "fake_user_event_service.cc",
  32. "fake_user_event_service.h",
  33. ]
  34. public_deps = [
  35. ":sync_user_events",
  36. "//components/sync:test_support",
  37. ]
  38. }
  39. source_set("unit_tests") {
  40. testonly = true
  41. sources = [
  42. "user_event_service_impl_unittest.cc",
  43. "user_event_sync_bridge_unittest.cc",
  44. ]
  45. configs += [ "//build/config:precompiled_headers" ]
  46. deps = [
  47. ":sync_user_events",
  48. ":test_support",
  49. "//base/test:test_support",
  50. ]
  51. }