chromium/components/services/storage/public/cpp/filesystem/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

component("filesystem") {
  output_name = "storage_service_filesystem_support"

  public = [
    "filesystem_impl.h",
    "filesystem_proxy.h",
  ]

  sources = [
    "filesystem_impl.cc",
    "filesystem_proxy.cc",
  ]

  public_deps = [
    "//base",
    "//components/services/storage/public/mojom/filesystem",
    "//mojo/public/cpp/bindings",
  ]

  defines = [ "IS_STORAGE_SERVICE_FILESYSTEM_SUPPORT_IMPL" ]
}

component("typemap_traits") {
  output_name = "storage_service_typemap_traits"
  defines = [ "IS_STORAGE_SERVICE_FILESYSTEM_TYPEMAP_TRAITS_IMPL" ]
  sources = [
    "strict_relative_path_mojom_traits.cc",
    "strict_relative_path_mojom_traits.h",
  ]
  public_deps = [
    "//base",
    "//components/services/storage/public/mojom/filesystem:filesystem_shared",
    "//mojo/public/cpp/base:shared_typemap_traits",
    "//mojo/public/cpp/bindings",
  ]
}

source_set("tests") {
  testonly = true
  sources = [ "filesystem_proxy_unittest.cc" ]
  deps = [
    ":filesystem",
    "//base",
    "//base/test:test_support",
    "//components/services/storage/public/mojom/filesystem",
    "//testing/gmock",
    "//testing/gtest",
  ]
}