(input_api, output_api)
| 256 | |
| 257 | |
| 258 | def CheckGeneratedFiles(input_api, output_api): |
| 259 | v8_directory_path = input_api.os_path.join(input_api.PresubmitLocalPath(), |
| 260 | 'v8') |
| 261 | blink_directory_path = input_api.os_path.join( |
| 262 | input_api.PresubmitLocalPath(), 'third_party', 'blink') |
| 263 | scripts_build_path = input_api.os_path.join(input_api.PresubmitLocalPath(), |
| 264 | 'scripts', 'build') |
| 265 | scripts_generated_output_path = input_api.os_path.join( |
| 266 | input_api.PresubmitLocalPath(), 'front_end', 'generated') |
| 267 | |
| 268 | generated_aria_path = input_api.os_path.join(scripts_build_path, |
| 269 | 'generate_aria.py') |
| 270 | generated_supported_css_path = input_api.os_path.join( |
| 271 | scripts_build_path, 'generate_supported_css.py') |
| 272 | generated_deprecation_path = input_api.os_path.join( |
| 273 | scripts_build_path, 'generate_deprecations.py') |
| 274 | generated_protocol_path = input_api.os_path.join( |
| 275 | scripts_build_path, 'code_generator_frontend.py') |
| 276 | generated_protocol_typescript_path = input_api.os_path.join( |
| 277 | input_api.PresubmitLocalPath(), 'scripts', 'protocol_typescript') |
| 278 | concatenate_protocols_path = input_api.os_path.join( |
| 279 | input_api.PresubmitLocalPath(), 'third_party', 'inspector_protocol', |
| 280 | 'concatenate_protocols.py') |
| 281 | |
| 282 | affected_files = _GetAffectedFiles(input_api, [ |
| 283 | v8_directory_path, |
| 284 | blink_directory_path, |
| 285 | input_api.os_path.join(input_api.PresubmitLocalPath(), 'third_party', |
| 286 | 'pyjson5'), |
| 287 | generated_aria_path, |
| 288 | generated_supported_css_path, |
| 289 | generated_deprecation_path, |
| 290 | concatenate_protocols_path, |
| 291 | generated_protocol_path, |
| 292 | scripts_generated_output_path, |
| 293 | generated_protocol_typescript_path, |
| 294 | ], [], ['.pdl', '.json5', '.py', '.js', '.ts']) |
| 295 | |
| 296 | if len(affected_files) == 0: |
| 297 | return [] |
| 298 | |
| 299 | generate_protocol_resources_path = input_api.os_path.join( |
| 300 | input_api.PresubmitLocalPath(), 'scripts', 'deps', |
| 301 | 'generate_protocol_resources.py') |
| 302 | |
| 303 | return _ExecuteSubProcess(input_api, |
| 304 | output_api, |
| 305 | generate_protocol_resources_path, |
| 306 | message='Generated files') |
| 307 | |
| 308 | |
| 309 | def CheckL10nStrings(input_api, output_api): |
nothing calls this directly
no test coverage detected