Home | History | Annotate | Download | only in base

Lines Matching defs:helper_

15   AudioTimestampHelperTest() : helper_(kDefaultSampleRate) {
16 helper_.SetBaseTimestamp(base::TimeDelta());
22 helper_.AddFrames(frames);
23 return helper_.GetTimestamp().InMicroseconds();
27 return helper_.GetFramesToTarget(
39 AudioTimestampHelper helper_;
45 EXPECT_EQ(0, helper_.GetTimestamp().InMicroseconds());
60 base::TimeDelta timestamp_1 = helper_.GetTimestamp();
61 helper_.SetBaseTimestamp(kNoTimestamp());
62 EXPECT_TRUE(kNoTimestamp() == helper_.base_timestamp());
63 helper_.SetBaseTimestamp(base::TimeDelta());
64 EXPECT_EQ(0, helper_.GetTimestamp().InMicroseconds());
66 helper_.AddFrames(5);
67 EXPECT_EQ(113, helper_.GetTimestamp().InMicroseconds());
68 EXPECT_TRUE(timestamp_1 == helper_.GetTimestamp());
73 helper_.SetBaseTimestamp(base::TimeDelta::FromMicroseconds(100));
78 base::TimeDelta duration = helper_.GetFrameDuration(frame_count);
81 base::TimeDelta timestamp_1 = helper_.GetTimestamp() + duration;
82 helper_.AddFrames(frame_count);
83 base::TimeDelta timestamp_2 = helper_.GetTimestamp();
110 helper_.AddFrames(5);