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

Unified Diff: mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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
Index: mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py
diff --git a/mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py b/mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py
index fe7f3fc9e39698d1dbf4d5e279f00a521ee9567c..97079a7da6c84ffa6f65c158bf93371e89ea05cd 100644
--- a/mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py
+++ b/mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py
@@ -20,7 +20,7 @@ def _GetDirAbove(dirname):
try:
imp.find_module("ply")
except ImportError:
- sys.path.append(os.path.join(_GetDirAbove("mojo"), "third_party"))
+ sys.path.append(os.path.join(_GetDirAbove("public"), "public/third_party"))
from ply import lex
try:
@@ -70,6 +70,8 @@ class LexerTest(unittest.TestCase):
_MakeLexTokenForKeyword("module"))
self.assertEquals(self._SingleTokenForInput("struct"),
_MakeLexTokenForKeyword("struct"))
+ self.assertEquals(self._SingleTokenForInput("union"),
+ _MakeLexTokenForKeyword("union"))
self.assertEquals(self._SingleTokenForInput("interface"),
_MakeLexTokenForKeyword("interface"))
self.assertEquals(self._SingleTokenForInput("enum"),

Powered by Google App Engine
This is Rietveld 408576698