1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/libfuzzer/fuzzer_test.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos/ash")
source_set("onc") {
# Due to circular dependency, others should depend on via
# chromeos/ash/components/network.
visibility = [
"//chromeos/ash/components/network",
"//chromeos/ash/components/network/proxy",
]
configs += [ "//chromeos/ash/components/network:network_config" ]
deps = [
"//ash/constants",
"//base",
"//chromeos/components/onc",
"//components/account_id",
"//components/certificate_matching",
"//components/device_event_log",
"//components/onc",
"//components/prefs",
"//components/proxy_config",
"//components/url_formatter",
"//components/user_manager",
"//net",
# TODO(b/354839582): Use targets having headers included from
# chrome/browser/ash/arc/extensions/arc_support_message_host.cc.
"//chromeos/services/network_config/public/mojom",
]
sources = [
"network_onc_utils.cc",
"network_onc_utils.h",
"onc_certificate_importer.h",
"onc_certificate_importer_impl.cc",
"onc_certificate_importer_impl.h",
"onc_certificate_pattern.cc",
"onc_certificate_pattern.h",
"onc_merger.cc",
"onc_merger.h",
"onc_normalizer.cc",
"onc_normalizer.h",
"onc_translation_tables.cc",
"onc_translation_tables.h",
"onc_translator.h",
"onc_translator_onc_to_shill.cc",
"onc_translator_shill_to_onc.cc",
]
}
source_set("unit_tests") {
testonly = true
deps = [
"//ash/constants",
"//base/test:test_support",
"//chromeos:test_support",
"//chromeos/ash/components/network",
"//chromeos/ash/components/network:test_support",
"//chromeos/components/onc",
"//chromeos/components/onc:test_support",
"//components/onc",
"//components/prefs:test_support",
"//components/user_manager:test_support",
"//crypto:test_support",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"network_onc_utils_unittest.cc",
"onc_certificate_importer_impl_unittest.cc",
"onc_certificate_pattern_unittest.cc",
"onc_merger_unittest.cc",
"onc_normalizer_unittest.cc",
"onc_translator_unittest.cc",
]
}
fuzzer_test("onc_normalizer_fuzzer") {
sources = [ "onc_normalizer_fuzzer.cc" ]
deps = [
"//base",
"//chromeos/ash/components/network",
"//chromeos/components/onc",
]
}
|