# Copyright 2015 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/test.gni") source_set("crash") { sources = [ "app_state_tracker.cc", "app_state_tracker.h", "cast_crash_keys.cc", "cast_crash_keys.h", "cast_crashdump_uploader.cc", "cast_crashdump_uploader.h", "linux/crash_util.cc", "linux/crash_util.h", "linux/dummy_minidump_generator.cc", "linux/dummy_minidump_generator.h", "linux/dump_info.cc", "linux/dump_info.h", "linux/minidump_generator.h", "linux/minidump_params.cc", "linux/minidump_params.h", "linux/minidump_writer.cc", "linux/minidump_writer.h", "linux/synchronized_minidump_manager.cc", "linux/synchronized_minidump_manager.h", ] deps = [ "//base", "//breakpad:client", "//chromecast/base", "//chromecast/base:cast_version", ] } source_set("test_support") { sources = [ "linux/crash_testing_utils.cc", "linux/crash_testing_utils.h", ] deps = [ ":crash", "//base", "//chromecast/base", ] } if (is_linux) { test("cast_crash_unittests") { sources = [ "cast_crashdump_uploader_unittest.cc", "linux/dummy_minidump_generator_unittest.cc", "linux/dump_info_unittest.cc", "linux/minidump_writer_unittest.cc", "linux/synchronized_minidump_manager_unittest.cc", ] deps = [ ":crash", ":test_support", "//base", "//base/test:run_all_unittests", "//base/test:test_support", "//breakpad:client", "//chromecast/base:test_support", "//testing/gmock", "//testing/gtest", ] } }