Lines Matching full:mask
124 BitrateSettings mask; in TEST_F() local
125 mask.min_bitrate_bps = 1234; in TEST_F()
126 UpdateMaskMatches(mask, *mask.min_bitrate_bps, nullopt, nullopt); in TEST_F()
130 BitrateSettings mask; in TEST_F() local
131 mask.min_bitrate_bps = 1000; in TEST_F()
132 UpdateMaskMatches(mask, 1000, nullopt, nullopt); in TEST_F()
141 BitrateSettings mask; in TEST_F() local
142 mask.start_bitrate_bps = 1300; in TEST_F()
143 UpdateMaskMatches(mask, nullopt, *mask.start_bitrate_bps, nullopt); in TEST_F()
157 BitrateSettings mask; in TEST_F() local
158 mask.max_bitrate_bps = bitrate_config.start_bitrate_bps + 1000; in TEST_F()
160 UpdateMaskMatches(mask, nullopt, nullopt, *mask.max_bitrate_bps); in TEST_F()
168 BitrateSettings mask; in TEST_F() local
169 mask.max_bitrate_bps = bitrate_config.start_bitrate_bps + 2000; in TEST_F()
172 EXPECT_FALSE(configurator_->UpdateWithClientPreferences(mask).has_value()); in TEST_F()
180 BitrateSettings mask; in TEST_F() local
181 mask.start_bitrate_bps = 1000; in TEST_F()
182 UpdateMaskMatches(mask, 2000, 2000, nullopt); in TEST_F()
190 BitrateSettings mask; in TEST_F() local
191 mask.max_bitrate_bps = 1000; in TEST_F()
193 UpdateMaskMatches(mask, nullopt, -1, 1000); in TEST_F()
201 BitrateSettings mask; in TEST_F() local
202 mask.max_bitrate_bps = 1000; in TEST_F()
204 UpdateMaskMatches(mask, 1000, nullopt, 1000); in TEST_F()
208 BitrateSettings mask; in TEST_F() local
209 mask.start_bitrate_bps = 1000; in TEST_F()
213 UpdateMaskMatches(mask, nullopt, 1000, nullopt); in TEST_F()
214 UpdateMaskMatches(mask, nullopt, 1000, nullopt); in TEST_F()
245 // Reduce effective max to 1000 with the mask. in TEST_F()
246 BitrateSettings mask; in TEST_F() local
247 mask.max_bitrate_bps = 1000; in TEST_F()
248 UpdateMaskMatches(mask, nullopt, nullopt, 1000); in TEST_F()
256 // When the "start bitrate" mask is removed, new config shouldn't be returned
259 BitrateSettings mask; in TEST_F() local
260 mask.start_bitrate_bps = 1000; in TEST_F()
261 UpdateMaskMatches(mask, 0, 1000, -1); in TEST_F()
263 mask.start_bitrate_bps.reset(); in TEST_F()
264 EXPECT_FALSE(configurator_->UpdateWithClientPreferences(mask).has_value()); in TEST_F()
271 BitrateSettings mask; in TEST_F() local
272 mask.start_bitrate_bps = 1000; in TEST_F()
273 UpdateMaskMatches(mask, 0, 1000, -1); in TEST_F()
292 BitrateSettings mask; in TEST_F() local
293 mask.min_bitrate_bps = 2000; in TEST_F()
294 UpdateMaskMatches(mask, 1000, -1, 1000); in TEST_F()
297 mask.min_bitrate_bps = 3000; in TEST_F()
298 EXPECT_FALSE(configurator_->UpdateWithClientPreferences(mask).has_value()); in TEST_F()