| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos") |
| |
| component("smbfs") { |
| sources = [ |
| "smbfs_host.cc", |
| "smbfs_host.h", |
| "smbfs_mounter.cc", |
| "smbfs_mounter.h", |
| ] |
| public_deps = [ "//chromeos/components/smbfs/mojom" ] |
| deps = [ |
| "//base", |
| "//chromeos/components/mojo_bootstrap", |
| "//chromeos/disks", |
| "//mojo/public/cpp/bindings", |
| "//net", |
| ] |
| defines = [ "IS_SMBFS_IMPL" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "smbfs_host_unittest.cc", |
| "smbfs_mounter_unittest.cc", |
| ] |
| |
| deps = [ |
| ":smbfs", |
| "//base", |
| "//base/test:test_support", |
| "//chromeos/components/mojo_bootstrap", |
| "//chromeos/components/smbfs/mojom", |
| "//chromeos/disks:test_support", |
| "//mojo/core/embedder", |
| "//mojo/public/cpp/bindings", |
| "//mojo/public/cpp/system", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |