# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//extensions/buildflags/buildflags.gni")
import("//testing/test.gni")
assert(!is_fuchsia, "Fuchsia shouldn't use anything in //chrome")
static_library("crash_upload_list") {
sources = [
"crash_upload_list.cc",
"crash_upload_list.h",
]
if (is_android) {
sources += [
"crash_upload_list_android.cc",
"crash_upload_list_android.h",
]
}
if (is_chromeos) {
sources += [
"crash_upload_list_chromeos.cc",
"crash_upload_list_chromeos.h",
]
}
deps = [
"//chrome/common:constants",
"//components/crash/core/app:app",
"//components/crash/core/browser:browser",
"//components/upload_list",
]
if (is_android) {
deps += [ "//chrome/android:chrome_jni_headers" ]
}
public_deps = [
"//base",
"//third_party/abseil-cpp:absl",
]
}
source_set("unit_tests") {
testonly = true
if (is_chromeos) {
sources = [ "crash_upload_list_chromeos_unittest.cc" ]
}
deps = [
":crash_upload_list",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}