Lines Matching refs:detector
20 DelayPeakDetector* detector = new DelayPeakDetector();
21 EXPECT_FALSE(detector->peak_found());
22 delete detector;
26 DelayPeakDetector detector;
27 EXPECT_EQ(-1, detector.MaxPeakHeight());
28 EXPECT_EQ(-1, detector.MaxPeakPeriod());
31 // Inject a series of packet arrivals into the detector. Three of the packets
35 DelayPeakDetector detector;
37 detector.SetPacketAudioLength(kPacketSizeMs);
60 // Load into detector.
69 EXPECT_FALSE(detector.Update(iat_packets, kTargetBufferLevel));
71 EXPECT_TRUE(detector.Update(iat_packets, kTargetBufferLevel));
72 EXPECT_EQ(kWorstPeakPeriod, detector.MaxPeakPeriod());
73 EXPECT_EQ(kPeakDelayMs / kPacketSizeMs + 1, detector.MaxPeakHeight());
77 detector.IncrementCounter(10);
86 DelayPeakDetector detector;
88 detector.SetPacketAudioLength(kPacketSizeMs);
106 // Load into detector.
114 EXPECT_FALSE(detector.Update(iat_packets, kTargetBufferLevel));
117 detector.IncrementCounter(10);