/tools/asuite/aidegen/lib/ |
D | module_info_util_unittest.py | 79 @mock.patch.object(os.path, 'getmtime') 80 @mock.patch.object(logging, 'info') 81 @mock.patch.object(os.path, 'isfile') 82 @mock.patch.object(module_info_util, '_get_generated_json_files') 97 @mock.patch.object(module_info_util, '_generate_rust_project_link') 98 @mock.patch.object(module_info_util, '_show_build_failed_message') 99 @mock.patch.object(module_info_util, '_show_files_reuse_message') 100 @mock.patch.object(atest_utils, 'build') 101 @mock.patch.object(os.path, 'getmtime') 102 @mock.patch.object(logging, 'warning') [all …]
|
D | ide_util_unittest.py | 104 @mock.patch.object(ide_util, '_get_linux_ide') 105 @mock.patch.object(ide_util, '_get_mac_ide') 113 @mock.patch.object(ide_util.IdeBase, '_get_user_preference') 114 @mock.patch.object(config.AidegenConfig, 'set_preferred_version') 115 @mock.patch.object(ide_util.IdeEclipse, '_get_script_from_system') 116 @mock.patch.object(ide_util.IdeIntelliJ, '_get_preferred_version') 141 @mock.patch.object(ide_util.IdeIntelliJ, '_set_installed_path') 142 @mock.patch.object(ide_common_util, 'get_script_from_input_path') 143 @mock.patch.object(ide_util.IdeIntelliJ, '_get_script_from_system') 157 @mock.patch.object(ide_util.IdeIntelliJ, '_get_preferred_version') [all …]
|
D | config_unittest.py | 56 @mock.patch('json.load') 57 @mock.patch('builtins.open') 58 @mock.patch('os.path.exists') 73 @mock.patch('logging.info') 74 @mock.patch('logging.error') 75 @mock.patch('builtins.open') 76 @mock.patch('os.path.exists') 92 @mock.patch('json.dump') 93 @mock.patch('builtins.open') 94 @mock.patch.object(config.AidegenConfig, '_is_config_modified') [all …]
|
D | native_module_info_unittest.py | 107 @mock.patch.object( 109 @mock.patch.object(common_util, 'get_related_paths') 118 @mock.patch.object( 127 @mock.patch.object( 136 @mock.patch.object(logging, 'warning') 137 @mock.patch.object( 146 @mock.patch.object(logging, 'warning') 147 @mock.patch.object( 156 @mock.patch.object(native_module_info.NativeModuleInfo, 158 @mock.patch.object(native_module_info.NativeModuleInfo, [all …]
|
D | clion_project_file_gen_unittest.py | 55 @mock.patch('os.path.exists') 64 @mock.patch('os.path.exists') 73 @mock.patch.object(os, 'makedirs') 74 @mock.patch.object(os.path, 'exists') 75 @mock.patch.object(clion_project_file_gen.CLionProjectFileGenerator, 77 @mock.patch.object(clion_project_file_gen.CLionProjectFileGenerator, 94 @mock.patch('os.path.exists') 116 @mock.patch('os.path.exists') 137 @mock.patch('os.path.exists') 152 @mock.patch('os.path.exists') [all …]
|
D | project_info_unittest.py | 111 @mock.patch('atest.module_info.ModuleInfo') 122 @mock.patch.object(project_info.ProjectInfo, 124 @mock.patch.object(project_info.ProjectInfo, 'get_dep_modules') 131 @mock.patch.object(common_util, 'get_android_root_dir') 146 @mock.patch('logging.info') 147 @mock.patch.object(common_util, 'get_android_root_dir') 148 @mock.patch('atest.module_info.ModuleInfo') 149 @mock.patch('atest.atest_utils.build') 189 @mock.patch.object(project_info, 'batch_build_dependencies') 190 @mock.patch.object(common_util, 'get_android_root_dir') [all …]
|
D | source_locator_unittest.py | 38 @mock.patch('os.path.dirname') 39 @mock.patch('logging.debug') 40 @mock.patch.object(source_locator.ModuleData, '_get_source_folder') 41 @mock.patch.object(source_locator.ModuleData, '_check_key') 42 @mock.patch.object(common_util, 'is_target') 43 @mock.patch.object(common_util, 'get_android_root_dir') 80 @mock.patch('aidegen.lib.common_util.get_android_root_dir') 131 @mock.patch('os.path.exists') 132 @mock.patch('aidegen.lib.common_util.get_android_root_dir') 223 @mock.patch('aidegen.lib.common_util.get_android_root_dir') [all …]
|
D | project_file_gen_unittest.py | 76 @mock.patch.object(project_config, 'ProjectConfig') 77 @mock.patch.object(project_info, 'ProjectInfo') 104 @mock.patch.object(project_file_gen, '_get_all_git_path') 105 @mock.patch.object(xml_gen, 'write_ignore_git_dirs_file') 106 @mock.patch.object(xml_gen, 'gen_vcs_xml') 107 @mock.patch.object(common_util, 'get_android_root_dir') 108 @mock.patch.object(common_util, 'find_git_root') 109 @mock.patch.object(project_info, 'ProjectInfo') 128 @mock.patch.object(project_info, 'ProjectInfo') 151 @mock.patch.object(logging, 'error') [all …]
|
D | common_util_unittest.py | 53 @mock.patch('os.getcwd') 54 @mock.patch('os.path.isabs') 55 @mock.patch.object(common_util, 'get_android_root_dir') 94 @mock.patch('os.getcwd') 95 @mock.patch.object(common_util, 'is_android_root') 96 @mock.patch.object(common_util, 'get_android_root_dir') 136 @mock.patch.object(common_util, 'is_android_root') 137 @mock.patch.object(common_util, 'get_related_paths') 152 @mock.patch.object(common_util, 'get_android_root_dir') 153 @mock.patch.object(common_util, 'has_build_target') [all …]
|
D | eclipse_project_file_gen_unittest.py | 40 with mock.patch.object(project_info, 'ProjectInfo') as self.proj_info: 50 @mock.patch.object(common_util, 'get_android_root_dir') 58 @mock.patch('os.path.exists') 59 @mock.patch.object(common_util, 'get_android_out_dir') 60 @mock.patch.object(common_util, 'get_android_root_dir') 75 @mock.patch.object(common_util, 'exist_android_bp') 76 @mock.patch.object(common_util, 'get_android_root_dir') 107 @mock.patch.object(common_util, 'get_android_root_dir') 131 @mock.patch('os.makedirs') 132 @mock.patch('os.path.exists') [all …]
|
/tools/asuite/atest/test_finders/ |
D | module_finder_unittest.py | 118 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets', 138 @mock.patch.object(test_finder_utils, 'has_method_in_file', 140 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', 142 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets') 143 @mock.patch('subprocess.check_output', return_value=uc.FIND_ONE) 144 @mock.patch.object(test_finder_utils, 'get_fully_qualified_class_name', 146 @mock.patch('os.path.isfile', side_effect=unittest_utils.isfile_side_effect) 147 @mock.patch('os.path.isdir', return_value=True) 197 @mock.patch.object(test_finder_utils, 'has_method_in_file', 199 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', [all …]
|
D | test_finder_utils_unittest.py | 123 @mock.patch.object(test_finder_utils, 'has_method_in_file', 125 @mock.patch('builtins.input', return_value='0') 160 @mock.patch('builtins.input', return_value='1') 180 @mock.patch('builtins.input', return_value='1') 212 @mock.patch('os.path.isdir') 225 @mock.patch('os.path.isdir', return_value=True) 226 @mock.patch('os.path.isfile', 240 @mock.patch('os.path.isdir', return_value=True) 241 @mock.patch('os.path.isfile', return_value=False) 254 @mock.patch('os.path.isdir', return_value=True) [all …]
|
/tools/tradefederation/core/atest/test_finders/ |
D | module_finder_unittest.py | 115 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets', 135 @mock.patch.object(test_finder_utils, 'has_method_in_file', 137 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', 139 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets') 140 @mock.patch('subprocess.check_output', return_value=uc.FIND_ONE) 141 @mock.patch.object(test_finder_utils, 'get_fully_qualified_class_name', 143 @mock.patch('os.path.isfile', side_effect=unittest_utils.isfile_side_effect) 144 @mock.patch('os.path.isdir', return_value=True) 194 @mock.patch.object(test_finder_utils, 'has_method_in_file', 196 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module', [all …]
|
D | test_finder_utils_unittest.py | 120 @mock.patch.object(test_finder_utils, 'has_method_in_file', 122 @mock.patch('__builtin__.raw_input', return_value='1') 157 @mock.patch('__builtin__.raw_input', return_value='1') 177 @mock.patch('__builtin__.raw_input', return_value='1') 209 @mock.patch('os.path.isdir') 222 @mock.patch('os.path.isdir', return_value=True) 223 @mock.patch('os.path.isfile', 237 @mock.patch('os.path.isdir', return_value=True) 238 @mock.patch('os.path.isfile', return_value=False) 251 @mock.patch('os.path.isdir', return_value=True) [all …]
|
/tools/asuite/aidegen/ |
D | aidegen_main_unittest.py | 91 @mock.patch.object(project_config.ProjectConfig, 'init_environment') 92 @mock.patch.object(project_config, 'ProjectConfig') 93 @mock.patch.object(project_file_gen.ProjectFileGenerator, 95 @mock.patch.object(eclipse_project_file_gen.EclipseConf, 114 @mock.patch.object(aidegen_main, 'main_with_message') 115 @mock.patch.object(aidegen_main, 'main_without_message') 123 @mock.patch.object(aidegen_metrics, 'starts_asuite_metrics') 124 @mock.patch.object(project_config, 'is_whole_android_tree') 125 @mock.patch.object(aidegen_metrics, 'ends_asuite_metrics') 126 @mock.patch.object(aidegen_main, 'main_with_message') [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/controllers/ |
D | iperf_server_test.py | 57 @mock.patch('acts.controllers.iperf_server.utils') 93 @mock.patch('os.makedirs') 121 @mock.patch('builtins.open') 122 @mock.patch('acts.controllers.iperf_server.subprocess') 123 @mock.patch('acts.controllers.iperf_server.job') 132 @mock.patch('builtins.open') 133 @mock.patch('acts.controllers.iperf_server.subprocess') 134 @mock.patch('acts.controllers.iperf_server.job') 145 @mock.patch('builtins.open') 146 @mock.patch('acts.controllers.iperf_server.subprocess') [all …]
|
/tools/asuite/atest/test_runners/ |
D | atest_tf_test_runner_unittest.py | 182 @mock.patch.object(atf_tr.AtestTradefedTestRunner, '_get_ld_library_path') 183 @mock.patch.dict('os.environ', {constants.ANDROID_BUILD_TOP:'/'}) 189 mock.patch.stopall() 191 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 193 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 195 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 197 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 199 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 201 @mock.patch('select.select') 202 @mock.patch('os.killpg', return_value=None) [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/logging/ |
D | log_stream_test.py | 44 def patch(imported_name, *args, **kwargs): member in LogStreamTest 45 return mock.patch('acts.libs.logging.log_stream.%s' % imported_name, 60 @mock.patch('os.makedirs') 67 with self.patch('MovableFileHandler'): 75 @mock.patch('os.makedirs') 92 @mock.patch('os.makedirs') 128 @mock.patch('os.makedirs') 143 @mock.patch('os.makedirs') 158 @mock.patch('os.makedirs') 180 @mock.patch('os.makedirs') [all …]
|
/tools/tradefederation/core/atest/test_runners/ |
D | atest_tf_test_runner_unittest.py | 183 mock.patch.stopall() 185 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 187 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 189 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 191 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 193 @mock.patch.object(atf_tr.AtestTradefedTestRunner, 195 @mock.patch('select.select') 196 @mock.patch('os.killpg', return_value=None) 197 @mock.patch('os.getpgid', return_value=None) 198 @mock.patch('signal.signal', return_value=None) [all …]
|
/tools/acloud/internal/lib/ |
D | gcompute_client_test.py | 160 @mock.patch.object(errors, "GceOperationTimeoutError") 161 @mock.patch.object(utils, "PollAndWait") 283 @mock.patch.object(gcompute_client.ComputeClient, "GetImage") 286 with mock.patch.object(self.compute_client._service, "images", 326 @mock.patch.object(gcompute_client.ComputeClient, "DeleteImage") 327 @mock.patch.object(gcompute_client.ComputeClient, "CheckImageExists", 329 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation", 380 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation") 411 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation") 553 @mock.patch.object(gcompute_client.ComputeClient, "GetImage") [all …]
|
/tools/acloud/setup/ |
D | gcp_setup_runner_test.py | 87 with mock.patch("os.path.isfile") as chkfile: 95 @mock.patch("os.path.dirname", return_value="") 96 @mock.patch.object(utils, "CheckOutput") 107 @mock.patch.object(six.moves, "input") 117 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile") 118 @mock.patch.object(utils, "CreateSshKeyPairIfNotExist") 127 with mock.patch('os.path.expanduser') as ssh_path: 142 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CreateStableHostImage") 143 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_EnableGcloudServices") 144 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupProject") [all …]
|
/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/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 …]
|
/tools/acloud/create/ |
D | goldfish_local_image_local_instance_test.py | 117 @mock.patch("acloud.create.goldfish_local_image_local_instance.instance." 119 @mock.patch("acloud.create.goldfish_local_image_local_instance.utils") 120 @mock.patch("acloud.create.goldfish_local_image_local_instance." 122 @mock.patch("acloud.create.goldfish_local_image_local_instance." 149 with mock.patch.dict("acloud.create." 167 @mock.patch("acloud.create.goldfish_local_image_local_instance.instance." 169 @mock.patch("acloud.create.goldfish_local_image_local_instance.utils") 170 @mock.patch("acloud.create.goldfish_local_image_local_instance." 172 @mock.patch("acloud.create.goldfish_local_image_local_instance." 191 with mock.patch.dict("acloud.create." [all …]
|