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

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

Issue 1837193002: Clovis: update resource sack to use new dependency graph. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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/resource_sack_unittest.py ('k') | no next file » | 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 a221385a000835ee5e2e76a8a70e5e81983bf416..8e0782650b1613765b16e057175d11b750b5024a 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 dependency_graph
import devtools_monitor
import loading_model
import loading_trace
@@ -166,6 +167,13 @@ class TestResourceGraph(loading_model.ResourceGraph):
return cls(LoadingTraceFromEvents(requests, page_events, trace_events))
+class TestDependencyGraph(dependency_graph.RequestDependencyGraph):
+ """A dependency graph created from requests using a simple lens."""
+ def __init__(self, requests):
+ lens = SimpleLens(LoadingTraceFromEvents(requests))
+ super(TestDependencyGraph, self).__init__(requests, lens)
+
+
class MockConnection(object):
"""Mock out connection for testing.
« no previous file with comments | « tools/android/loading/resource_sack_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698