Skip to content

Commit b5f6bf4

Browse files
committed
unit test
1 parent e925a53 commit b5f6bf4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

firebase-perf/src/test/java/com/google/firebase/perf/session/gauges/GaugeManagerTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ public void testStartCollectingGaugesStartsCollectingMetricsInForegroundState()
156156

157157
@Test
158158
public void
159-
testStartCollectingGaugesDoesNotStartCollectingMetricsWithUnknownApplicationProcessState() {
159+
testStartCollectingGaugesStartCollectingMetricsWithUnknownApplicationProcessStateInForegroundState() {
160160
PerfSession fakeSession = createTestSession(1);
161161
testGaugeManager.startCollectingGauges(fakeSession);
162+
// @see
163+
// com.google.firebase.perf.config.ConfigurationConstants.SessionsCpuCaptureFrequencyForegroundMs
162164
verify(fakeCpuGaugeCollector, never())
163-
.startCollecting(ArgumentMatchers.anyLong(), ArgumentMatchers.nullable(Timer.class));
165+
.startCollecting(ArgumentMatchers.eq(100L), ArgumentMatchers.nullable(Timer.class));
164166
verify(fakeMemoryGaugeCollector, never())
165-
.startCollecting(ArgumentMatchers.anyLong(), ArgumentMatchers.nullable(Timer.class));
167+
.startCollecting(ArgumentMatchers.eq(100L), ArgumentMatchers.nullable(Timer.class));
166168
}
167169

168170
@Test

0 commit comments

Comments
 (0)