# 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.
assert(is_chromeos, "Nearby Share is CrOS only")
source_set("sharing") {
sources = [
"sharing_impl.cc",
"sharing_impl.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"nearby",
"webrtc",
]
public_deps = [
"//base",
"//chrome/services/sharing/public/cpp",
"//chromeos/ash/services/nearby/public/mojom",
"//mojo/public/cpp/bindings",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "sharing_impl_unittest.cc" ]
deps = [
":sharing",
"nearby",
"nearby/test_support",
"//ash/public/cpp",
"//base/test:test_support",
"//chromeos/ash/services/nearby/public/cpp:test_support",
"//chromeos/ash/services/network_config/public/cpp:test_support",
"//testing/gmock",
"//testing/gtest",
]
}