BUILD.gn 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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-ChromeOS builds cannot depend on //ash")
  6. component("smbfs") {
  7. sources = [
  8. "smbfs_host.cc",
  9. "smbfs_host.h",
  10. "smbfs_mounter.cc",
  11. "smbfs_mounter.h",
  12. ]
  13. public_deps = [ "//ash/components/smbfs/mojom" ]
  14. deps = [
  15. "//ash/components/disks",
  16. "//base",
  17. "//chromeos/ash/components/dbus/cros_disks",
  18. "//chromeos/components/mojo_bootstrap",
  19. "//mojo/public/cpp/bindings",
  20. "//net",
  21. ]
  22. defines = [ "IS_SMBFS_IMPL" ]
  23. }
  24. source_set("unit_tests") {
  25. testonly = true
  26. sources = [
  27. "smbfs_host_unittest.cc",
  28. "smbfs_mounter_unittest.cc",
  29. ]
  30. deps = [
  31. ":smbfs",
  32. "//ash/components/disks:test_support",
  33. "//ash/components/smbfs/mojom",
  34. "//base",
  35. "//base/test:test_support",
  36. "//chromeos/components/mojo_bootstrap",
  37. "//mojo/core/embedder",
  38. "//mojo/public/cpp/bindings",
  39. "//mojo/public/cpp/system",
  40. "//testing/gmock",
  41. "//testing/gtest",
  42. ]
  43. }