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

Side by Side Diff: mojo/public/tools/bindings/mojom_bindings_generator_unittest.py

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import unittest
6
7 from mojom_bindings_generator import MakeImportStackMessage
8
9
10 class MojoBindingsGeneratorTest(unittest.TestCase):
11 """Tests mojo_bindings_generator."""
12
13 def testMakeImportStackMessage(self):
14 """Tests MakeImportStackMessage()."""
15 self.assertEquals(MakeImportStackMessage(["x"]), "")
16 self.assertEquals(MakeImportStackMessage(["x", "y"]),
17 "\n y was imported by x")
18 self.assertEquals(MakeImportStackMessage(["x", "y", "z"]),
19 "\n z was imported by y\n y was imported by x")
20
21
22 if __name__ == "__main__":
23 unittest.main()
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.py ('k') | mojo/public/tools/bindings/mojom_list_outputs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698