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

Unified Diff: tools/binary_size/libsupersize/integration_test.py

Issue 2869873002: supersize: Sort diffs by default (Closed)
Patch Set: Created 3 years, 7 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/binary_size/libsupersize/diff.py ('k') | tools/binary_size/libsupersize/testdata/Diff_Basic.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/binary_size/libsupersize/integration_test.py
diff --git a/tools/binary_size/libsupersize/integration_test.py b/tools/binary_size/libsupersize/integration_test.py
index 1c7deef2871e9e95eea56ea2ce94827fd396a196..d6a3ffe9042b9e025f63beda90b2c30633fa3e2f 100755
--- a/tools/binary_size/libsupersize/integration_test.py
+++ b/tools/binary_size/libsupersize/integration_test.py
@@ -182,6 +182,7 @@ class IntegrationTest(unittest.TestCase):
size_info2.symbols -= size_info2.symbols[-3:]
size_info1.symbols[1].size -= 10
d = diff.Diff(size_info1, size_info2)
+ d.symbols = d.symbols.Cluster().Sorted()
return describe.GenerateLines(d, verbose=True)
def test_Diff_Aliases1(self):
@@ -257,6 +258,7 @@ class IntegrationTest(unittest.TestCase):
models.Symbol(S, 55, name='.L__bar_295', object_path='b'), # 5
]
d = diff.Diff(size_info1, size_info2)
+ d.symbols = d.symbols.Cluster().Sorted()
self.assertEquals(d.symbols.added_count, 0)
self.assertEquals(d.symbols.size, 0)
« no previous file with comments | « tools/binary_size/libsupersize/diff.py ('k') | tools/binary_size/libsupersize/testdata/Diff_Basic.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698