Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(980)

Unified Diff: test/cctest/libplatform/test-tracing.cc

Issue 2558193002: [Tracing] Support multi-categories group list. (Closed)
Patch Set: Add tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/libplatform/tracing/trace-config.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/libplatform/test-tracing.cc
diff --git a/test/cctest/libplatform/test-tracing.cc b/test/cctest/libplatform/test-tracing.cc
index 6189ed2dfc6df375f056ba1da3879e9af3bd2d18..5dc6b965f16c48af1fc47ea64557d07c4c1452ad 100644
--- a/test/cctest/libplatform/test-tracing.cc
+++ b/test/cctest/libplatform/test-tracing.cc
@@ -25,6 +25,14 @@ TEST(TestTraceConfig) {
CHECK_EQ(trace_config->IsCategoryGroupEnabled(
TRACE_DISABLED_BY_DEFAULT("v8.runtime")),
true);
+ CHECK_EQ(trace_config->IsCategoryGroupEnabled("v8,v8.cpu_profile"), true);
+ CHECK_EQ(
+ trace_config->IsCategoryGroupEnabled("v8,disabled-by-default-v8.runtime"),
+ true);
+ CHECK_EQ(trace_config->IsCategoryGroupEnabled(
+ "v8_cpu_profile,v8.cpu_profile.hires"),
+ false);
+
delete trace_config;
}
« no previous file with comments | « src/libplatform/tracing/trace-config.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698