Commit 66389890 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

plan_blink_move.py: 'String16' should be treated as one token

String16MojomTraits*.* in platform/mojom/ should be renamed to
string16_mojom_traits*.* for consistency
with //base/strings/string16*.*.

Bug: 578345
Change-Id: Ic84f8e356281a446baaadaf498b31788202d1f97
Reviewed-on: https://chromium-review.googlesource.com/991795Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547648}
parent c00eba84
......@@ -8,6 +8,7 @@ import re
SPECIAL_TOKENS = [
# This list should be sorted by length.
'String16',
'CString',
'Float32',
'Float64',
......
......@@ -131,6 +131,8 @@ class SmartTokenizerTest(unittest.TestCase):
self.assertEqual(tokenizer.tokenize(), ['V8', 'Binding', 'For', 'Core'])
tokenizer = SmartTokenizer('V8DOMRect')
self.assertEqual(tokenizer.tokenize(), ['V8', 'DOM', 'Rect'])
tokenizer = SmartTokenizer('String16MojomTraits')
self.assertEqual(tokenizer.tokenize(), ['String16', 'Mojom', 'Traits'])
tokenizer = SmartTokenizer('V0InsertionPoint')
self.assertEqual(tokenizer.tokenize(), ['V0', 'Insertion', 'Point'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment