BUILD.gn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Copyright 2015 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("//testing/libfuzzer/fuzzer_test.gni")
  5. import("//testing/test.gni")
  6. static_library("arc") {
  7. sources = [
  8. "intent_helper/arc_intent_helper_bridge.cc",
  9. "intent_helper/arc_intent_helper_bridge.h",
  10. "intent_helper/arc_intent_helper_observer.h",
  11. "intent_helper/control_camera_app_delegate.h",
  12. "intent_helper/custom_tab.cc",
  13. "intent_helper/custom_tab.h",
  14. "intent_helper/intent_constants.cc",
  15. "intent_helper/intent_constants.h",
  16. "intent_helper/intent_filter.cc",
  17. "intent_helper/intent_filter.h",
  18. "intent_helper/open_url_delegate.h",
  19. ]
  20. # Enable VLOG(1).
  21. defines = [ "ENABLED_VLOG_LEVEL=1" ]
  22. deps = [
  23. "//ash/components/arc",
  24. "//ash/public/cpp",
  25. "//components/arc/common",
  26. "//components/arc/common:arc_intent_helper_constants",
  27. "//components/exo",
  28. "//components/google/core/common",
  29. "//components/url_formatter",
  30. ]
  31. }
  32. static_library("arc_test_support") {
  33. testonly = true
  34. sources = [
  35. "test/fake_intent_helper_host.cc",
  36. "test/fake_intent_helper_host.h",
  37. "test/fake_intent_helper_instance.cc",
  38. "test/fake_intent_helper_instance.h",
  39. ]
  40. deps = [
  41. "//ash/components/arc/mojom",
  42. "//ash/components/arc/session:connection_holder",
  43. ]
  44. }
  45. source_set("unit_tests") {
  46. testonly = true
  47. sources = [
  48. "intent_helper/arc_intent_helper_bridge_unittest.cc",
  49. "intent_helper/custom_tab_unittest.cc",
  50. ]
  51. deps = [
  52. ":arc",
  53. ":arc_test_support",
  54. "//ash/components/arc/mojom",
  55. "//ash/components/arc/session",
  56. "//base/test:test_support",
  57. "//components/arc/common:arc_intent_helper_constants",
  58. "//testing/gmock",
  59. "//testing/gtest",
  60. "//ui/aura:test_support",
  61. "//ui/views",
  62. "//ui/views:test_support",
  63. ]
  64. }