Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 154) sorted by relevance

1234567

/tools/asuite/aidegen/lib/
Dmodule_info_util_unittest.py79 @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 …]
Dide_util_unittest.py104 @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 …]
Dconfig_unittest.py56 @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 …]
Dnative_module_info_unittest.py107 @mock.patch.object(
109 @mock.patch.object(common_util, 'get_related_paths')
118 @mock.patch.object(
127 @mock.patch.object(
137 @mock.patch.object(logging, 'warning')
138 @mock.patch.object(
147 @mock.patch.object(logging, 'warning')
148 @mock.patch.object(
157 @mock.patch.object(native_module_info.NativeModuleInfo,
159 @mock.patch.object(native_module_info.NativeModuleInfo,
[all …]
Dproject_file_gen_unittest.py76 @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 …]
Dproject_info_unittest.py111 @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 …]
Dclion_project_file_gen_unittest.py55 @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 …]
Dsource_locator_unittest.py38 @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 …]
Declipse_project_file_gen_unittest.py40 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 …]
Dnative_util_unittest.py34 @mock.patch.object(native_util, '_check_native_project_exists')
35 @mock.patch.object(common_util, 'check_java_or_kotlin_file_exists')
36 @mock.patch.object(common_util, 'get_related_paths')
88 @mock.patch.object(native_module_info.NativeModuleInfo,
90 @mock.patch.object(native_util, '_find_parent')
91 @mock.patch.object(common_util, 'get_related_paths')
108 @mock.patch.object(native_module_info.NativeModuleInfo,
110 @mock.patch.object(native_util, '_find_parent')
111 @mock.patch.object(common_util, 'get_related_paths')
142 @mock.patch.object(native_util, '_filter_out_rust_projects')
[all …]
Dcommon_util_unittest.py53 @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 …]
/tools/asuite/atest/test_finders/
Dmodule_finder_unittest.py123 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets',
143 @mock.patch('builtins.input', return_value='1')
144 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets',
168 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets',
190 @mock.patch.object(test_finder_utils, 'find_host_unit_tests',
192 @mock.patch.object(atest_utils, 'is_build_file', return_value=True)
193 @mock.patch.object(test_finder_utils, 'is_parameterized_java_class',
195 @mock.patch.object(test_finder_utils, 'has_method_in_file',
197 @mock.patch.object(module_finder.ModuleFinder, '_is_vts_module',
199 @mock.patch.object(module_finder.ModuleFinder, '_get_build_targets')
[all …]
Dtest_finder_utils_unittest.py137 @mock.patch.object(test_finder_utils, 'has_method_in_file',
139 @mock.patch('builtins.input', return_value='0')
187 @mock.patch('builtins.input', return_value='1')
207 @mock.patch('builtins.input', return_value='1')
239 @mock.patch('os.path.isdir')
252 @mock.patch('os.path.isdir', return_value=True)
253 @mock.patch('os.path.isfile',
267 @mock.patch('os.path.isdir', return_value=True)
268 @mock.patch('os.path.isfile', return_value=False)
281 @mock.patch('os.path.isdir', return_value=True)
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py174 @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 …]
Dacts_utils_test.py192 @mock.patch('time.sleep')
208 @mock.patch('time.sleep')
224 @mock.patch('time.sleep')
243 @mock.patch('time.sleep')
257 @mock.patch('time.sleep')
462 @mock.patch('acts.libs.proc.job.run')
473 @mock.patch('acts.libs.proc.job.run')
484 @mock.patch('acts.controllers.utils_lib.ssh.connection.SshConnection.run')
496 @mock.patch('acts.controllers.utils_lib.ssh.connection.SshConnection.run')
508 @mock.patch('acts.controllers.adb.AdbProxy')
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/
Diperf_server_test.py57 @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/aidegen/
Daidegen_main_unittest.py92 @mock.patch.object(project_config.ProjectConfig, 'init_environment')
93 @mock.patch.object(project_config, 'ProjectConfig')
94 @mock.patch.object(project_file_gen.ProjectFileGenerator,
96 @mock.patch.object(eclipse_project_file_gen.EclipseConf,
115 @mock.patch.object(aidegen_main, 'main_with_message')
116 @mock.patch.object(aidegen_main, 'main_without_message')
124 @mock.patch.object(aidegen_metrics, 'starts_asuite_metrics')
125 @mock.patch.object(project_config, 'is_whole_android_tree')
126 @mock.patch.object(aidegen_metrics, 'ends_asuite_metrics')
127 @mock.patch.object(aidegen_main, 'main_with_message')
[all …]
/tools/asuite/atest/
Dmodule_info_unittest.py74 @mock.patch.object(module_info.ModuleInfo, '_merge_soong_info')
75 @mock.patch('json.load', return_value={})
76 @mock.patch('builtins.open', new_callable=mock.mock_open)
77 @mock.patch('os.path.isfile', return_value=True)
88 with mock.patch.dict('os.environ', os_environ_mock, clear=True):
99 with mock.patch.dict('os.environ', os_environ_mock, clear=True):
110 with mock.patch.dict('os.environ', os_environ_mock, clear=True):
115 @mock.patch.dict('os.environ', {constants.ANDROID_BUILD_TOP:'/'})
116 @mock.patch.object(module_info.ModuleInfo, '_load_module_info_file')
136 @mock.patch.dict('os.environ', {constants.ANDROID_BUILD_TOP:'/'})
[all …]
/tools/asuite/aidegen/project/
Dproject_splitter_unittest.py51 with mock.patch.object(project_info, 'ProjectInfo') as proj_info:
89 with mock.patch.object(project_config.ProjectConfig,
102 @mock.patch.object(common_util, 'get_android_root_dir')
103 @mock.patch.object(project_config.ProjectConfig, 'get_instance')
104 @mock.patch('builtins.any')
110 with mock.patch.object(project_info, 'ProjectInfo') as proj_info:
122 @mock.patch.object(project_splitter.ProjectSplitter,
124 @mock.patch.object(project_splitter.ProjectSplitter,
126 @mock.patch.object(project_splitter.ProjectSplitter,
165 @mock.patch.object(
[all …]
/tools/test/connectivity/acts/framework/tests/libs/uicd/
Duicd_cli_test.py37 @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/asuite/atest-py2/test_finders/
Dmodule_finder_unittest.py115 @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 …]
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py185 @mock.patch.object(atf_tr.AtestTradefedTestRunner, '_get_ld_library_path')
186 @mock.patch.dict('os.environ', {constants.ANDROID_BUILD_TOP:'/'})
192 mock.patch.stopall()
194 @mock.patch.object(atf_tr.AtestTradefedTestRunner,
196 @mock.patch.object(atf_tr.AtestTradefedTestRunner,
198 @mock.patch.object(atf_tr.AtestTradefedTestRunner,
200 @mock.patch.object(atf_tr.AtestTradefedTestRunner,
202 @mock.patch.object(atf_tr.AtestTradefedTestRunner,
204 @mock.patch('select.select')
205 @mock.patch('os.killpg', return_value=None)
[all …]
/tools/test/connectivity/acts/framework/tests/libs/logging/
Dlog_stream_test.py44 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/acloud/setup/
Dgcp_setup_runner_test.py88 with mock.patch("os.path.isfile") as chkfile:
96 @mock.patch("os.path.dirname", return_value="")
97 @mock.patch.object(utils, "CheckOutput")
108 @mock.patch.object(six.moves, "input")
118 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile")
119 @mock.patch.object(utils, "CreateSshKeyPairIfNotExist")
128 with mock.patch('os.path.expanduser') as ssh_path:
143 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CreateStableHostImage")
144 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_EnableGcloudServices")
145 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupProject")
[all …]
/tools/acloud/create/
Dlocal_image_local_instance_test.py90 @mock.patch("acloud.create.local_image_local_instance.utils")
91 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
93 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
95 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
97 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
162 @mock.patch("acloud.create.local_image_local_instance.utils")
163 @mock.patch("acloud.create.local_image_local_instance.ota_tools")
164 @mock.patch("acloud.create.local_image_local_instance.create_common")
165 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
167 @mock.patch.object(local_image_local_instance.LocalImageLocalInstance,
[all …]

1234567