| OLD | NEW |
| (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:])) | |
| OLD | NEW |