OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 proto_library("stability_report_proto") { | 7 proto_library("stability_report_proto") { |
8 sources = [ | 8 sources = [ |
9 "stability_report.proto", | 9 "stability_report.proto", |
10 ] | 10 ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ] | 49 ] |
50 deps = [ | 50 deps = [ |
51 ":stability_report_proto", | 51 ":stability_report_proto", |
52 "//base", | 52 "//base", |
53 "//third_party/crashpad/crashpad/client", | 53 "//third_party/crashpad/crashpad/client", |
54 "//third_party/crashpad/crashpad/minidump", | 54 "//third_party/crashpad/crashpad/minidump", |
55 "//third_party/crashpad/crashpad/util", | 55 "//third_party/crashpad/crashpad/util", |
56 ] | 56 ] |
57 } | 57 } |
58 | 58 |
| 59 static_library("postmortem_report_collector") { |
| 60 sources = [ |
| 61 "postmortem_report_collector.cc", |
| 62 "postmortem_report_collector.h", |
| 63 ] |
| 64 deps = [ |
| 65 ":postmortem_minidump_writer", |
| 66 ":stability_report_proto", |
| 67 "//base", |
| 68 "//components/version_info", |
| 69 "//third_party/crashpad/crashpad/client", |
| 70 "//third_party/crashpad/crashpad/util", |
| 71 ] |
| 72 } |
| 73 |
59 source_set("unit_tests") { | 74 source_set("unit_tests") { |
60 testonly = true | 75 testonly = true |
61 sources = [ | 76 sources = [ |
62 "endsession_watcher_window_win_unittest.cc", | 77 "endsession_watcher_window_win_unittest.cc", |
63 "exit_code_watcher_win_unittest.cc", | 78 "exit_code_watcher_win_unittest.cc", |
64 "exit_funnel_win_unittest.cc", | 79 "exit_funnel_win_unittest.cc", |
65 "postmortem_minidump_writer_win_unittest.cc", | 80 "postmortem_minidump_writer_win_unittest.cc", |
| 81 "postmortem_report_collector_unittest.cc", |
66 "watcher_client_win_unittest.cc", | 82 "watcher_client_win_unittest.cc", |
67 "watcher_metrics_provider_win_unittest.cc", | 83 "watcher_metrics_provider_win_unittest.cc", |
68 "window_hang_monitor_win_unittest.cc", | 84 "window_hang_monitor_win_unittest.cc", |
69 ] | 85 ] |
70 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
71 deps = [ | 87 deps = [ |
72 ":browser_watcher", | 88 ":browser_watcher", |
73 ":browser_watcher_client", | 89 ":browser_watcher_client", |
74 ":postmortem_minidump_writer", | 90 ":postmortem_minidump_writer", |
| 91 ":postmortem_report_collector", |
75 ":stability_report_proto", | 92 ":stability_report_proto", |
76 "//base", | 93 "//base", |
77 "//base/test:test_support", | 94 "//base/test:test_support", |
| 95 "//testing/gmock", |
78 "//testing/gtest", | 96 "//testing/gtest", |
79 "//third_party/crashpad/crashpad/client", | 97 "//third_party/crashpad/crashpad/client", |
80 | 98 |
81 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. | 99 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. |
82 "//third_party/crashpad/crashpad/compat", | 100 "//third_party/crashpad/crashpad/compat", |
83 "//third_party/crashpad/crashpad/minidump", | 101 "//third_party/crashpad/crashpad/minidump", |
84 "//third_party/crashpad/crashpad/snapshot", | 102 "//third_party/crashpad/crashpad/snapshot", |
85 "//third_party/crashpad/crashpad/util", | 103 "//third_party/crashpad/crashpad/util", |
86 ] | 104 ] |
87 } | 105 } |
OLD | NEW |