Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4996)

Unified Diff: components/metrics/BUILD.gn

Issue 2166553003: Revert of Mojo interface/service for Leak Detector on remote process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/leak_detector/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/BUILD.gn
diff --git a/components/metrics/BUILD.gn b/components/metrics/BUILD.gn
index 72bd03878f00e4bd1b5562204b52af7696a35ffd..9d7a2afc3bc6d5a7f0e33d980b12286529dcad84 100644
--- a/components/metrics/BUILD.gn
+++ b/components/metrics/BUILD.gn
@@ -128,6 +128,35 @@
}
}
+if (is_chromeos) {
+ # GYP version: components/metrics.gypi:metrics_leak_detector
+ static_library("leak_detector") {
+ sources = [
+ "leak_detector/call_stack_manager.cc",
+ "leak_detector/call_stack_manager.h",
+ "leak_detector/call_stack_table.cc",
+ "leak_detector/call_stack_table.h",
+ "leak_detector/custom_allocator.cc",
+ "leak_detector/custom_allocator.h",
+ "leak_detector/leak_analyzer.cc",
+ "leak_detector/leak_analyzer.h",
+ "leak_detector/leak_detector.cc",
+ "leak_detector/leak_detector.h",
+ "leak_detector/leak_detector_impl.cc",
+ "leak_detector/leak_detector_impl.h",
+ "leak_detector/leak_detector_value_type.cc",
+ "leak_detector/leak_detector_value_type.h",
+ "leak_detector/ranked_set.cc",
+ "leak_detector/ranked_set.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/metrics/proto:proto",
+ ]
+ }
+}
+
# GYP version: components/metrics.gypi:metrics_net
static_library("net") {
sources = [
@@ -271,6 +300,28 @@
]
deps = [
"//base",
+ ]
+ }
+}
+
+if (is_chromeos) {
+ source_set("leak_detector_unit_tests") {
+ testonly = true
+ sources = [
+ "leak_detector/call_stack_manager_unittest.cc",
+ "leak_detector/call_stack_table_unittest.cc",
+ "leak_detector/leak_analyzer_unittest.cc",
+ "leak_detector/leak_detector_impl_unittest.cc",
+ "leak_detector/leak_detector_unittest.cc",
+ "leak_detector/ranked_set_unittest.cc",
+ ]
+
+ deps = [
+ ":leak_detector",
+ "//base",
+ "//components/metrics/proto:proto",
+ "//content/test:test_support",
+ "//testing/gtest",
]
}
}
@@ -320,6 +371,6 @@
}
if (is_chromeos) {
- deps += [ "leak_detector:unit_tests" ]
- }
-}
+ deps += [ ":leak_detector_unit_tests" ]
+ }
+}
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/leak_detector/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698