Lines Matching full:args

139   RateLimiter::Args args;  in TEST()  local
141 args.allow_user_build_tracing = true; in TEST()
142 args.is_dropbox = true; in TEST()
143 args.ignore_guardrails = true; in TEST()
144 args.current_time = base::TimeSeconds(41); in TEST()
148 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
151 ASSERT_TRUE(limiter.OnTraceDone(args, true, 42u)); in TEST()
162 RateLimiter::Args args; in TEST() local
164 args.allow_user_build_tracing = true; in TEST()
165 args.is_dropbox = true; in TEST()
166 args.current_time = base::TimeSeconds(10000); in TEST()
170 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
173 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024)); in TEST()
184 RateLimiter::Args args; in TEST() local
192 args.allow_user_build_tracing = true; in TEST()
193 args.is_dropbox = true; in TEST()
194 args.current_time = base::TimeSeconds(input.last_trace_timestamp() + 60 * 10); in TEST()
197 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
200 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024)); in TEST()
207 static_cast<uint64_t>(args.current_time.count())); in TEST()
212 RateLimiter::Args args; in TEST() local
214 args.allow_user_build_tracing = true; in TEST()
215 args.is_dropbox = true; in TEST()
221 ASSERT_FALSE(limiter.ShouldTrace(args)); in TEST()
232 RateLimiter::Args args; in TEST() local
239 args.allow_user_build_tracing = true; in TEST()
240 args.is_dropbox = true; in TEST()
241 args.current_time = base::TimeSeconds(99); in TEST()
245 ASSERT_FALSE(limiter.ShouldTrace(args)); in TEST()
256 RateLimiter::Args args; in TEST() local
263 args.allow_user_build_tracing = true; in TEST()
264 args.is_dropbox = true; in TEST()
265 args.current_time = base::TimeSeconds(10000 + 60 * 4); in TEST()
268 ASSERT_FALSE(limiter.ShouldTrace(args)); in TEST()
273 RateLimiter::Args args; in TEST() local
279 args.allow_user_build_tracing = true; in TEST()
280 args.is_dropbox = true; in TEST()
281 args.current_time = base::TimeSeconds(60 * 60); in TEST()
284 ASSERT_FALSE(limiter.ShouldTrace(args)); in TEST()
289 RateLimiter::Args args; in TEST() local
295 args.allow_user_build_tracing = true; in TEST()
296 args.is_dropbox = true; in TEST()
297 args.current_time = base::TimeSeconds(60 * 60); in TEST()
298 args.max_upload_bytes_override = 10 * 1024 * 1024 + 2; in TEST()
301 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
306 RateLimiter::Args args; in TEST() local
314 args.is_dropbox = true; in TEST()
315 args.current_time = base::TimeSeconds(60 * 60 * 24 + 2); in TEST()
318 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
321 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024)); in TEST()
327 static_cast<uint64_t>(args.current_time.count())); in TEST()
329 static_cast<uint64_t>(args.current_time.count())); in TEST()
334 RateLimiter::Args args; in TEST() local
336 args.is_dropbox = true; in TEST()
337 args.current_time = base::TimeSeconds(10000); in TEST()
341 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
342 ASSERT_FALSE(limiter.OnTraceDone(args, false, 1024 * 1024)); in TEST()
347 RateLimiter::Args args; in TEST() local
349 args.is_dropbox = true; in TEST()
350 args.current_time = base::TimeSeconds(10000); in TEST()
354 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
357 ASSERT_FALSE(limiter.OnTraceDone(args, true, 1024 * 1024)); in TEST()
362 RateLimiter::Args args; in TEST() local
364 args.allow_user_build_tracing = false; in TEST()
365 args.is_dropbox = true; in TEST()
366 args.current_time = base::TimeSeconds(10000); in TEST()
373 ASSERT_TRUE(limiter.ShouldTrace(args)); in TEST()
377 ASSERT_FALSE(limiter.ShouldTrace(args)); in TEST()