Home
last modified time | relevance | path

Searched refs:mock_ffx (Results 1 – 9 of 9) sorted by relevance

/external/angle/build/fuchsia/test/
Dserve_repo_unittests.py43 def test_start_server(self, mock_ffx) -> None: argument
46 mock_ffx.side_effect = [
53 self.assertEqual(mock_ffx.call_count, 3)
54 first_call = mock_ffx.call_args_list[0]
63 second_call = mock_ffx.call_args_list[1]
72 third_call = mock_ffx.call_args_list[2]
81 def test_assert_server_running(self, mock_ffx) -> None: argument
84 mock_ffx.side_effect = [
95 def test_is_server_not_running(self, mock_ffx) -> None: argument
98 mock_ffx.return_value = SimpleNamespace(returncode=0,
[all …]
Dlog_manager_unittests.py20 def test_no_logs(self, mock_ffx) -> None: argument
25 self.assertEqual(mock_ffx.call_count, 0)
28 def test_log_to_stdout(self, mock_ffx) -> None: argument
33 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'], sys.stdout)
34 self.assertEqual(mock_ffx.call_count, 1)
38 def test_log_to_file(self, mock_open, mock_ffx) -> None: argument
43 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'],
45 self.assertEqual(mock_ffx.call_count, 1)
48 def test_log_with_log_args(self, mock_ffx) -> None: argument
54 mock_ffx.call_args_list[0][0][0],
[all …]
Dffx_emulator_unittests.py51 def test_use_none_device_spec(self, mock_ffx) -> None: argument
65 ' '.join(mock_ffx.call_args.kwargs['cmd']))
66 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
69 def test_use_empty_device_spec(self, mock_ffx) -> None: argument
83 ' '.join(mock_ffx.call_args.kwargs['cmd']))
84 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
87 def test_use_large_device_spec(self, mock_ffx) -> None: argument
101 ' '.join(mock_ffx.call_args.kwargs['cmd']))
/external/cronet/tot/build/fuchsia/test/
Dlog_manager_unittests.py20 def test_no_logs(self, mock_ffx) -> None: argument
25 self.assertEqual(mock_ffx.call_count, 0)
28 def test_log_to_stdout(self, mock_ffx) -> None: argument
33 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'], sys.stdout)
34 self.assertEqual(mock_ffx.call_count, 1)
38 def test_log_to_file(self, mock_open, mock_ffx) -> None: argument
43 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'],
45 self.assertEqual(mock_ffx.call_count, 1)
48 def test_log_with_log_args(self, mock_ffx) -> None: argument
54 mock_ffx.call_args_list[0][0][0],
[all …]
Dserve_repo_unittests.py26 def test_start_server(self, mock_ffx) -> None: argument
30 self.assertEqual(mock_ffx.call_count, 4)
31 second_call = mock_ffx.call_args_list[1]
34 third_call = mock_ffx.call_args_list[2]
39 fourth_call = mock_ffx.call_args_list[3]
48 def test_stop_server(self, mock_ffx) -> None: argument
52 self.assertEqual(mock_ffx.call_count, 3)
53 first_call = mock_ffx.call_args_list[0]
59 second_call = mock_ffx.call_args_list[1]
63 third_call = mock_ffx.call_args_list[2]
Dffx_emulator_unittests.py51 def test_use_none_device_spec(self, mock_ffx) -> None: argument
65 ' '.join(mock_ffx.call_args.kwargs['cmd']))
66 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
69 def test_use_empty_device_spec(self, mock_ffx) -> None: argument
83 ' '.join(mock_ffx.call_args.kwargs['cmd']))
84 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
87 def test_use_large_device_spec(self, mock_ffx) -> None: argument
101 ' '.join(mock_ffx.call_args.kwargs['cmd']))
/external/cronet/stable/build/fuchsia/test/
Dlog_manager_unittests.py20 def test_no_logs(self, mock_ffx) -> None: argument
25 self.assertEqual(mock_ffx.call_count, 0)
28 def test_log_to_stdout(self, mock_ffx) -> None: argument
33 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'], sys.stdout)
34 self.assertEqual(mock_ffx.call_count, 1)
38 def test_log_to_file(self, mock_open, mock_ffx) -> None: argument
43 self.assertEqual(mock_ffx.call_args_list[0][1]['stdout'],
45 self.assertEqual(mock_ffx.call_count, 1)
48 def test_log_with_log_args(self, mock_ffx) -> None: argument
54 mock_ffx.call_args_list[0][0][0],
[all …]
Dserve_repo_unittests.py26 def test_start_server(self, mock_ffx) -> None: argument
30 self.assertEqual(mock_ffx.call_count, 4)
31 second_call = mock_ffx.call_args_list[1]
34 third_call = mock_ffx.call_args_list[2]
39 fourth_call = mock_ffx.call_args_list[3]
48 def test_stop_server(self, mock_ffx) -> None: argument
52 self.assertEqual(mock_ffx.call_count, 3)
53 first_call = mock_ffx.call_args_list[0]
59 second_call = mock_ffx.call_args_list[1]
63 third_call = mock_ffx.call_args_list[2]
Dffx_emulator_unittests.py51 def test_use_none_device_spec(self, mock_ffx) -> None: argument
65 ' '.join(mock_ffx.call_args.kwargs['cmd']))
66 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
69 def test_use_empty_device_spec(self, mock_ffx) -> None: argument
83 ' '.join(mock_ffx.call_args.kwargs['cmd']))
84 self.assertNotIn('--device', mock_ffx.call_args.kwargs['cmd'])
87 def test_use_large_device_spec(self, mock_ffx) -> None: argument
101 ' '.join(mock_ffx.call_args.kwargs['cmd']))