| load("@rules_java//java:defs.bzl", "java_test") |
| |
| package( |
| default_applicable_licenses = ["//:license"], |
| default_testonly = 1, |
| default_visibility = ["//src:__subpackages__"], |
| ) |
| |
| filegroup( |
| name = "srcs", |
| testonly = 0, |
| srcs = glob(["*"]) + [ |
| "//src/main/java/com/google/devtools/build/lib/metrics/criticalpath:srcs", |
| ], |
| visibility = ["//src:__subpackages__"], |
| ) |
| |
| java_test( |
| name = "PostGCMemoryUseRecorderTest", |
| size = "small", |
| srcs = ["PostGCMemoryUseRecorderTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib/bugreport", |
| "//src/main/java/com/google/devtools/build/lib/metrics:memory-use-recorder", |
| "//src/test/java/com/google/devtools/build/lib/testutil", |
| "//third_party:guava", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:mockito", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "MetricsCollectorTest", |
| srcs = ["MetricsCollectorTest.java"], |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib:runtime", |
| "//src/main/java/com/google/devtools/build/lib/actions", |
| "//src/main/java/com/google/devtools/build/lib/analysis:view_creation_failed_exception", |
| "//src/main/java/com/google/devtools/build/lib/buildeventstream/proto:build_event_stream_java_proto", |
| "//src/main/java/com/google/devtools/build/lib/clock", |
| "//src/main/java/com/google/devtools/build/lib/metrics:event", |
| "//src/main/java/com/google/devtools/build/lib/metrics:memory-use-recorder", |
| "//src/main/java/com/google/devtools/build/lib/metrics:metrics_module", |
| "//src/main/java/com/google/devtools/build/lib/profiler", |
| "//src/main/java/com/google/devtools/build/lib/util:os", |
| "//src/main/java/com/google/devtools/build/lib/worker:worker_metric", |
| "//src/test/java/com/google/devtools/build/lib/buildtool/util", |
| "//third_party:guava", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |