BUILD.gn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Copyright 2017 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("assist_ranker") {
  5. sources = [
  6. "assist_ranker_service.h",
  7. "assist_ranker_service_impl.cc",
  8. "assist_ranker_service_impl.h",
  9. "base_predictor.cc",
  10. "base_predictor.h",
  11. "binary_classifier_predictor.cc",
  12. "binary_classifier_predictor.h",
  13. "classifier_predictor.cc",
  14. "classifier_predictor.h",
  15. "example_preprocessing.cc",
  16. "example_preprocessing.h",
  17. "generic_logistic_regression_inference.cc",
  18. "generic_logistic_regression_inference.h",
  19. "nn_classifier.cc",
  20. "nn_classifier.h",
  21. "predictor_config.cc",
  22. "predictor_config.h",
  23. "predictor_config_definitions.cc",
  24. "predictor_config_definitions.h",
  25. "quantized_nn_classifier.cc",
  26. "quantized_nn_classifier.h",
  27. "ranker_example_util.cc",
  28. "ranker_example_util.h",
  29. "ranker_model.cc",
  30. "ranker_model.h",
  31. "ranker_model_loader.h",
  32. "ranker_model_loader_impl.cc",
  33. "ranker_model_loader_impl.h",
  34. "ranker_url_fetcher.cc",
  35. "ranker_url_fetcher.h",
  36. ]
  37. deps = [
  38. "//base",
  39. "//components/assist_ranker/proto",
  40. "//components/keyed_service/core",
  41. "//net",
  42. "//services/metrics/public/cpp:metrics_cpp",
  43. "//services/network:network_service",
  44. "//services/network/public/cpp",
  45. "//services/network/public/mojom",
  46. "//url",
  47. ]
  48. }
  49. source_set("unit_tests") {
  50. testonly = true
  51. sources = [
  52. "base_predictor_unittest.cc",
  53. "binary_classifier_predictor_unittest.cc",
  54. "classifier_predictor_unittest.cc",
  55. "example_preprocessing_unittest.cc",
  56. "fake_ranker_model_loader.cc",
  57. "fake_ranker_model_loader.h",
  58. "generic_logistic_regression_inference_unittest.cc",
  59. "nn_classifier_test_util.cc",
  60. "nn_classifier_test_util.h",
  61. "nn_classifier_unittest.cc",
  62. "quantized_nn_classifier_unittest.cc",
  63. "ranker_example_util_unittest.cc",
  64. "ranker_model_loader_impl_unittest.cc",
  65. "ranker_model_unittest.cc",
  66. ]
  67. deps = [
  68. ":assist_ranker",
  69. "//base",
  70. "//components/assist_ranker/proto",
  71. "//components/ukm:test_support",
  72. "//net:test_support",
  73. "//services/network:test_support",
  74. "//services/network/public/cpp",
  75. "//testing/gtest",
  76. ]
  77. }