1 # Copyright (c) 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.
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
16 def BuildAndTestModule():
17 return TestTestModule(BuildTestModule())
20 def TestModulesEqual():
21 return EXPECT_TRUE(ModulesAreEqual(BuildTestModule(), BuildTestModule()))
26 errors += RunTest(BuildAndTestModule)
27 errors += RunTest(TestModulesEqual)
32 if __name__ == '__main__':
33 sys.exit(Main(sys.argv[1:]))