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

Unified Diff: tools/android/loading/resource_sack_display_unittest.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_display.py ('k') | tools/android/loading/resource_sack_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/resource_sack_display_unittest.py
diff --git a/tools/android/loading/resource_sack_display_unittest.py b/tools/android/loading/resource_sack_display_unittest.py
deleted file mode 100644
index 65b53ff5f98b0ed68913295bd8205615ebd0e39d..0000000000000000000000000000000000000000
--- a/tools/android/loading/resource_sack_display_unittest.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import re
-from StringIO import StringIO
-import unittest
-
-import resource_sack
-import resource_sack_display
-from test_utils import (MakeRequest,
- TestResourceGraph)
-
-
-class ResourceSackDispayTestCase(unittest.TestCase):
- def test_SimpleOutput(self):
- g1 = TestResourceGraph.FromRequestList([
- MakeRequest(0, 'null'),
- MakeRequest(1, 0),
- MakeRequest(2, 0),
- MakeRequest(3, 1)])
- g2 = TestResourceGraph.FromRequestList([
- MakeRequest(0, 'null'),
- MakeRequest(1, 0),
- MakeRequest(2, 0),
- MakeRequest(4, 2)])
- sack = resource_sack.GraphSack()
- sack.ConsumeGraph(g1)
- sack.ConsumeGraph(g2)
- buf = StringIO()
- resource_sack_display.ToDot(sack, buf,
- long_edge_msec=1000)
- dot = buf.getvalue()
- # Short edge.
- self.assertTrue(re.search(r'0 -> 1[^]]+color=green \]', dot, re.MULTILINE))
- # Long edge.
- self.assertTrue(re.search(r'0 -> 3[^]]+penwidth=8', dot))
-
-
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « tools/android/loading/resource_sack_display.py ('k') | tools/android/loading/resource_sack_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698