Lines Matching refs:Patch

40         self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
44 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
48 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
55 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
68 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
78 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
88 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
96 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
97 self.Patch(subprocess, "check_call", return_value=True)
103 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
104 self.Patch(subprocess, "check_call", return_value=True)
117 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
118 self.Patch(subprocess, "check_call", return_value=True)
124 self.Patch(subprocess, "check_output", side_effect=[self.DEVICE_OFFLINE,
126 self.Patch(subprocess, "check_call", return_value=True)
135 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
136 self.Patch(subprocess, "check_call", return_value=True)
144 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
145 self.Patch(subprocess, "check_call", return_value=True)
155 self.Patch(utils, "FindExecutable", return_value="path/adb")
156 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
159 self.Patch(subprocess, "Popen", return_value=mock_popen_obj)