Lines Matching refs:TraceConfig
51 void CheckDefaultTraceConfigBehavior(const TraceConfig& tc) { in CheckDefaultTraceConfigBehavior()
73 TraceConfig config("", "record-until-full"); in TEST()
80 config = TraceConfig("", "record-continuously"); in TEST()
87 config = TraceConfig("", "trace-to-console"); in TEST()
94 config = TraceConfig("", "record-as-much-as-possible"); in TEST()
102 config = TraceConfig("", "record-until-full, enable-sampling"); in TEST()
110 config = TraceConfig("", "enable-systrace, record-continuously"); in TEST()
118 config = TraceConfig("", "enable-argument-filter,record-as-much-as-possible"); in TEST()
126 config = TraceConfig( in TEST()
137 config = TraceConfig( in TEST()
146 config = TraceConfig("", RECORD_UNTIL_FULL); in TEST()
153 config = TraceConfig("", RECORD_CONTINUOUSLY); in TEST()
160 config = TraceConfig("", ECHO_TO_CONSOLE); in TEST()
167 config = TraceConfig("", RECORD_AS_MUCH_AS_POSSIBLE); in TEST()
176 config = TraceConfig("included,-excluded,inc_pattern*,-exc_pattern*", ""); in TEST()
180 config = TraceConfig("only_inc_cat", ""); in TEST()
183 config = TraceConfig("-only_exc_cat", ""); in TEST()
186 config = TraceConfig("disabled-by-default-cc,-excluded", ""); in TEST()
190 config = TraceConfig("disabled-by-default-cc,included", ""); in TEST()
194 config = TraceConfig("DELAY(test.Delay1;16),included", ""); in TEST()
199 config = TraceConfig("", ""); in TEST()
207 config = TraceConfig("included,-excluded,inc_pattern*,-exc_pattern*", in TEST()
219 config = TraceConfig(" included , -excluded, inc_pattern*, ,-exc_pattern* ", in TEST()
231 config = TraceConfig("included,-excluded,inc_pattern*,-exc_pattern*", in TEST()
243 TraceConfig config("", "foo-bar-baz"); in TEST()
251 config = TraceConfig("arbitrary-category", "foo-bar-baz, enable-systrace"); in TEST()
269 TraceConfig tc(configs[i], ""); in TEST()
275 TraceConfig tc; in TEST()
281 TraceConfig tc_asterisk("*", ""); in TEST()
285 TraceConfig tc_empty_category_filter("", ""); in TEST()
292 TraceConfig tc_empty_json_string(""); in TEST()
300 TraceConfig tc_dict(dict); in TEST()
307 TraceConfig tc_empty("", ""); in TEST()
308 TraceConfig tc_asterisk("*", ""); in TEST()
325 TraceConfig tc("foo,disabled-by-default-foo", ""); in TEST()
335 tc = TraceConfig("disabled-by-default-foo", ""); in TEST()
346 TraceConfig tc(dict); in TEST()
360 TraceConfig default_tc(*default_dict); in TEST()
374 TraceConfig custom_tc(*custom_dict); in TEST()
401 TraceConfig tc(config_string); in TEST()
438 TraceConfig tc2(config_string_2); in TEST()
458 TraceConfig tc(""); in TEST()
467 tc = TraceConfig("This is an invalid config string."); in TEST()
476 tc = TraceConfig("[\"This\", \"is\", \"not\", \"a\", \"dictionary\"]"); in TEST()
485 tc = TraceConfig("{\"record_mode\": invalid-value-needs-double-quote}"); in TEST()
496 tc = TraceConfig("{}"); in TEST()
504 tc = TraceConfig("{\"arbitrary-key\":\"arbitrary-value\"}"); in TEST()
523 tc = TraceConfig(invalid_config_string); in TEST()
536 tc = TraceConfig(invalid_config_string_2); in TEST()
545 TraceConfig tc; in TEST()
546 TraceConfig tc2("included,-excluded,inc_pattern*,-exc_pattern*", ""); in TEST()
557 tc = TraceConfig("DELAY(test.Delay1;16)", ""); in TEST()
558 tc2 = TraceConfig("DELAY(test.Delay2;32)", ""); in TEST()
568 TraceConfig tc("disabled-by-default-cc,-excluded", ""); in TEST()
577 tc = TraceConfig("disabled-by-default-cc,included", ""); in TEST()
586 tc = TraceConfig("-excluded", ""); in TEST()
596 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
598 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
600 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
602 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
604 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
606 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
608 EXPECT_TRUE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
610 EXPECT_FALSE(TraceConfig::IsEmptyOrContainsLeadingOrTrailingWhitespace( in TEST()
615 TraceConfig tc; in TEST()
633 TraceConfig tc1(tc_str1); in TEST()
652 TraceConfig tc2(tc_str2); in TEST()
663 TraceConfig tc(TraceConfigMemoryTestUtil::GetTraceConfig_EmptyTriggers()); in TEST()
667 EXPECT_EQ(TraceConfig::MemoryDumpConfig::HeapProfiler in TEST()
674 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); in TEST()
678 EXPECT_EQ(TraceConfig::MemoryDumpConfig::HeapProfiler in TEST()