| # 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("//base/debug/debug.gni") |
| import("//components/allocation_recorder/testing/testing.gni") |
| |
| source_set("testing") { |
| testonly = true |
| |
| sources = [] |
| deps = [] |
| |
| if (build_allocation_stack_trace_recorder) { |
| sources += [ |
| "crashpad_fake_objects.cc", |
| "crashpad_fake_objects.h", |
| "mock_objects.cc", |
| "mock_objects.h", |
| ] |
| |
| deps += [ |
| "//components/allocation_recorder/crash_handler", |
| "//testing/gmock", |
| "//third_party/crashpad/crashpad/minidump", |
| "//third_party/crashpad/crashpad/util", |
| ] |
| } |
| |
| if (enable_allocation_trace_recorder_integration_tests) { |
| sources += [ |
| "crash_verification.cc", |
| "crash_verification.h", |
| ] |
| |
| deps += [ |
| "//base:debugging_buildflags", |
| "//components/allocation_recorder/internal", |
| "//testing/gtest", |
| "//third_party/crashpad/crashpad/client:common", |
| "//third_party/crashpad/crashpad/minidump", |
| "//third_party/crashpad/crashpad/snapshot", |
| "//third_party/crashpad/crashpad/util", |
| ] |
| |
| if (build_allocation_stack_trace_recorder) { |
| deps += [ "//components/allocation_recorder/crash_handler:memory_operation_report" ] |
| } |
| } |
| } |