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

Unified Diff: tools/generate_stubs/generate_stubs_unittest.py

Issue 332823003: generate_stubs: Allow // comments as well as the existing #. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to PS1 Created 6 years, 6 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/generate_stubs/generate_stubs.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/generate_stubs/generate_stubs_unittest.py
diff --git a/tools/generate_stubs/generate_stubs_unittest.py b/tools/generate_stubs/generate_stubs_unittest.py
index 13a2bc15e59d75c9697b77807f9e1dc48451f1ad..6cea445cf0507c872ff43e496e256181b3482411 100755
--- a/tools/generate_stubs/generate_stubs_unittest.py
+++ b/tools/generate_stubs/generate_stubs_unittest.py
@@ -116,11 +116,15 @@ class GenerateStubModuleFunctionsUnittest(unittest.TestCase):
my_sigs.append(SIMPLE_SIGNATURES[0][0])
my_sigs.append('# a third comment')
my_sigs.append(SIMPLE_SIGNATURES[0][0])
+ my_sigs.append('// a fourth comment')
+ my_sigs.append(SIMPLE_SIGNATURES[0][0])
+ my_sigs.append('//')
+ my_sigs.append(SIMPLE_SIGNATURES[0][0])
file_contents = '\n'.join(my_sigs)
infile = StringIO.StringIO(file_contents)
signatures = gs.ParseSignatures(infile)
- self.assertEqual(3, len(signatures))
+ self.assertEqual(5, len(signatures))
class WindowsLibUnittest(unittest.TestCase):
« no previous file with comments | « tools/generate_stubs/generate_stubs.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698