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

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

Issue 1813723002: clovis: Identify prefetchable resources from dependencies and tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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
« no previous file with comments | « tools/android/loading/request_dependencies_lens_unittest.py ('k') | tools/android/loading/tracing.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/test_utils.py
diff --git a/tools/android/loading/test_utils.py b/tools/android/loading/test_utils.py
index f1c80c28291a8c2f95e7bc956d39d2847bbe807d..38737c0ceb0a31fcdde4b8ab6b50d6b4096532ab 100644
--- a/tools/android/loading/test_utils.py
+++ b/tools/android/loading/test_utils.py
@@ -125,7 +125,7 @@ def LoadingTraceFromEvents(requests, page_events=None, trace_events=None):
"""Returns a LoadingTrace instance from a list of requests and page events."""
request = FakeRequestTrack(requests)
page_event_track = FakePageTrack(page_events if page_events else [])
- if trace_events:
+ if trace_events is not None:
tracing_track = tracing.TracingTrack(None)
tracing_track.Handle('Tracing.dataCollected',
{'params': {'value': [e for e in trace_events]}})
« no previous file with comments | « tools/android/loading/request_dependencies_lens_unittest.py ('k') | tools/android/loading/tracing.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698