Home
last modified time | relevance | path

Searched refs:return_value (Results 1 – 21 of 21) sorted by relevance

/test/framework/harnesses/host_controller/command_processor/
Dcommand_reproduce_test.py73 mock_imp.load_source.return_value = mock_campiagn
169 mock_sched_cfg_msg.TestScheduleConfigMessage.return_value = (
193 mock_sched_cfg_msg.TestScheduleConfigMessage.return_value = (
219 mock_os.path.exists.return_value = False
236 mock_gcs_util.List.return_value = [
254 mock_zip_ref.__enter__ = mock.Mock(return_value=mock_zip_ref)
255 mock_zip_ref.__exit__ = mock.Mock(return_value=None)
256 mock_zipfile.ZipFile.return_value = mock_zip_ref
257 mock_gcs_util.List.return_value = [
260 mock_gcs_util.Copy.return_value = True
[all …]
Dcommand_upload_test.py45 mock_open.__enter__ = mock.Mock(return_value=mock_open)
46 mock_open.__exit__ = mock.Mock(return_value=None)
48 return_value=("", "", 0))
49 mock_console.vti_endpoint_client.CheckBootUpStatus.return_value = False
82 mock_suite_res_msg.TestSuiteResultMessage.return_value = mock_pb2
83 mock_sched_config_msg.BuildScheduleConfigMessage.return_value = (
85 mock_sched_config_msg.TestScheduleConfigMessage.return_value = (
129 mock_open.__enter__ = mock.Mock(return_value=mock_open)
130 mock_open.__exit__ = mock.Mock(return_value=None)
132 return_value=("", "", 0))
[all …]
Dcommand_dut_test.py71 mock_device.waitForBootCompletion.return_value = False
72 mock_android_device.AndroidDevice.return_value = mock_device
82 mock_adb.AdbProxy.return_value = mock_adb_proxy
84 mock_device.waitForBootCompletion.return_value = True
85 mock_android_device.AndroidDevice.return_value = mock_device
96 mock_adb.AdbProxy.return_value = mock_adb_proxy
98 mock_device.waitForBootCompletion.return_value = True
99 mock_android_device.AndroidDevice.return_value = mock_device
115 mock_adb.AdbProxy.return_value = mock_adb_proxy
117 mock_device.waitForBootCompletion.return_value = True
[all …]
Dcommand_repack_test.py98 mock_zip_ref.__enter__ = mock.Mock(return_value=mock_zip_ref)
99 mock_zip_ref.__exit__ = mock.Mock(return_value=None)
100 mock_zipfile.ZipFile.return_value = mock_zip_ref
106 mock_os.getcwd.return_value = "/abs/path/to/current/dir"
110 return_value="gs://dest/gs/url/file.zip")
134 mock_zip_ref.__enter__ = mock.Mock(return_value=mock_zip_ref)
135 mock_zip_ref.__exit__ = mock.Mock(return_value=None)
136 mock_zipfile.ZipFile.return_value = mock_zip_ref
142 mock_os.getcwd.return_value = "/abs/path/to/current/dir"
148 return_value="gs://dest/gs/url/file.zip")
Dcommand_sheet_test.py229 mock_gspread.authorize.return_value = mock_client
240 mock_gspread.authorize.return_value = mock_client
251 mock_gspread.authorize.return_value = mock_client
263 mock_gspread.authorize.return_value = mock_client
274 mock_gspread.authorize.return_value = mock_client
286 mock_gspread.authorize.return_value = mock_client
311 mock_gcs_utils.GetGsutilPath.return_value = "mock_gsutil"
312 mock_gcs_utils.IsGcsFile.return_value = False
313 mock_gcs_utils.List.return_value = [zip_url]
317 mock_gspread.authorize.return_value = mock_client
Dcommand_device_test.py83 mock_console.GetSerials.return_value = ["device1", "device4"]
116 mock_threading.Thread.return_value = mock_thread
133 mock_threading.Thread.return_value = mock_thread
/test/vts/utils/python/fuzzer/
Dcorpus_manager_test.py77 _corpus_manager._gcs_api_utils.ListFilesWithPrefix.return_value = []
92 _corpus_manager._gcs_api_utils.ListFilesWithPrefix.return_value = []
105 _corpus_manager._gcs_api_utils.PrefixExists.return_value = False
106 _corpus_manager._gcs_api_utils.ContFiles.return_value = 0
121 _corpus_manager._gcs_api_utils.ListFilesWithPrefix.return_value = [
124 _corpus_manager._gcs_api_utils.MoveFile.return_value = True
142 _corpus_manager._gcs_api_utils.ListFilesWithPrefix.return_value = [
145 _corpus_manager._gcs_api_utils.MoveFile.return_value = True
163 _corpus_manager._gcs_api_utils.ListFilesWithPrefix.return_value = [
166 _corpus_manager._gcs_api_utils.PrefixExists.return_value = False
[all …]
/test/framework/harnesses/host_controller/
Dconsole_test.py101 self._host_controller.LeaseCommandTasks.return_value = self._TASKS
133 self._host_controller.ListDevices.return_value = self._DEVICES
156 self._build_provider_pab.GetArtifact.return_value = ({
165 self._build_provider_pab.GetFetchedArtifactType.return_value = common._ARTIFACT_TYPE_DEVICE
184 mock_class.return_value = flasher
197 self._build_provider_pab.GetArtifact.return_value = ({
222 mock_class.return_value = flasher
230 mock_class.return_value = flasher
238 mock_class.return_value = flasher
245 mock_issubclass.return_value = True
[all …]
Dtfc_host_controller_test.py69 self._remote_client.ListDevices.return_value = self._DEVICES
70 self._tfc_client.LeaseHostTasks.return_value = self._TASKS
85 self._remote_client.ListDevices.return_value = self._DEVICES
/test/framework/harnesses/host_controller/build/
Dbuild_provider_pab_test.py63 mock_storage_get.return_value = mock_creds
80 mock_storage_get.return_value = mock_creds
111 mock_post.return_value = response
137 mock_post.return_value = response
158 mock_post.return_value = response
179 mock_post.return_value = response
199 mock_post.return_value = response
219 mock_post.return_value = response
239 mock_post.return_value = response
262 mock_post.return_value = response
[all …]
Dbuild_flasher_test.py38 mock_os.path.exists.return_value = False
49 mock_class.AndroidDevice.return_value = mock_device
51 mock_os.path.exists.return_value = True
61 mock_class.AndroidDevice.return_value = mock_device
69 mock_class.list_adb_devices.return_value = ['oneserial']
83 mock_class.AndroidDevice.return_value = mock_device
117 mock_class.AndroidDevice.return_value = mock_device
123 mock_cmd_utils.ExecuteOneShellCommand.return_value = "", "", 0
/test/vts/utils/python/io/
Dfile_util.py53 return_value = False
57 return_value = True
60 return return_value
/test/vts/agents/hal/
DSocketClientToDriver.cpp66 return response_message.return_value(); in LoadHal()
223 return response_message.return_value(); in Status()
/test/vti/test_serving/gae/webapp/src/tasks/
Dindexing_test.py88 self.indexing_handler.request.get = mock.MagicMock(return_value="job")
161 self.indexing_handler.request.get = mock.MagicMock(return_value="job")
/test/framework/harnesses/host_controller/tfc/
Dtfc_client_test.py64 self._service.tasks().leasehosttasks().execute.return_value = tasks
/test/vts/utils/python/gcs/
Dgcs_api_utils_test.py140 local_dest_folder = simple_PrepareDownloadDestination.return_value
/test/vti/test_serving/gae/webapp/src/scheduler/
Djob_heartbeat_test.py81 scheduler.request.get = mock.MagicMock(return_value="")
Dschedule_worker_test.py47 self.scheduler.request.get = mock.MagicMock(return_value="")
/test/vts/runners/host/
Dbase_test.py337 def ToStr(return_value): argument
339 if to_str and return_value is not None:
340 return str(return_value)
341 return return_value
/test/vti/test_serving/gae/webapp/src/utils/
Dmodel_util_test.py63 scheduler.request.get = mock.MagicMock(return_value="")
/test/vts/proto/
DVtsDriverControlMessage.proto133 optional int32 return_value = 11; field