/tools/test/connectivity/acts/framework/tests/libs/uicd/ |
D | uicd_cli_test.py | 37 @mock.patch('os.walk', _mock_walk) 38 @mock.patch('os.makedirs') 39 @mock.patch('tempfile.mkdtemp') 40 @mock.patch('shutil.rmtree') 41 @mock.patch.object(UicdCli, '_setup_cli') 50 @mock.patch('os.walk', _mock_walk) 51 @mock.patch('os.makedirs') 52 @mock.patch('tempfile.mkdtemp') 53 @mock.patch('shutil.rmtree') 54 @mock.patch.object(UicdCli, '_setup_cli') [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 174 @mock.patch.object( 176 @mock.patch.object( 249 @mock.patch( 252 @mock.patch( 267 @mock.patch( 270 @mock.patch( 283 @mock.patch( 286 @mock.patch( 298 @mock.patch( 301 @mock.patch( [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/logging/ |
D | log_stream_test.py | 45 def patch(imported_name, *args, **kwargs): member in LogStreamTest 46 return mock.patch('acts.libs.logging.log_stream.%s' % imported_name, 61 @mock.patch('os.makedirs') 68 with self.patch('MovableFileHandler'): 76 @mock.patch('os.makedirs') 93 @mock.patch('os.makedirs') 129 @mock.patch('os.makedirs') 144 @mock.patch('os.makedirs') 159 @mock.patch('os.makedirs') 181 @mock.patch('os.makedirs') [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/data_storage/bigquery/ |
D | test_bigquery_utils.py | 19 from mock import patch, Mock 323 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Dataset') 324 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Client') 332 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Dataset') 333 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Client') 342 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Table') 343 @patch( 346 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Client') 361 @patch('infra.data_storage.bigquery.bigquery_logger_utils.bigquery.Table') 362 @patch( [all …]
|
/tools/tradefederation/core/atest/test_finders/ |
D | module_finder_unittest.py | 103 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets', 121 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', 123 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets') 124 @mock.patch('subprocess.check_output', return_value=uc.FIND_ONE) 125 @mock.patch.object(test_finder_utils, 'get_fully_qualified_class_name', 127 @mock.patch('os.path.isfile', side_effect=unittest_utils.isfile_side_effect) 128 @mock.patch('os.path.isdir', return_value=True) 174 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', 176 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets') 177 @mock.patch('subprocess.check_output', return_value=uc.FIND_ONE) [all …]
|
D | test_finder_utils_unittest.py | 117 @mock.patch('__builtin__.raw_input', return_value='1') 127 @mock.patch('__builtin__.raw_input', return_value='1') 145 @mock.patch('os.path.isdir') 158 @mock.patch('os.path.isdir', return_value=True) 159 @mock.patch('os.path.isfile', 173 @mock.patch('os.path.isdir', return_value=True) 174 @mock.patch('os.path.isfile', return_value=False) 187 @mock.patch('os.path.isdir', return_value=True) 188 @mock.patch('os.path.isfile', side_effect=[False] * 5 + [True]) 207 @mock.patch('os.path.isdir', return_value=True) [all …]
|
D | tf_integration_finder_unittest.py | 60 @mock.patch.object(tf_integration_finder.TFIntegrationFinder, 62 @mock.patch.object(test_finder_utils, 'get_fully_qualified_class_name', 64 @mock.patch('subprocess.check_output') 65 @mock.patch('os.path.exists', return_value=True) 66 @mock.patch('os.path.isfile', return_value=True) 91 @mock.patch.object(tf_integration_finder.TFIntegrationFinder, 93 @mock.patch('os.path.realpath', 95 @mock.patch('os.path.isdir', return_value=True) 96 @mock.patch('os.path.isfile', return_value=True) 97 @mock.patch.object(test_finder_utils, 'find_parent_module_dir') [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | logger_test.py | 18 from mock import patch 40 @patch(TEST_CASE_LOGGER_PROXY) 48 @patch(TEST_CLASS_LOGGER_PROXY) 56 @patch(TEST_CASE_LOGGER_PROXY) 66 @patch(TEST_CLASS_LOGGER_PROXY) 76 @patch(COMPILE_IMPORT_PROTO) 77 @patch(GET_FILE) 88 @patch(COMPILE_IMPORT_PROTO) 89 @patch(GET_FILE) 98 @patch(COMPILE_IMPORT_PROTO) [all …]
|
D | core_test.py | 20 from mock import patch 57 @patch(PARSE_PROTO_TO_ASCII) 65 @patch(TO_DESCRIPTOR_PROTO) 77 @patch(PARSE_PROTO_TO_ASCII) 78 @patch(TO_DESCRIPTOR_PROTO) 157 @patch(MAKEDIRS) 158 @patch(DUMP_STRING_TO_FILE) 175 @patch(MAKEDIRS) 176 @patch(DUMP_STRING_TO_FILE) 194 @patch(MAKEDIRS) [all …]
|
/tools/test/connectivity/acts/framework/tests/controllers/ |
D | iperf_server_test.py | 81 @mock.patch('acts.utils.create_dir') 104 @mock.patch('acts.utils.start_standing_subprocess') 113 @mock.patch('acts.utils.start_standing_subprocess') 114 @mock.patch('acts.utils.stop_standing_subprocess') 125 @mock.patch('acts.utils.start_standing_subprocess') 138 @mock.patch('acts.utils.stop_standing_subprocess') 153 @mock.patch('acts.utils.start_standing_subprocess') 166 @mock.patch('acts.utils.stop_standing_subprocess') 195 @mock.patch('builtins.open') 207 @mock.patch('builtins.open') [all …]
|
/tools/asuite/aidegen/lib/ |
D | ide_util_unittest.py | 23 from unittest.mock import patch 82 @mock.patch('glob.glob', return_value=uc.IDEA_SH_FIND_NONE) 93 @mock.patch('builtins.input') 94 @mock.patch('glob.glob', return_value=uc.IDEA_SH_FIND) 115 @mock.patch.object(ide_util, '_get_linux_ide') 116 @mock.patch.object(ide_util, '_get_mac_ide') 135 @mock.patch.object(ide_util, '_get_script_from_input_path') 136 @mock.patch.object(IdeIntelliJ, '_get_script_from_system') 148 @mock.patch.object(IdeIntelliJ, '_get_config_root_paths') 149 @mock.patch.object(IdeBase, 'apply_optional_config') [all …]
|
D | module_info_util_unittest.py | 131 @mock.patch('subprocess.check_call') 132 @mock.patch('os.environ.copy') 150 @mock.patch('os.path.getmtime') 151 @mock.patch('os.path.isfile') 175 @mock.patch('builtins.input') 176 @mock.patch('glob.glob') 188 @mock.patch('builtins.open') 195 @mock.patch('aidegen.lib.module_info_util._build_failed_handle') 196 @mock.patch('aidegen.lib.module_info_util._is_new_json_file_generated') 197 @mock.patch('subprocess.check_call')
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | blackbox_test.py | 18 from mock import patch 44 @patch(COMPILE_IMPORT_PROTO) 56 @patch(COMPILE_IMPORT_PROTO) 69 @patch(PROTO_METRIC_PUBLISHER) 70 @patch(GET_CONTEXT_FOR_EVENT) 71 @patch(COMPILE_IMPORT_PROTO) 83 @patch(COMPILE_IMPORT_PROTO) 101 @patch(COMPILE_IMPORT_PROTO) 119 @patch(COMPILE_IMPORT_PROTO) 138 @patch(COMPILE_IMPORT_PROTO) [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/metrics/ |
D | recordable_metric_test.py | 21 from mock import patch, Mock, MagicMock 45 @patch("os.path.exists") 46 @patch("os.makedirs") 47 @patch("builtins.open") 66 @patch("os.path.exists") 67 @patch("os.makedirs") 68 @patch("builtins.open") 81 @patch("os.path.exists") 82 @patch("os.makedirs") 83 @patch("builtins.open") [all …]
|
/tools/tradefederation/core/atest/test_runners/ |
D | atest_tf_test_runner_unittest.py | 161 mock.patch.stopall() 163 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 165 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 167 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 169 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 171 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 173 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 175 @mock.patch('os.killpg', return_value=None) 176 @mock.patch('os.getpgid', return_value=None) 177 @mock.patch('signal.signal', return_value=None) [all …]
|
/tools/tradefederation/core/atest/ |
D | module_info_unittest.py | 64 @mock.patch('json.load', return_value={}) 65 @mock.patch('__builtin__.open', new_callable=mock.mock_open) 66 @mock.patch('os.path.isfile', return_value=True) 76 with mock.patch.dict('os.environ', os_environ_mock, clear=True): 87 with mock.patch.dict('os.environ', os_environ_mock, clear=True): 98 with mock.patch.dict('os.environ', os_environ_mock, clear=True): 103 @mock.patch.object(module_info.ModuleInfo, '_load_module_info_file',) 169 @mock.patch.object(module_info.ModuleInfo, 'is_testable_module') 170 @mock.patch.object(module_info.ModuleInfo, 'is_suite_in_compatibility_suites') 184 @mock.patch.object(module_info.ModuleInfo, 'has_test_config') [all …]
|
D | atest_unittest.py | 39 @mock.patch('os.environ.get', return_value=None) 44 @mock.patch('os.environ.get', return_value='out/testcases/') 93 @mock.patch('json.load', return_value={}) 94 @mock.patch('__builtin__.open', new_callable=mock.mock_open) 95 @mock.patch('os.path.isfile', return_value=True) 96 @mock.patch('atest_utils._has_colors', return_value=True) 97 @mock.patch.object(module_info.ModuleInfo, 'get_module_info',) 145 @mock.patch('json.load', return_value={}) 146 @mock.patch('__builtin__.open', new_callable=mock.mock_open) 147 @mock.patch('os.path.isfile', return_value=True) [all …]
|
D | cli_translator_unittest.py | 92 @mock.patch('__builtin__.raw_input', return_value='n') 93 @mock.patch.object(module_finder.ModuleFinder, 'find_test_by_module_name') 94 @mock.patch.object(module_finder.ModuleFinder, 'get_fuzzy_searching_results') 95 @mock.patch.object(metrics, 'FindTestFinishEvent') 96 @mock.patch.object(test_finder_handler, 'get_find_methods_for_test') 164 @mock.patch.object(cli_t.CLITranslator, '_get_test_infos', 175 @mock.patch.object(cli_t.CLITranslator, '_get_test_infos', 187 @mock.patch.object(cli_t.CLITranslator, '_find_tests_by_test_mapping') 188 @mock.patch.object(cli_t.CLITranslator, '_get_test_infos', 203 @mock.patch.object(cli_t.CLITranslator, '_find_tests_by_test_mapping') [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | update_device_ota_tool_test.py | 29 with mock.patch('acts.controllers.adb.AdbProxy') as adb_proxy, ( 30 mock.patch('acts.controllers.fastboot.FastbootProxy')) as fb_proxy: 53 with mock.patch('tempfile.mkdtemp') as mkdtemp, ( 54 mock.patch('shutil.rmtree')) as rmtree, ( 55 mock.patch('acts.utils.unzip_maintain_permissions')): 63 with mock.patch('acts.libs.proc.job.run'): 71 with mock.patch('tempfile.mkdtemp') as mkdtemp, ( 72 mock.patch('shutil.rmtree')) as rmtree, ( 73 mock.patch('acts.utils.unzip_maintain_permissions')):
|
/tools/test/connectivity/acts/framework/tests/controllers/android_lib/ |
D | logcat_test.py | 30 def patch(patched): member in LogcatTest 31 return mock.patch('acts.controllers.android_lib.logcat.%s' % patched) 148 with self.patch('log_stream') as log_stream, self.patch('Process'): 156 with self.patch('log_stream'), self.patch('Process') as process: 162 with self.patch('log_stream'), self.patch('Process'): 168 with self.patch('log_stream'), self.patch('Process'):
|
/tools/acloud/internal/lib/ |
D | gcompute_client_test.py | 156 @mock.patch.object(errors, "GceOperationTimeoutError") 157 @mock.patch.object(utils, "PollAndWait") 279 @mock.patch.object(gcompute_client.ComputeClient, "GetImage") 282 with mock.patch.object(self.compute_client._service, "images", 322 @mock.patch.object(gcompute_client.ComputeClient, "DeleteImage") 323 @mock.patch.object(gcompute_client.ComputeClient, "CheckImageExists", 325 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation", 375 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation") 404 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation") 511 @mock.patch.object(gcompute_client.ComputeClient, "GetImage") [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_factory_test.py | 79 with mock.patch(function_path) as mocked_function: 95 with mock.patch(function_path) as mocked_function: 102 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'): 108 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'): 115 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'): 120 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'): 125 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'): 133 with mock.patch('acts.libs.ota.ota_tools.ota_tool_factory.create'):
|
/tools/test/connectivity/acts/framework/tests/config/ |
D | config_generator_test.py | 20 from mock import patch 73 @patch('acts.config.config_generator._validate_test_config') 74 @patch('acts.config.config_generator._validate_testbed_configs') 87 @patch('acts.config.config_generator._validate_test_config') 88 @patch('acts.config.config_generator._validate_testbed_configs') 205 @patch('os.path.isfile', return_value=True) 219 @patch('os.path.isfile', return_value=False) 239 @patch('acts.config.config_generator._validate_testbed_name') 240 @patch('acts.config.config_generator._update_file_paths')
|
/tools/test/connectivity/acts/framework/tests/libs/proc/ |
D | process_test.py | 53 def patch(imported_name, *args, **kwargs): member in ProcessTest 54 return mock.patch('acts.libs.proc.process.%s' % imported_name, 94 with self.patch('Thread', FakeThreadImpl): 109 with self.patch('Thread', FakeThreadImpl): 128 @mock.patch.object(Process, '_kill_process') 140 @mock.patch.object(Process, '_kill_process') 282 with self.patch('subprocess.Popen', return_value='verification'): 293 with self.patch('Thread', FakeThread): 306 with self.patch('Thread', FakeThread): 316 with self.patch('Thread', FakeThread): [all …]
|
/tools/acloud/setup/ |
D | gcp_setup_runner_test.py | 85 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CreateBucket") 86 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_BucketExists") 87 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_BucketInDefaultRegion") 109 @mock.patch("os.path.dirname", return_value="") 110 @mock.patch("subprocess.check_output") 121 @mock.patch("__builtin__.raw_input") 154 @mock.patch.object(gcp_setup_runner.GoogleSDKBins, "RunGsutil") 165 @mock.patch.object(gcp_setup_runner.GoogleSDKBins, "RunGsutil")
|