Lines Matching refs:options
33 ConfigOptions options; member in perfetto::__anon9a2ddcf40111::CreateConfigFromOptionsTest
37 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
42 options.time = "2ms"; in TEST_F()
43 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
48 options.time = "100s"; in TEST_F()
49 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
54 options.time = "2m"; in TEST_F()
55 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
60 options.time = "2h"; in TEST_F()
61 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
66 options.buffer_size = "2kb"; in TEST_F()
67 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
72 options.buffer_size = "2mb"; in TEST_F()
73 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
78 options.buffer_size = "2gb"; in TEST_F()
79 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
84 options.buffer_size = "2gb "; in TEST_F()
85 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
89 options.buffer_size = "2ly"; in TEST_F()
90 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
94 options.buffer_size = "2"; in TEST_F()
95 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
99 options.buffer_size = "kb"; in TEST_F()
100 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
104 options.buffer_size = ""; in TEST_F()
105 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()
109 options.time = "2mb"; in TEST_F()
110 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
114 options.max_file_size = "2s"; in TEST_F()
115 ASSERT_FALSE(CreateConfigFromOptions(options, &config)); in TEST_F()
119 options.buffer_size = "100mb"; in TEST_F()
120 options.max_file_size = "1gb"; in TEST_F()
121 options.time = "1h"; in TEST_F()
122 options.categories.push_back("sw"); in TEST_F()
123 options.categories.push_back("sched/sched_switch"); in TEST_F()
124 options.atrace_apps.push_back("com.android.chrome"); in TEST_F()
125 ASSERT_TRUE(CreateConfigFromOptions(options, &config)); in TEST_F()