123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- # Copyright 2014 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.
- import("//testing/libfuzzer/fuzzer_test.gni")
- static_library("feedback") {
- sources = [
- "features.cc",
- "features.h",
- "feedback_common.cc",
- "feedback_common.h",
- "feedback_data.cc",
- "feedback_data.h",
- "feedback_report.cc",
- "feedback_report.h",
- "feedback_switches.cc",
- "feedback_switches.h",
- "feedback_uploader.cc",
- "feedback_uploader.h",
- "feedback_util.cc",
- "feedback_util.h",
- "pii_types.h",
- "redaction_tool.cc",
- "redaction_tool.h",
- "system_logs/system_logs_fetcher.cc",
- "system_logs/system_logs_fetcher.h",
- "system_logs/system_logs_source.cc",
- "system_logs/system_logs_source.h",
- "tracing_manager.cc",
- "tracing_manager.h",
- ]
- public_deps = [ "//base" ]
- deps = [
- "//build:chromeos_buildflags",
- "//components/feedback/proto",
- "//components/keyed_service/core",
- "//components/variations/net",
- "//google_apis",
- "//net",
- "//services/network/public/cpp",
- "//third_party/re2",
- "//third_party/zlib/google:zip",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "feedback_common_unittest.cc",
- "feedback_data_unittest.cc",
- "feedback_uploader_dispatch_unittest.cc",
- "feedback_uploader_unittest.cc",
- "redaction_tool_unittest.cc",
- ]
- if (!is_win) {
- sources += [ "feedback_util_unittest.cc" ]
- }
- deps = [
- ":feedback",
- "//base",
- "//build:chromeos_buildflags",
- "//components/feedback/proto",
- "//components/keyed_service/core",
- "//components/prefs:test_support",
- "//components/sync_preferences:test_support",
- "//components/user_prefs",
- "//components/variations:test_support",
- "//components/variations/net",
- "//net:test_support",
- "//services/network:test_support",
- "//services/network/public/cpp",
- "//testing/gmock",
- "//testing/gtest",
- ]
- }
- if (!is_ios) {
- fuzzer_test("redaction_tool_fuzzer") {
- sources = [ "redaction_tool_fuzzer.cc" ]
- deps = [ ":feedback" ]
- dict = "redaction_tool_fuzzer.dict"
- }
- }
|