Lines Matching refs:mock
24 from unittest import mock
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')
139 @mock.patch.object(aidegen_metrics, 'ends_asuite_metrics')
140 @mock.patch.object(aidegen_main, 'main_with_message')
151 @mock.patch.object(aidegen_metrics, 'ends_asuite_metrics')
152 @mock.patch.object(aidegen_main, 'main_with_message')
163 @mock.patch.object(aidegen_main, '_launch_ide')
164 @mock.patch.object(ide_util, 'get_ide_util_instance')
174 @mock.patch.object(aidegen_main, '_launch_ide')
175 @mock.patch.object(ide_util, 'get_ide_util_instance')
211 @mock.patch('builtins.print')
214 mock_ide_util = mock.MagicMock()
223 @mock.patch('builtins.input')
250 @mock.patch.object(project_config.ProjectConfig, 'init_environment')
251 @mock.patch('logging.warning')
252 @mock.patch.object(aidegen_main, '_launch_vscode')
253 @mock.patch.object(aidegen_main, '_launch_native_projects')
254 @mock.patch.object(native_util, 'generate_clion_projects')
255 @mock.patch.object(native_project_info.NativeProjectInfo,
257 @mock.patch.object(aidegen_main, '_create_and_launch_java_projects')
361 @mock.patch.object(aidegen_main, '_launch_ide')
362 @mock.patch.object(aidegen_main, '_generate_project_files')
363 @mock.patch.object(project_info.ProjectInfo, 'multi_projects_locate_source')
364 @mock.patch.object(project_info.ProjectInfo, 'generate_projects')
370 mock_prj_list = mock.MagicMock()
384 @mock.patch.object(aidegen_main, '_launch_ide')
385 @mock.patch.object(vscode_workspace_file_gen,
387 @mock.patch.object(common_util, 'get_related_paths')
392 aidegen_main._launch_vscode(None, mock.Mock(), ['Settings'], [])
397 @mock.patch.object(aidegen_main, '_launch_ide')
398 @mock.patch.object(vscode_workspace_file_gen,
400 @mock.patch.object(common_util, 'get_related_paths')
405 aidegen_main._launch_vscode(mock.Mock(), mock.Mock(), ['Settings'], [])
410 @mock.patch.object(aidegen_main, '_launch_vscode')
411 @mock.patch.object(aidegen_main, '_launch_ide')
412 @mock.patch.object(vscode_workspace_file_gen,
414 @mock.patch.object(common_util, 'get_related_paths')
419 aidegen_main._launch_vscode(None, mock.Mock(), ['Settings'], [], True)
425 @mock.patch.object(aidegen_main, '_launch_ide_by_module_contents')
426 @mock.patch.object(native_util, 'get_native_and_java_projects')
427 @mock.patch.object(native_module_info, 'NativeModuleInfo')
428 @mock.patch.object(module_info, 'AidegenModuleInfo')
429 @mock.patch.object(ide_util, 'get_ide_util_instance')
430 @mock.patch.object(project_config, 'ProjectConfig')
436 config = mock.Mock()
440 ide = mock.Mock()