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

Side by Side Diff: mojo/public/tools/bindings/pylib/mojom/generate/module_tests.py

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 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 sys
6
7 import test_support
8
9 EXPECT_EQ = test_support.EXPECT_EQ
10 EXPECT_TRUE = test_support.EXPECT_TRUE
11 RunTest = test_support.RunTest
12 ModulesAreEqual = test_support.ModulesAreEqual
13 BuildTestModule = test_support.BuildTestModule
14 TestTestModule = test_support.TestTestModule
15
16
17 def BuildAndTestModule():
18 return TestTestModule(BuildTestModule())
19
20
21 def TestModulesEqual():
22 return EXPECT_TRUE(ModulesAreEqual(BuildTestModule(), BuildTestModule()))
23
24
25 def Main(args):
26 errors = 0
27 errors += RunTest(BuildAndTestModule)
28 errors += RunTest(TestModulesEqual)
29
30 return errors
31
32
33 if __name__ == '__main__':
34 sys.exit(Main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698