• Home
  • Raw
  • Download

Lines Matching refs:args

306     Vector<String16> args;  in TEST()  local
307 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
308 args.push_back(String16(kIntervalFlag)); in TEST()
309 args.push_back(String16(std::to_string(kTestCustomCollectionInterval.count()).c_str())); in TEST()
310 args.push_back(String16(kMaxDurationFlag)); in TEST()
311 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST()
313 ASSERT_RESULT_OK(service->onCustomCollection(-1, args)); in TEST()
357 args.clear(); in TEST()
358 args.push_back(String16(kEndCustomCollectionFlag)); in TEST()
359 ASSERT_RESULT_OK(service->onCustomCollection(customDump.fd, args)); in TEST()
472 Vector<String16> args; in TEST() local
473 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
474 args.push_back(String16(kIntervalFlag)); in TEST()
475 args.push_back(String16(std::to_string(kTestCustomCollectionInterval.count()).c_str())); in TEST()
476 args.push_back(String16(kMaxDurationFlag)); in TEST()
477 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST()
478 args.push_back(String16(kFilterPackagesFlag)); in TEST()
479 args.push_back(String16("android.car.cts,system_server")); in TEST()
481 ASSERT_RESULT_OK(service->onCustomCollection(-1, args)); in TEST()
614 Vector<String16> args; in TEST() local
615 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
616 args.push_back(String16("Invalid flag")); in TEST()
617 args.push_back(String16("Invalid value")); in TEST()
618 ASSERT_FALSE(service->onCustomCollection(-1, args).ok()); in TEST()
620 args.clear(); in TEST()
621 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
622 args.push_back(String16(kIntervalFlag)); in TEST()
623 args.push_back(String16("Invalid interval")); in TEST()
624 ASSERT_FALSE(service->onCustomCollection(-1, args).ok()); in TEST()
626 args.clear(); in TEST()
627 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
628 args.push_back(String16(kMaxDurationFlag)); in TEST()
629 args.push_back(String16("Invalid duration")); in TEST()
630 ASSERT_FALSE(service->onCustomCollection(-1, args).ok()); in TEST()
632 args.clear(); in TEST()
633 args.push_back(String16(kEndCustomCollectionFlag)); in TEST()
634 args.push_back(String16(kMaxDurationFlag)); in TEST()
635 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST()
636 ASSERT_FALSE(service->onCustomCollection(-1, args).ok()); in TEST()
638 args.clear(); in TEST()
639 args.push_back(String16("Invalid flag")); in TEST()
640 ASSERT_FALSE(service->onCustomCollection(-1, args).ok()); in TEST()