(self)
| 746 | '--flag', 'run.js', timeout=70) |
| 747 | |
| 748 | def testAndroid(self): |
| 749 | self._WriteTestInput(V8_JSON) |
| 750 | mock.patch('run_perf.AndroidPlatform.PreExecution').start() |
| 751 | mock.patch('run_perf.AndroidPlatform.PostExecution').start() |
| 752 | mock.patch('run_perf.AndroidPlatform.PreTests').start() |
| 753 | mock.patch('run_perf.find_build_directory').start() |
| 754 | mock.patch( |
| 755 | 'run_perf.AndroidPlatform.Run', |
| 756 | return_value=(Output(stdout='Richards: 1.234\nDeltaBlue: 10657567\n'), |
| 757 | NULL_OUTPUT)).start() |
| 758 | mock.patch('testrunner.local.android.Driver', autospec=True).start() |
| 759 | mock.patch( |
| 760 | 'run_perf.Platform.ReadBuildConfig', |
| 761 | return_value={'is_android': True}).start() |
| 762 | self.assertEqual(0, self._CallMain('--arch', 'arm')) |
| 763 | self._VerifyResults('test', 'score', [ |
| 764 | {'name': 'Richards', 'results': [1.234], 'stddev': ''}, |
| 765 | {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''}, |
| 766 | ]) |
| 767 | |
| 768 | def testTwoRuns_Trybot(self): |
| 769 | test_input = dict(V8_JSON) |
nothing calls this directly
no test coverage detected