BUILD.gn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. import("//testing/test.gni")
  5. static_library("lib") {
  6. sources = [
  7. "directory_impl.cc",
  8. "directory_impl.h",
  9. "shared_temp_dir.cc",
  10. "shared_temp_dir.h",
  11. "util.cc",
  12. "util.h",
  13. ]
  14. deps = [
  15. "//base",
  16. "//components/services/filesystem/public/mojom",
  17. "//mojo/public/cpp/system",
  18. "//url",
  19. ]
  20. }
  21. if (!is_ios) {
  22. source_set("test_support") {
  23. testonly = true
  24. sources = [
  25. "directory_test_helper.cc",
  26. "directory_test_helper.h",
  27. ]
  28. deps = [ "//base/test:test_support" ]
  29. public_deps = [
  30. ":lib",
  31. "//base",
  32. "//components/services/filesystem/public/mojom",
  33. ]
  34. }
  35. test("filesystem_service_unittests") {
  36. sources = [ "directory_impl_unittest.cc" ]
  37. deps = [
  38. ":lib",
  39. ":test_support",
  40. "//base",
  41. "//base/test:test_support",
  42. "//components/services/filesystem/public/mojom",
  43. "//mojo/core/test:run_all_unittests",
  44. "//mojo/public/cpp/bindings",
  45. "//mojo/public/cpp/system",
  46. "//testing/gtest",
  47. ]
  48. }
  49. }