Home
last modified time | relevance | path

Searched refs:mock_result (Results 1 – 8 of 8) sorted by relevance

/external/toolchain-utils/bestflags/
Dpipeline_worker_test.py58 mock_result = {1: 1995, 2: 59, 9: 1027}
64 completed_queue.put((9, mock_result[9]))
74 completed_queue.put((2, mock_result[2]))
75 completed_queue.put((1, mock_result[1]))
85 if identifier in mock_result:
86 self.assertTrue(task.GetResult(TEST_STAGE), mock_result[identifier])
/external/toolchain-utils/crosperf/
Dbenchmark_run_unittest.py167 mock_result = mock.Mock(spec=Result)
168 mock_result.retval = 0
169 return mock_result
173 mock_result = mock.Mock(spec=Result)
174 mock_result.retval = 1
175 return mock_result
369 def test_run_test(self, mock_result, mock_runner): argument
399 self.assertEqual(mock_result.call_count, 1)
400 mock_result.assert_called_with(
Dresults_report_unittest.py137 mock_result = MockResult(log, label, log_level, machine)
138 mock_result.keyvals = keyvals
139 run.result = mock_result
/external/autotest/scheduler/
Ddrones_unittest.py45 mock_result = utils.CmdResult(stdout=cPickle.dumps('mock return'))
50 mock_result)
67 mock_result = utils.CmdResult(stdout=cPickle.dumps(mock_return))
72 mock_result)
Ddrone_task_queue_unittest.py75 mock_result = utils.CmdResult(
81 ).and_return(mock_result)
91 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
96 mock_result)
Dthread_lib_unittest.py64 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
69 mock_result)
199 mock_result = utils.CmdResult(
205 ).and_return(mock_result)
218 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
223 mock_result)
Ddrone_manager_unittest.py413 mock_result = utils.CmdResult(
420 ).and_return(mock_result)
/external/autotest/client/bin/
Dlocal_host_unittest.py75 mock_result = mock.MagicMock()
76 mock_run.side_effect = error.CmdError('yes', mock_result)
82 self.assertEqual(exc_cm.exception.result_obj, mock_result)
97 mock_result = mock.MagicMock()
98 mock_run.side_effect = error.CmdTimeoutError('yes', mock_result)
104 self.assertEqual(exc_cm.exception.result_obj, mock_result)