Lines Matching refs:fixture
60 TrafficCounterFixture fixture; in TEST() local
61 TrafficRoute traffic(&fixture.clock, &fixture.counter, &fixture.endpoint); in TEST()
64 EXPECT_EQ(fixture.counter.packets_count_, 100); in TEST()
65 EXPECT_EQ(fixture.counter.total_packets_size_, 100 * 1000ul); in TEST()
69 TrafficCounterFixture fixture; in TEST() local
70 TrafficRoute traffic(&fixture.clock, &fixture.counter, &fixture.endpoint); in TEST()
80 while (fixture.clock.TimeInMilliseconds() < kRunTime.ms()) { in TEST()
81 pulsed_peaks.Process(Timestamp::Millis(fixture.clock.TimeInMilliseconds())); in TEST()
82 fixture.clock.AdvanceTimeMilliseconds(1); in TEST()
85 RTC_LOG(INFO) << fixture.counter.packets_count_ << " packets; " in TEST()
86 << fixture.counter.total_packets_size_ << " bytes"; in TEST()
89 EXPECT_NEAR(fixture.counter.total_packets_size_, kExpectedDataSent.bytes(), in TEST()
94 TrafficCounterFixture fixture; in TEST() local
95 TrafficRoute traffic(&fixture.clock, &fixture.counter, &fixture.endpoint); in TEST()
107 while (fixture.clock.TimeInMilliseconds() < kRunTime.ms()) { in TEST()
108 random_walk.Process(Timestamp::Millis(fixture.clock.TimeInMilliseconds())); in TEST()
109 fixture.clock.AdvanceTimeMilliseconds(1); in TEST()
112 RTC_LOG(INFO) << fixture.counter.packets_count_ << " packets; " in TEST()
113 << fixture.counter.total_packets_size_ << " bytes"; in TEST()
116 EXPECT_NEAR(fixture.counter.total_packets_size_, kExpectedDataSent.bytes(), in TEST()