Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 1 | # Copyright 2024 The Chromium Authors |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | assert(is_win || is_mac || is_linux || is_chromeos) |
| 6 | |
| 7 | source_set("hid") { |
| 8 | sources = [ |
Antonio Gomes | fdb41588 | 2024-10-03 12:42:54 | [diff] [blame] | 9 | "hid_chooser.cc", |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 10 | "hid_chooser.h", |
Antonio Gomes | fdb41588 | 2024-10-03 12:42:54 | [diff] [blame] | 11 | "hid_chooser_controller.cc", |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 12 | "hid_chooser_controller.h", |
| 13 | ] |
| 14 | public_deps = [ |
| 15 | "//base", |
| 16 | "//chrome/browser/hid", |
| 17 | "//components/permissions", |
| 18 | "//content/public/browser", |
| 19 | "//services/device/public/mojom", |
| 20 | "//third_party/blink/public/common", |
| 21 | "//url", |
| 22 | ] |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 23 | |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 24 | deps = [ |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 25 | "//chrome/app:generated_resources", |
| 26 | "//chrome/browser/profiles:profile", |
| 27 | "//chrome/common", |
| 28 | "//components/strings:components_strings", |
| 29 | "//services/device/public/cpp/hid", |
| 30 | "//ui/base", |
| 31 | ] |
Antonio Gomes | 39641ed5 | 2024-10-03 00:58:30 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | source_set("unit_tests") { |
| 35 | testonly = true |
| 36 | sources = [ "hid_chooser_controller_unittest.cc" ] |
| 37 | deps = [ |
| 38 | ":hid", |
| 39 | "//base/test:test_support", |
| 40 | "//chrome/app:generated_resources", |
| 41 | "//chrome/test:test_support", |
| 42 | "//components/permissions:test_support", |
| 43 | "//content/test:test_support", |
| 44 | "//services/device/public/cpp:test_support", |
| 45 | "//services/device/public/cpp/hid", |
| 46 | ] |
| 47 | } |