| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |