BUILD.gn 819 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. import("//build/config/chromeos/ui_mode.gni")
  5. assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //ash")
  6. component("trial_group") {
  7. sources = [
  8. "trial_group_checker.cc",
  9. "trial_group_checker.h",
  10. ]
  11. deps = [
  12. "//base",
  13. "//net",
  14. "//services/network/public/cpp",
  15. "//services/network/public/cpp:cpp_base",
  16. "//url",
  17. ]
  18. defines = [ "IS_TRIAL_GROUP_CHECKER_IMPL" ]
  19. }
  20. source_set("unit_tests") {
  21. testonly = true
  22. sources = [
  23. "trial_group_checker_unittest.cc",
  24. ]
  25. deps = [
  26. ":trial_group",
  27. "//base",
  28. "//net:test_support",
  29. "//services/network:test_support",
  30. "//testing/gtest",
  31. ]
  32. }