BUILD.gn 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright 2014 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("network_time") {
  5. sources = [
  6. "historical_latencies_container.cc",
  7. "historical_latencies_container.h",
  8. "network_time_pref_names.cc",
  9. "network_time_pref_names.h",
  10. "network_time_tracker.cc",
  11. "network_time_tracker.h",
  12. ]
  13. deps = [
  14. "//base",
  15. "//base:i18n",
  16. "//build:chromeos_buildflags",
  17. "//components/client_update_protocol",
  18. "//components/prefs",
  19. "//components/variations",
  20. "//net",
  21. "//services/network/public/cpp:cpp",
  22. ]
  23. }
  24. source_set("unit_tests") {
  25. testonly = true
  26. sources = [
  27. "historical_latencies_container_unittest.cc",
  28. "network_time_tracker_unittest.cc",
  29. ]
  30. deps = [
  31. ":network_time",
  32. ":network_time_test_support",
  33. "//base",
  34. "//base/test:test_support",
  35. "//components/client_update_protocol",
  36. "//components/prefs:test_support",
  37. "//components/variations",
  38. "//net",
  39. "//net:test_support",
  40. "//services/network:test_support",
  41. "//testing/gtest",
  42. ]
  43. }
  44. source_set("network_time_test_support") {
  45. testonly = true
  46. sources = [
  47. "network_time_test_utils.cc",
  48. "network_time_test_utils.h",
  49. ]
  50. deps = [
  51. ":network_time",
  52. "//base",
  53. "//base/test:test_support",
  54. "//components/variations",
  55. "//net",
  56. "//net:test_support",
  57. "//testing/gtest",
  58. ]
  59. }