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

Unified Diff: tools/android/loading/test_utils.py

Issue 2047463002: Set tracing categories explicitly in Clovis and Sandwich (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
Index: tools/android/loading/test_utils.py
diff --git a/tools/android/loading/test_utils.py b/tools/android/loading/test_utils.py
index cb2fd2ecff23266ef86758a859a6d150a31b02bc..86303f952f351ff19088a8bdc0bb6a51109acdec 100644
--- a/tools/android/loading/test_utils.py
+++ b/tools/android/loading/test_utils.py
@@ -4,6 +4,7 @@
"""Common utilities used in unit tests, within this directory."""
+import clovis_constants
import dependency_graph
import devtools_monitor
import loading_trace
@@ -140,7 +141,8 @@ def LoadingTraceFromEvents(requests, page_events=None, trace_events=None):
request = FakeRequestTrack(requests)
page_event_track = FakePageTrack(page_events if page_events else [])
if trace_events is not None:
- tracing_track = tracing.TracingTrack(None)
+ tracing_track = tracing.TracingTrack(None,
+ clovis_constants.DEFAULT_CATEGORIES)
tracing_track.Handle('Tracing.dataCollected',
{'params': {'value': [e for e in trace_events]}})
else:

Powered by Google App Engine
This is Rietveld 408576698