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

Side by Side Diff: mojo/public/bindings/pylib/generate/mojom_tests.py

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2013 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 mojom_test
6 import sys
7
8 EXPECT_EQ = mojom_test.EXPECT_EQ
9 EXPECT_TRUE = mojom_test.EXPECT_TRUE
10 RunTest = mojom_test.RunTest
11 ModulesAreEqual = mojom_test.ModulesAreEqual
12 BuildTestModule = mojom_test.BuildTestModule
13 TestTestModule = mojom_test.TestTestModule
14
15
16 def BuildAndTestModule():
17 return TestTestModule(BuildTestModule())
18
19
20 def TestModulesEqual():
21 return EXPECT_TRUE(ModulesAreEqual(BuildTestModule(), BuildTestModule()))
22
23
24 def Main(args):
25 errors = 0
26 errors += RunTest(BuildAndTestModule)
27 errors += RunTest(TestModulesEqual)
28
29 return errors
30
31
32 if __name__ == '__main__':
33 sys.exit(Main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « mojo/public/bindings/pylib/generate/mojom_test.py ('k') | mojo/public/bindings/pylib/generate/run_mojom_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698