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

Side by Side Diff: tools/binary_size/libsupersize/function_signature_test.py

Issue 2813963002: //tools/binary_size: Consolidate most tools into "supersize" command (Closed)
Patch Set: Fix readme formatting. Make archive's --outoput-file a positional arg Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2017 The Chromium Authors. All rights reserved. 2 # Copyright 2017 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import logging 6 import logging
7 import unittest 7 import unittest
8 8
9 import function_signature 9 import function_signature
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 SIG = '(anonymous namespace)::Foo::Baz() const::GLSLFP::onData(Foo, Bar)' 80 SIG = '(anonymous namespace)::Foo::Baz() const::GLSLFP::onData(Foo, Bar)'
81 got_full, got_name = function_signature.Parse(SIG) 81 got_full, got_name = function_signature.Parse(SIG)
82 self.assertEqual('(anonymous namespace)::Foo::Baz', got_name) 82 self.assertEqual('(anonymous namespace)::Foo::Baz', got_name)
83 self.assertEqual(SIG, got_full) 83 self.assertEqual(SIG, got_full)
84 84
85 85
86 if __name__ == '__main__': 86 if __name__ == '__main__':
87 logging.basicConfig(level=logging.DEBUG, 87 logging.basicConfig(level=logging.DEBUG,
88 format='%(levelname).1s %(relativeCreated)6d %(message)s') 88 format='%(levelname).1s %(relativeCreated)6d %(message)s')
89 unittest.main() 89 unittest.main()
OLDNEW
« no previous file with comments | « tools/binary_size/libsupersize/function_signature.py ('k') | tools/binary_size/libsupersize/helpers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698