├── fuchsia ├── __init__.py ├── sdk-bucket.txt ├── linux_internal.sdk.sha1 ├── cipd │ ├── version.template │ ├── DIR_METADATA │ └── README.md ├── test │ ├── .style.yapf │ ├── .coveragerc │ ├── BUILD.gn │ └── pylintrc ├── DIR_METADATA ├── COMMON_METADATA └── OWNERS ├── ios ├── test_data │ ├── bar.html │ ├── foo.css │ ├── subdirectory │ │ └── baz.txt │ ├── comment.filelist │ ├── extra.globlist │ ├── basic.globlist │ ├── different_local_path.globlist │ ├── reorder.globlist │ ├── exclusions.globlist │ ├── outside_globlist_dir.globlist │ ├── repository_relative.globlist │ ├── comment.globlist │ ├── missing.globlist │ ├── duplicates.globlist │ ├── ignore_outside_globlist_dir.globlist │ ├── basic.filelist │ ├── duplicates.filelist │ ├── extra.filelist │ ├── different_local_path.filelist │ ├── outside_globlist_dir.filelist │ ├── ignore_outside_globlist_dir.filelist │ ├── missing.filelist │ ├── reorder.filelist │ ├── exclusions.filelist │ └── repository_relative.filelist ├── OWNERS └── PRESUBMIT.py ├── util ├── lib │ ├── __init__.py │ ├── common │ │ ├── __init__.py │ │ ├── PRESUBMIT.py │ │ └── perf_result_data_type.py │ ├── proto │ │ ├── __init__.py │ │ ├── OWNERS │ │ ├── README.md │ │ ├── measure.py │ │ └── count.py │ └── results │ │ ├── __init__.py │ │ ├── OWNERS │ │ ├── DIR_METADATA │ │ └── result_types.py ├── LASTCHANGE.dummy ├── chromium_git_revision.h.in └── lastchange.gni ├── android ├── gyp │ ├── proto │ │ ├── __init__.py │ │ └── README.md │ ├── OWNERS │ ├── util │ │ └── __init__.py │ ├── aar.pydeps │ ├── ijar.pydeps │ ├── copy_ex.pydeps │ ├── zip.pydeps │ ├── aidl.pydeps │ ├── system_image_apks.pydeps │ ├── bytecode_rewriter.pydeps │ ├── filter_zip.pydeps │ ├── flatc_java.pydeps │ ├── jacoco_instr.pydeps │ ├── optimize_resources.pydeps │ ├── rename_java_classes.pydeps │ ├── assert_static_initializers.pydeps │ ├── lint.pydeps │ ├── create_apk_operations_script.pydeps │ ├── gcc_preprocess.pydeps │ ├── merge_manifest.pydeps │ ├── dist_aar.pydeps │ ├── tracereferences.pydeps │ ├── binary_baseline_profile.pydeps │ ├── create_test_apk_wrapper_script.pydeps │ ├── process_native_prebuilt.pydeps │ ├── create_java_binary_script.pydeps │ ├── dex.pydeps │ ├── create_stub_manifest.pydeps │ ├── create_bundle_wrapper_script.pydeps │ ├── java_cpp_enum.pydeps │ ├── apkbuilder.pydeps │ ├── check_flag_expectations.pydeps │ ├── create_size_info_files.pydeps │ ├── trace_event_bytecode_rewriter.pydeps │ ├── generate_linker_version_script.pydeps │ ├── java_google_api_keys.pydeps │ ├── java_cpp_strings.pydeps │ ├── java_cpp_features.pydeps │ ├── write_native_libraries_java.pydeps │ ├── test │ │ ├── BUILD.gn │ │ └── java │ │ │ └── org │ │ │ └── chromium │ │ │ └── helloworld │ │ │ ├── HelloWorldPrinter.java │ │ │ └── HelloWorldMain.java │ ├── proguard.pydeps │ └── validate_static_library_dex_references.pydeps ├── pylib │ ├── device │ │ ├── __init__.py │ │ └── commands │ │ │ └── BUILD.gn │ ├── monkey │ │ └── __init__.py │ ├── symbols │ │ ├── __init__.py │ │ └── mock_addr2line │ │ │ └── __init__.py │ ├── utils │ │ ├── __init__.py │ │ └── local_utils.py │ ├── OWNERS │ ├── gtest │ │ ├── filter │ │ │ ├── OWNERS │ │ │ ├── breakpad_unittests_disabled │ │ │ ├── base_unittests_emulator_additional_disabled │ │ │ └── base_unittests_disabled │ │ └── __init__.py │ ├── local │ │ ├── emulator │ │ │ ├── OWNERS │ │ │ ├── __init__.py │ │ │ └── proto │ │ │ │ └── __init__.py │ │ ├── __init__.py │ │ ├── device │ │ │ ├── __init__.py │ │ │ └── local_device_network_environment.py │ │ └── machine │ │ │ ├── __init__.py │ │ │ ├── local_machine_hostside_tradefed_config.xml │ │ │ └── local_machine_environment.py │ ├── base │ │ ├── __init__.py │ │ ├── mock_environment.py │ │ ├── mock_test_instance.py │ │ ├── test_server.py │ │ ├── output_manager_test_case.py │ │ └── output_manager_factory.py │ ├── dex │ │ └── __init__.py │ ├── junit │ │ └── __init__.py │ ├── android │ │ └── __init__.py │ ├── hostside │ │ └── __init__.py │ ├── output │ │ └── __init__.py │ ├── results │ │ ├── __init__.py │ │ ├── presentation │ │ │ └── __init__.py │ │ └── flakiness_dashboard │ │ │ └── __init__.py │ ├── instrumentation │ │ └── __init__.py │ └── restart_adbd.sh ├── COMMON_METADATA ├── DIR_METADATA ├── gradle │ ├── OWNERS │ ├── manifest.jinja │ ├── AndroidManifest.xml │ └── cmake.jinja ├── chromium-debug.keystore ├── tests │ └── symbolize │ │ ├── liba.so │ │ ├── libb.so │ │ ├── b.cc │ │ ├── a.cc │ │ └── Makefile ├── CheckInstallApk-debug.apk ├── java │ ├── test │ │ ├── missing_symbol │ │ │ ├── c.jar │ │ │ ├── B.java │ │ │ ├── D.template │ │ │ ├── sub │ │ │ │ ├── SubB.java │ │ │ │ └── BInMethodSignature.java │ │ │ ├── ImportsSubB.java │ │ │ └── Importer.template │ │ ├── NoSignatureChangeIncrementalJavacTestHelper2.java │ │ ├── NewApiLintTest.java │ │ ├── DefaultLocaleLintTest.java │ │ └── NoSignatureChangeIncrementalJavacTestHelper.template │ └── src │ │ └── org │ │ └── chromium │ │ └── build │ │ └── annotations │ │ ├── AlwaysInline.java │ │ ├── NullMarked.java │ │ ├── NullUnmarked.java │ │ ├── OptimizeAsNonNull.java │ │ └── DoNotStripLogs.java ├── stacktrace │ └── java_deobfuscate_java.jar ├── incremental_install │ ├── __init__.py │ ├── third_party │ │ └── AndroidHiddenApiBypass │ │ │ ├── stub │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── stub │ │ │ │ └── dalvik │ │ │ │ └── system │ │ │ │ └── VMRuntime.java │ │ │ ├── local_modifications │ │ │ └── org │ │ │ │ └── lsposed │ │ │ │ └── hiddenapibypass │ │ │ │ └── library │ │ │ │ └── BuildConfig.java │ │ │ └── README.chromium │ ├── write_installer_json.pydeps │ ├── generate_android_manifest.pydeps │ └── java │ │ └── org │ │ └── chromium │ │ └── incrementalinstall │ │ └── SecondInstrumentation.java ├── native_flags │ ├── empty.cc │ └── argcapture.py ├── OWNERS ├── junit │ ├── res │ │ └── values │ │ │ └── strings.xml │ └── AndroidManifest_mergetest.xml ├── android_only_jni_exports.lst ├── adb_profile_chrome ├── adb_profile_chrome_startup ├── android_only_explicit_jni_exports.lst ├── screenshot.py ├── video_recorder.py ├── AndroidManifest.xml ├── pylintrc ├── adb_chrome_public_command_line ├── test │ └── nocompile_gn │ │ └── nocompile_sources.gni ├── adb_system_webview_command_line ├── gtest_apk │ └── BUILD.gn ├── adb_system_webengine_command_line └── bytecode │ └── java │ └── org │ └── chromium │ └── bytecode │ └── MethodDescription.java ├── autoroll ├── OWNERS └── .style.yapf ├── config ├── profiling │ ├── OWNERS │ └── profiling.gni ├── coverage │ └── OWNERS ├── ios │ ├── OWNERS │ ├── entitlements.plist │ ├── resources │ │ └── XCTRunnerAddition+Info.plist │ └── config.gni ├── mac │ ├── OWNERS │ ├── BuildInfo.plist │ └── mac_sdk_overrides.gni ├── android │ ├── OWNERS │ ├── DIR_METADATA │ ├── test │ │ ├── proto │ │ │ ├── root │ │ │ │ ├── absolute_child.proto │ │ │ │ ├── relative_child.proto │ │ │ │ ├── relative_root.proto │ │ │ │ └── absolute_root.proto │ │ │ ├── absolute_dep │ │ │ │ └── absolute_dep.proto │ │ │ └── relative_dep │ │ │ │ └── relative_dep.proto │ │ └── resource_overlay │ │ │ └── java │ │ │ └── res_template │ │ │ └── values │ │ │ └── values.xml │ ├── sdk.gni │ └── channel.gni ├── apple │ ├── OWNERS │ └── BUILD.gn ├── linux │ ├── OWNERS │ ├── pangocairo │ │ ├── pangocairo.gni │ │ └── BUILD.gn │ ├── gtk │ │ └── gtk.gni │ ├── libva │ │ └── BUILD.gn │ ├── nss │ │ └── BUILD.gn │ ├── dbus │ │ └── BUILD.gn │ └── dri │ │ └── BUILD.gn ├── chromeos │ ├── OWNERS │ └── ui_mode.gni ├── cronet │ └── OWNERS ├── sanitizers │ └── OWNERS ├── freetype │ ├── OWNERS │ └── BUILD.gn ├── fuchsia │ ├── DIR_METADATA │ ├── OWNERS │ ├── test │ │ ├── OWNERS │ │ ├── chromium_test_facet.shard.test-cml │ │ ├── chromium_system_test_facet.shard.test-cml │ │ ├── mark_vmo_executable.shard.test-cml │ │ ├── sysmem.shard.test-cml │ │ ├── logger.shard.test-cml │ │ ├── asan_options.shard.test-cml │ │ ├── elf_test_runner.shard.test-cml │ │ ├── elf_test_ambient_exec_runner.shard.test-cml │ │ ├── audio_output.shard.test-cml │ │ └── network.shard.test-cml │ ├── config.gni │ └── packaged_content_embedder_excluded_dirs.gni ├── siso │ ├── .gitignore │ ├── DIR_METADATA │ ├── OWNERS │ ├── README.md │ ├── backend_config │ │ └── README.md │ └── platform.star ├── chromecast │ └── OWNERS ├── chromebox_for_meetings │ ├── OWNERS │ ├── buildflags.gni │ └── BUILD.gn ├── rts.gni ├── cuttlefish │ ├── buildflags.gni │ ├── BUILD.gn │ └── README.md ├── unwind.gni ├── get_host_byteorder.py ├── loongarch64.gni ├── warning_suppression.txt ├── OWNERS ├── compute_inputs_for_analyze.gni ├── buildflags_paint_preview.gni └── win │ └── console_app.gni ├── mac └── OWNERS ├── skia_gold_common ├── OWNERS ├── .style.yapf ├── __init__.py └── README.md ├── ciopfs.sha1 ├── toolchain ├── apple │ ├── OWNERS │ ├── .style.yapf │ ├── swift_const_gather_protocols.json │ ├── get_tool_mtime.py │ └── BUILD.gn ├── ios │ └── OWNERS ├── mac │ └── OWNERS ├── android │ ├── OWNERS │ └── DIR_METADATA ├── fuchsia │ ├── OWNERS │ └── DIR_METADATA ├── win │ └── rc │ │ ├── .gitignore │ │ ├── mac │ │ └── rc.sha1 │ │ ├── linux64 │ │ └── rc.sha1 │ │ └── win │ │ └── rc.exe.sha1 ├── OWNERS ├── remoteexec_defaults.gni ├── kythe.gni ├── get_cpu_count.py ├── aix │ └── BUILD.gn ├── cros │ └── cros_config.gni └── BUILD.gn ├── chromeos ├── .style.yapf ├── OWNERS ├── README.md └── pylintrc ├── gn_ast ├── .style.yapf └── README.md ├── 3pp_common └── .style.yapf ├── args └── OWNERS ├── linux ├── libncursesw │ ├── OWNERS │ └── DIR_METADATA ├── sysroot_scripts │ ├── .style.yapf │ ├── keyring.gpg │ ├── sysroot.gni │ └── libxcomposite1-symbols ├── unbundle │ ├── openh264_encoder_cfi_ignores.txt │ ├── absl_log_internal.gn │ ├── absl_crc.gn │ ├── vulkan_memory_allocator.gn │ ├── libsecret.gn │ ├── crc32c.gn │ ├── fontconfig.gn │ ├── libxslt.gn │ ├── libavif.gn │ ├── libusb.gn │ ├── libXNVCtrl.gn │ ├── libjpeg.gn │ ├── woff2.gn │ ├── absl_memory.gn │ ├── absl_cleanup.gn │ ├── absl_utility.gn │ ├── snappy.gn │ ├── absl_meta.gn │ ├── absl_time.gn │ ├── highway.gn │ ├── simdutf.gn │ ├── swiftshader-SPIRV-Headers.gn │ ├── libdrm.gn │ ├── absl_hash.gn │ ├── absl_algorithm.gn │ ├── libpng.gn │ ├── vulkan-SPIRV-Headers.gn │ ├── harfbuzz-ng.gn │ ├── absl_synchronization.gn │ ├── zstd.gn │ ├── dav1d.gn │ ├── double-conversion.gn │ └── flac.gn ├── OWNERS └── libpci │ └── BUILD.gn ├── apple ├── OWNERS └── README.md ├── rust ├── std │ ├── fake_root │ │ ├── .gitignore │ │ ├── README.md │ │ ├── src │ │ │ └── main.rs │ │ ├── .cargo │ │ │ └── config.toml.template │ │ └── Cargo.toml.template │ └── DEPS ├── OWNERS ├── tests │ ├── test_rlib_crate_testonly │ │ ├── crate │ │ │ ├── src │ │ │ │ ├── lib.rs │ │ │ │ └── main.rs │ │ │ └── build.rs │ │ └── BUILD.gn │ ├── test_bin_crate │ │ ├── crate │ │ │ └── src │ │ │ │ ├── more.rs │ │ │ │ └── main.rs │ │ └── BUILD.gn │ ├── test_simple_rust_exe │ │ ├── main.rs │ │ └── BUILD.gn │ ├── test_rlib_crate │ │ └── crate │ │ │ └── src │ │ │ └── main.rs │ ├── test_rust_metadata │ │ ├── main.cc │ │ ├── foo_dependency.rs │ │ ├── main.rs │ │ ├── transitive_dep.rs │ │ └── tests.rs │ ├── bindgen_cpp_test_with_cpp_linkage │ │ ├── main.cc │ │ ├── cpp.cc │ │ ├── lib.rs │ │ └── cpp.h │ ├── test_rust_multiple_dep_versions_exe │ │ ├── v1 │ │ │ ├── src │ │ │ │ └── lib.rs │ │ │ └── BUILD.gn │ │ ├── v2 │ │ │ ├── src │ │ │ │ └── lib.rs │ │ │ └── BUILD.gn │ │ ├── transitive_lib.rs │ │ └── main.rs │ ├── test_aliased_deps │ │ ├── real_name.rs │ │ ├── lib.rs │ │ └── main.rs │ ├── test_build_rs_target_arch_x86 │ │ ├── lib.rs │ │ └── BUILD.gn │ ├── test_rust_calling_cpp │ │ ├── main.cc │ │ ├── cpp_library.cc │ │ ├── cpp_library.h │ │ ├── BUILD.gn │ │ └── rust_calling_cpp_rlib.rs │ ├── bindgen_test │ │ ├── lib.c │ │ ├── main.rs │ │ ├── lib2.h │ │ └── src │ │ │ └── lib.rs │ ├── test_rs_bindings_from_cc │ │ ├── self_contained_target_header2.cc │ │ ├── self_contained_target_header1.h │ │ ├── self_contained_target_header2.h │ │ └── target_depending_on_another.h │ ├── bindgen_cpp_test │ │ ├── cpp.cc │ │ ├── main.rs │ │ ├── cpp.h │ │ └── BUILD.gn │ ├── test_proc_macro_crate │ │ ├── crate │ │ │ └── src │ │ │ │ └── lib.rs │ │ └── BUILD.gn │ ├── test_proc_macro_crate_2 │ │ ├── crate │ │ │ └── src │ │ │ │ └── lib.rs │ │ └── BUILD.gn │ ├── test_rust_static_library_non_standard_arrangement │ │ ├── foo.rs │ │ └── BUILD.gn │ ├── bindgen_static_fns_test │ │ ├── lib.c │ │ ├── main.rs │ │ └── src │ │ │ └── lib.rs │ ├── test_cpp_including_rust │ │ └── main.cc │ ├── test_serde_json_lenient │ │ └── unittests.cc │ ├── test_control_flow_guard │ │ └── BUILD.gn │ ├── test_rust_unittests │ │ ├── BUILD.gn │ │ └── main.rs │ ├── test_rust_shared_library │ │ └── BUILD.gn │ ├── test_rust_static_library │ │ └── BUILD.gn │ ├── test_rust_exe_2 │ │ ├── BUILD.gn │ │ └── main.rs │ ├── windows_sys_test │ │ ├── BUILD.gn │ │ └── main.rs │ └── test_rust_exe │ │ └── BUILD.gn ├── chromium_prelude │ └── import_test_lib.rs ├── cxx_version.gni └── bindings.rs ├── metadata.json.in ├── sanitizers ├── OWNERS └── dlcloseshim.c ├── DIR_METADATA ├── .clang-tidy ├── .clangd ├── .git-blame-ignore-revs ├── .style.yapf ├── noop.py ├── sanitize-mac-build-log.sh ├── sanitize-win-build-log.sh ├── install-build-deps.sh ├── sample_arg_file.gn ├── gn_editor ├── protoc_java.pydeps ├── precompile.cc ├── win ├── use_ansi_codes.py ├── segment_heap.manifest ├── as_invoker.manifest ├── common_controls.manifest └── require_administrator.manifest ├── OWNERS.status ├── check_return_value.py ├── sanitize-win-build-log.sed ├── .gitignore └── cp.py /fuchsia/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fuchsia/sdk-bucket.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/test_data/bar.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/test_data/foo.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/lib/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/lib/proto/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/lib/results/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/gyp/proto/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/pylib/device/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/pylib/monkey/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/pylib/symbols/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/pylib/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/test_data/subdirectory/baz.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/COMMON_METADATA: -------------------------------------------------------------------------------- 1 | os: ANDROID 2 | -------------------------------------------------------------------------------- /android/pylib/OWNERS: -------------------------------------------------------------------------------- 1 | hypan@google.com 2 | -------------------------------------------------------------------------------- /android/pylib/gtest/filter/OWNERS: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /autoroll/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/android/OWNERS -------------------------------------------------------------------------------- /config/profiling/OWNERS: -------------------------------------------------------------------------------- 1 | pasthana@google.com -------------------------------------------------------------------------------- /ios/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /mac/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /android/pylib/symbols/mock_addr2line/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/coverage/OWNERS: -------------------------------------------------------------------------------- 1 | pasthana@google.com 2 | -------------------------------------------------------------------------------- /config/ios/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /config/mac/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /skia_gold_common/OWNERS: -------------------------------------------------------------------------------- 1 | bsheedy@chromium.org 2 | -------------------------------------------------------------------------------- /util/lib/results/OWNERS: -------------------------------------------------------------------------------- 1 | bjoyce@chromium.org 2 | -------------------------------------------------------------------------------- /ciopfs.sha1: -------------------------------------------------------------------------------- 1 | 5454b3c4f1c9992047e7ae9d6d14d5b49b1b12f3 -------------------------------------------------------------------------------- /config/android/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/android/OWNERS 2 | -------------------------------------------------------------------------------- /config/apple/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /config/linux/OWNERS: -------------------------------------------------------------------------------- 1 | thomasanderson@chromium.org 2 | -------------------------------------------------------------------------------- /fuchsia/linux_internal.sdk.sha1: -------------------------------------------------------------------------------- 1 | 27.20250330.103.1 2 | -------------------------------------------------------------------------------- /toolchain/apple/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /toolchain/ios/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /toolchain/mac/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/apple/OWNERS 2 | -------------------------------------------------------------------------------- /autoroll/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = yapf 3 | -------------------------------------------------------------------------------- /chromeos/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = yapf 3 | -------------------------------------------------------------------------------- /config/chromeos/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/chromeos/OWNERS 2 | -------------------------------------------------------------------------------- /config/cronet/OWNERS: -------------------------------------------------------------------------------- 1 | file://components/cronet/OWNERS 2 | -------------------------------------------------------------------------------- /gn_ast/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | -------------------------------------------------------------------------------- /toolchain/android/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/android/OWNERS 2 | -------------------------------------------------------------------------------- /toolchain/fuchsia/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/fuchsia/OWNERS 2 | -------------------------------------------------------------------------------- /3pp_common/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | -------------------------------------------------------------------------------- /args/OWNERS: -------------------------------------------------------------------------------- 1 | per-file headless.gn=file://headless/OWNERS 2 | -------------------------------------------------------------------------------- /config/sanitizers/OWNERS: -------------------------------------------------------------------------------- 1 | file://testing/libfuzzer/OWNERS 2 | -------------------------------------------------------------------------------- /fuchsia/cipd/version.template: -------------------------------------------------------------------------------- 1 | @MAJOR@.@MINOR@.@BUILD@.@PATCH@ -------------------------------------------------------------------------------- /fuchsia/test/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | -------------------------------------------------------------------------------- /linux/libncursesw/OWNERS: -------------------------------------------------------------------------------- 1 | file://ui/accessibility/OWNERS 2 | -------------------------------------------------------------------------------- /android/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/android/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /chromeos/OWNERS: -------------------------------------------------------------------------------- 1 | bpastene@chromium.org 2 | svenzheng@chromium.org 3 | -------------------------------------------------------------------------------- /fuchsia/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/fuchsia/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /toolchain/apple/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | -------------------------------------------------------------------------------- /toolchain/win/rc/.gitignore: -------------------------------------------------------------------------------- 1 | linux64/rc 2 | mac/rc 3 | win/rc.exe 4 | -------------------------------------------------------------------------------- /toolchain/win/rc/mac/rc.sha1: -------------------------------------------------------------------------------- 1 | 7993171a0945463597004878af3109ea97575b4f -------------------------------------------------------------------------------- /util/lib/proto/OWNERS: -------------------------------------------------------------------------------- 1 | hypan@google.com 2 | zijiehe@google.com 3 | -------------------------------------------------------------------------------- /android/gradle/OWNERS: -------------------------------------------------------------------------------- 1 | agrieve@chromium.org 2 | wnwen@chromium.org 3 | -------------------------------------------------------------------------------- /config/android/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/android/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /config/freetype/OWNERS: -------------------------------------------------------------------------------- 1 | bungeman@chromium.org 2 | drott@chromium.org 3 | -------------------------------------------------------------------------------- /config/fuchsia/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/fuchsia/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /config/siso/.gitignore: -------------------------------------------------------------------------------- 1 | /.sisoenv 2 | /backend_config/backend.star 3 | -------------------------------------------------------------------------------- /fuchsia/cipd/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/fuchsia/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /linux/sysroot_scripts/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | -------------------------------------------------------------------------------- /toolchain/win/rc/linux64/rc.sha1: -------------------------------------------------------------------------------- 1 | ca09f6f10b1943d3b5476fbb10b3d83d97f8f490 -------------------------------------------------------------------------------- /toolchain/win/rc/win/rc.exe.sha1: -------------------------------------------------------------------------------- 1 | dea7da0d9bfcb8dad6cf53ca608dddac3459faaa -------------------------------------------------------------------------------- /config/chromecast/OWNERS: -------------------------------------------------------------------------------- 1 | mfoltz@chromium.org 2 | seantopping@chromium.org 3 | -------------------------------------------------------------------------------- /toolchain/android/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/android/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /toolchain/fuchsia/DIR_METADATA: -------------------------------------------------------------------------------- 1 | mixins: "//build/fuchsia/COMMON_METADATA" 2 | -------------------------------------------------------------------------------- /config/fuchsia/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/fuchsia/OWNERS 2 | 3 | zijiehe@google.com 4 | -------------------------------------------------------------------------------- /apple/OWNERS: -------------------------------------------------------------------------------- 1 | mark@chromium.org 2 | rohitrao@chromium.org 3 | sdefresne@chromium.org 4 | -------------------------------------------------------------------------------- /linux/unbundle/openh264_encoder_cfi_ignores.txt: -------------------------------------------------------------------------------- 1 | [cfi-vcall] 2 | type:ISVCEncoder 3 | -------------------------------------------------------------------------------- /toolchain/OWNERS: -------------------------------------------------------------------------------- 1 | # Code Coverage. 2 | per-file *code_coverage*=pasthana@google.com 3 | -------------------------------------------------------------------------------- /linux/OWNERS: -------------------------------------------------------------------------------- 1 | mmoss@chromium.org 2 | thestig@chromium.org 3 | thomasanderson@chromium.org 4 | -------------------------------------------------------------------------------- /chromeos/README.md: -------------------------------------------------------------------------------- 1 | This directory contains a few scripts used to run tests on CrOS VMs/DUTs. 2 | -------------------------------------------------------------------------------- /rust/std/fake_root/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /Cargo.lock 3 | /Cargo.toml 4 | /.cargo/config.toml 5 | -------------------------------------------------------------------------------- /config/chromebox_for_meetings/OWNERS: -------------------------------------------------------------------------------- 1 | file://chromeos/ash/components/chromebox_for_meetings/OWNERS 2 | -------------------------------------------------------------------------------- /android/pylib/local/emulator/OWNERS: -------------------------------------------------------------------------------- 1 | bpastene@chromium.org 2 | hypan@google.com 3 | jbudorick@chromium.org 4 | -------------------------------------------------------------------------------- /ios/test_data/comment.filelist: -------------------------------------------------------------------------------- 1 | # This comment is an unexpected header. 2 | test_data/subdirectory/baz.txt 3 | -------------------------------------------------------------------------------- /rust/OWNERS: -------------------------------------------------------------------------------- 1 | collinbaker@chromium.org 2 | dcheng@chromium.org 3 | lukasza@chromium.org 4 | thakis@chromium.org 5 | -------------------------------------------------------------------------------- /util/LASTCHANGE.dummy: -------------------------------------------------------------------------------- 1 | LASTCHANGE=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 2 | -------------------------------------------------------------------------------- /config/siso/DIR_METADATA: -------------------------------------------------------------------------------- 1 | team_email: "chrome-build-team@google.com" 2 | buganizer: { 3 | component_id: 1241816 4 | } 5 | -------------------------------------------------------------------------------- /linux/unbundle/absl_log_internal.gn: -------------------------------------------------------------------------------- 1 | source_set("fnmatch_test") { 2 | } 3 | source_set("stderr_log_sink_test") { 4 | } 5 | -------------------------------------------------------------------------------- /skia_gold_common/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | 4 | column_limit = 80 5 | indent_width = 2 6 | 7 | -------------------------------------------------------------------------------- /android/chromium-debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/chromium-debug.keystore -------------------------------------------------------------------------------- /android/tests/symbolize/liba.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/tests/symbolize/liba.so -------------------------------------------------------------------------------- /android/tests/symbolize/libb.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/tests/symbolize/libb.so -------------------------------------------------------------------------------- /android/CheckInstallApk-debug.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/CheckInstallApk-debug.apk -------------------------------------------------------------------------------- /linux/sysroot_scripts/keyring.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/linux/sysroot_scripts/keyring.gpg -------------------------------------------------------------------------------- /metadata.json.in: -------------------------------------------------------------------------------- 1 | { 2 | "content": { 3 | "version": "@MAJOR@.@MINOR@.@BUILD@.@PATCH@" 4 | }, 5 | "metadata_version": 1 6 | } 7 | -------------------------------------------------------------------------------- /sanitizers/OWNERS: -------------------------------------------------------------------------------- 1 | glider@chromium.org 2 | rnk@chromium.org 3 | per-file tsan_suppressions.cc=* 4 | per-file lsan_suppressions.cc=* 5 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/c.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/java/test/missing_symbol/c.jar -------------------------------------------------------------------------------- /util/lib/results/DIR_METADATA: -------------------------------------------------------------------------------- 1 | monorail: { 2 | component: "Infra>Client>Chrome" 3 | } 4 | buganizer_public: { 5 | component_id: 1456211 6 | } 7 | -------------------------------------------------------------------------------- /android/stacktrace/java_deobfuscate_java.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/chromium_build/upstream/android/stacktrace/java_deobfuscate_java.jar -------------------------------------------------------------------------------- /DIR_METADATA: -------------------------------------------------------------------------------- 1 | monorail: { 2 | component: "Build" 3 | } 4 | team_email: "build@chromium.org" 5 | buganizer_public: { 6 | component_id: 1456832 7 | } 8 | -------------------------------------------------------------------------------- /android/gyp/OWNERS: -------------------------------------------------------------------------------- 1 | agrieve@chromium.org 2 | smaier@chromium.org 3 | wnwen@chromium.org 4 | 5 | per-file create_unwind_table*.py=file://base/profiler/OWNERS -------------------------------------------------------------------------------- /rust/std/fake_root/README.md: -------------------------------------------------------------------------------- 1 | This package is used to discover the libstd deps using `cargo metadata`. gnrt 2 | uses it when generating libstd GN bindings. 3 | -------------------------------------------------------------------------------- /.clang-tidy: -------------------------------------------------------------------------------- 1 | # TODO(crbug.com/336474469): remove this after enabling the check in parent dir. 2 | InheritParentConfig: true 3 | Checks: misc-include-cleaner 4 | -------------------------------------------------------------------------------- /.clangd: -------------------------------------------------------------------------------- 1 | # TODO(crbug.com/336474469): remove this after enabling the check in parent dir. 2 | Diagnostics: 3 | UnusedIncludes: Strict 4 | MissingIncludes: Strict 5 | -------------------------------------------------------------------------------- /rust/std/DEPS: -------------------------------------------------------------------------------- 1 | include_rules = [ 2 | "-base", 3 | ] 4 | 5 | specific_include_rules = { 6 | "remap_alloc.cc" : [ 7 | "+partition_alloc" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # This file is just here so that `git blame` works on 2 | # checkouts of the standalone build repo, automatically 3 | # generated from this subdirectory. 4 | -------------------------------------------------------------------------------- /.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | 4 | # New directories should use a .style.yapf that does not include the following: 5 | column_limit = 80 6 | indent_width = 2 7 | -------------------------------------------------------------------------------- /android/gyp/util/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/base/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/dex/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/gtest/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/junit/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/local/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /config/siso/OWNERS: -------------------------------------------------------------------------------- 1 | # All current members of the Chrome Build Team. 2 | jwata@google.com 3 | philwo@google.com 4 | richardwa@google.com 5 | tikuta@chromium.org 6 | ukai@google.com 7 | -------------------------------------------------------------------------------- /skia_gold_common/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/android/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/hostside/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/output/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/results/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /rust/std/fake_root/src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/incremental_install/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/instrumentation/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/local/device/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/local/emulator/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/local/machine/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /fuchsia/COMMON_METADATA: -------------------------------------------------------------------------------- 1 | monorail: { 2 | component: "Fuchsia" 3 | } 4 | team_email: "fuchsia-dev@chromium.org" 5 | os: FUCHSIA 6 | buganizer_public: { 7 | component_id: 1456675 8 | } 9 | -------------------------------------------------------------------------------- /android/pylib/local/emulator/proto/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2019 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /android/pylib/results/presentation/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /toolchain/remoteexec_defaults.gni: -------------------------------------------------------------------------------- 1 | # rbe.gni and autoninja.py will read this file to get the default 2 | # value of use_reclient. 3 | use_reclient_on_siso = false 4 | use_reclient_on_ninja = true 5 | -------------------------------------------------------------------------------- /linux/unbundle/absl_crc.gn: -------------------------------------------------------------------------------- 1 | source_set("crc32c_test") { 2 | } 3 | source_set("crc_cord_state_test") { 4 | } 5 | source_set("crc_memcpy_test") { 6 | } 7 | source_set("non_temporal_memcpy_test") { 8 | } 9 | -------------------------------------------------------------------------------- /rust/std/fake_root/.cargo/config.toml.template: -------------------------------------------------------------------------------- 1 | [source.crates-io] 2 | replace-with = 'vendored-sources' 3 | 4 | [source.vendored-sources] 5 | directory = '../../../../RUST_SRC_ROOT/library/vendor' 6 | -------------------------------------------------------------------------------- /android/pylib/results/flakiness_dashboard/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /ios/test_data/extra.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/*.css 6 | -------------------------------------------------------------------------------- /linux/libncursesw/DIR_METADATA: -------------------------------------------------------------------------------- 1 | monorail: { 2 | component: "Internals>Accessibility" 3 | } 4 | team_email: "chromium-accessibility@chromium.org" 5 | buganizer_public: { 6 | component_id: 1456313 7 | } 8 | -------------------------------------------------------------------------------- /noop.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | """Script that does nothing successfully.""" 5 | -------------------------------------------------------------------------------- /rust/tests/test_rlib_crate_testonly/crate/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /ios/test_data/basic.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/subdirectory/* 6 | -------------------------------------------------------------------------------- /ios/test_data/different_local_path.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | ** 6 | -**list 7 | -------------------------------------------------------------------------------- /ios/test_data/reorder.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/** 6 | -test_data/**list 7 | -------------------------------------------------------------------------------- /rust/tests/test_bin_crate/crate/src/more.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn hello() {} 6 | -------------------------------------------------------------------------------- /rust/tests/test_rlib_crate_testonly/crate/build.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /ios/test_data/exclusions.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/** 6 | -test_data/**list 7 | -------------------------------------------------------------------------------- /rust/chromium_prelude/import_test_lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn import_test_lib() {} 6 | -------------------------------------------------------------------------------- /toolchain/apple/swift_const_gather_protocols.json: -------------------------------------------------------------------------------- 1 | ["AppIntent","EntityQuery","AppEntity","TransientEntity","AppEnum","AppShortcutProviding","AppShortcutsProvider","AnyResolverProviding","AppIntentsPackage","DynamicOptionsProvider"] -------------------------------------------------------------------------------- /rust/tests/test_rlib_crate_testonly/crate/src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn main() {} 6 | -------------------------------------------------------------------------------- /android/native_flags/empty.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // This file just needs to exist to appease GN. 6 | -------------------------------------------------------------------------------- /util/lib/proto/README.md: -------------------------------------------------------------------------------- 1 | # Step to generate/update \*\_pb2.py stubs from proto 2 | 3 | 1. Install `protoc` if it is not in the `$PATH` 4 | 2. From this dir, Run the command `protoc --python_out=. *.proto` to generate 5 | python stubs 6 | -------------------------------------------------------------------------------- /sanitize-mac-build-log.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2010 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | sed -r -f `dirname "${0}"`/`basename "${0}" sh`sed 6 | -------------------------------------------------------------------------------- /sanitize-win-build-log.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2010 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | sed -r -f `dirname "${0}"`/`basename "${0}" sh`sed 6 | -------------------------------------------------------------------------------- /linux/unbundle/vulkan_memory_allocator.gn: -------------------------------------------------------------------------------- 1 | config("vulkan_memory_allocator_config") { 2 | libs = [ "VulkanMemoryAllocator" ] 3 | } 4 | 5 | source_set("vulkan_memory_allocator") { 6 | public_configs = [ ":vulkan_memory_allocator_config" ] 7 | } 8 | -------------------------------------------------------------------------------- /fuchsia/test/.coveragerc: -------------------------------------------------------------------------------- 1 | # .coveragerc to control coverage.py 2 | 3 | [report] 4 | # Regexes for lines to exclude from consideration 5 | exclude_lines = 6 | # Don't complain if non-runnable code isn't run: 7 | if __name__ == .__main__.: 8 | 9 | -------------------------------------------------------------------------------- /linux/unbundle/libsecret.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | 3 | pkg_config("libsecret_config") { 4 | packages = [ "libsecret-1" ] 5 | } 6 | 7 | source_set("libsecret") { 8 | public_configs = [ ":libsecret_config" ] 9 | } 10 | -------------------------------------------------------------------------------- /rust/tests/test_simple_rust_exe/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | fn main() { 6 | println!("Hello, world!"); 7 | } 8 | -------------------------------------------------------------------------------- /ios/test_data/outside_globlist_dir.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/subdirectory/* 6 | presubmit_support_test.py 7 | -------------------------------------------------------------------------------- /ios/test_data/repository_relative.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | //build/ios/test_data/** 6 | -//build/ios/test_data/**list 7 | -------------------------------------------------------------------------------- /config/rts.gni: -------------------------------------------------------------------------------- 1 | declare_args() { 2 | # Regression Test Selection (RTS) will use a ML model 3 | # to predict what test cases can be excluded from a 4 | # given test suite based on historical data when using 5 | # a .filter file. 6 | use_rts = false 7 | } 8 | -------------------------------------------------------------------------------- /install-build-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | # Copyright 2012 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | exec "$(cd $(dirname $0) && pwd)/install-build-deps.py" "$@" 8 | -------------------------------------------------------------------------------- /ios/test_data/comment.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Some comment followed by an empty line. 6 | 7 | test_data/subdirectory/* 8 | -------------------------------------------------------------------------------- /sample_arg_file.gn: -------------------------------------------------------------------------------- 1 | # Build arguments go here. Here are some of the most commonly set ones. 2 | # Run `gn args --list` for the full list. 3 | # is_component_build = true 4 | # is_debug = true 5 | # symbol_level = 2 6 | # use_remoteexec = false 7 | -------------------------------------------------------------------------------- /gn_editor: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2023 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | base_dir=$(dirname "$0") 7 | 8 | exec python3 "$base_dir/gn_ast/gn_editor.py" "$@" 9 | -------------------------------------------------------------------------------- /android/gyp/aar.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/aar.pydeps build/android/gyp/aar.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | aar.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /rust/tests/test_rlib_crate/crate/src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn main() { 6 | test_rlib_crate::say_hello_from_crate(); 7 | } 8 | -------------------------------------------------------------------------------- /android/gyp/ijar.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/ijar.pydeps build/android/gyp/ijar.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ijar.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /linux/unbundle/crc32c.gn: -------------------------------------------------------------------------------- 1 | import("//build/shim_headers.gni") 2 | 3 | shim_headers("crc32c_shim") { 4 | root_path = "src/include" 5 | headers = [ "crc32c/crc32c.h" ] 6 | } 7 | 8 | source_set("crc32c") { 9 | deps = [ ":crc32c_shim" ] 10 | libs = [ "crc32c" ] 11 | } 12 | -------------------------------------------------------------------------------- /android/pylib/local/machine/local_machine_hostside_tradefed_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /config/cuttlefish/buildflags.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # True if building Cuttlefish devices. 7 | is_cuttlefish = false 8 | } 9 | -------------------------------------------------------------------------------- /config/fuchsia/test/OWNERS: -------------------------------------------------------------------------------- 1 | file://build/fuchsia/OWNERS 2 | 3 | per-file *.test-cml=set noparent 4 | per-file *.test-cml=ddorwin@chromium.org 5 | per-file *.test-cml=wez@chromium.org 6 | # Please prefer the above when possible. 7 | per-file *.test-cml=file://build/fuchsia/SECURITY_OWNERS 8 | -------------------------------------------------------------------------------- /config/fuchsia/test/chromium_test_facet.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | facets: { 6 | "fuchsia.test": { type: "chromium" }, 7 | }, 8 | } 9 | -------------------------------------------------------------------------------- /config/unwind.gni: -------------------------------------------------------------------------------- 1 | import("//build_overrides/build.gni") 2 | 3 | declare_args() { 4 | # Use in-tree libunwind (buildtools/third_party/libunwind) instead of whatever 5 | # system library provides unwind symbols (e.g. libgcc). 6 | use_custom_libunwind = is_fuchsia || is_android 7 | } 8 | -------------------------------------------------------------------------------- /android/gyp/copy_ex.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/copy_ex.pydeps build/android/gyp/copy_ex.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | copy_ex.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /protoc_java.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build --output build/protoc_java.pydeps build/protoc_java.py 3 | action_helpers.py 4 | android/gyp/util/__init__.py 5 | android/gyp/util/build_utils.py 6 | gn_helpers.py 7 | protoc_java.py 8 | zip_helpers.py 9 | -------------------------------------------------------------------------------- /rust/tests/test_rust_metadata/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | extern "C" void print_foo_bar(); 6 | 7 | int main() { 8 | print_foo_bar(); 9 | } 10 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/B.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test.missing_symbol; 6 | 7 | public class B { 8 | public void foo() {} 9 | } 10 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test_with_cpp_linkage/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | extern "C" void rust_main(); 6 | 7 | int main() { 8 | rust_main(); 9 | } 10 | -------------------------------------------------------------------------------- /android/gyp/zip.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/zip.pydeps build/android/gyp/zip.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | util/__init__.py 7 | util/build_utils.py 8 | zip.py 9 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/D.template: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test.missing_symbol; 6 | 7 | public class D { 8 | public void foo() {} 9 | } 10 | -------------------------------------------------------------------------------- /config/fuchsia/test/chromium_system_test_facet.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | facets: { 6 | "fuchsia.test": { type: "chromium-system" }, 7 | }, 8 | } 9 | -------------------------------------------------------------------------------- /android/gyp/aidl.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/aidl.pydeps build/android/gyp/aidl.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | aidl.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/system_image_apks.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/system_image_apks.pydeps build/android/gyp/system_image_apks.py 3 | ../../gn_helpers.py 4 | system_image_apks.py 5 | util/__init__.py 6 | util/build_utils.py 7 | -------------------------------------------------------------------------------- /config/chromebox_for_meetings/buildflags.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # True if compiling for Chromebox for Meeting devices. 7 | is_cfm = false 8 | } 9 | -------------------------------------------------------------------------------- /ios/test_data/missing.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This should cover every file in test_data/ and its subdirectories (including 6 | # test files). 7 | 8 | test_data/** 9 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/sub/SubB.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test.missing_symbol.sub; 6 | 7 | public class SubB { 8 | public void foo() {} 9 | } 10 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/v1/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn say_hello_from_v1() { 6 | println!("Hello, world - from lib version 1"); 7 | } 8 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/v2/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn say_hello_from_v2() { 6 | println!("Hello, world - from lib version 2"); 7 | } 8 | -------------------------------------------------------------------------------- /ios/test_data/duplicates.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/subdirectory/* 6 | # This duplicate glob should have no effect on the resulting filelist. 7 | test_data/subdirectory/* 8 | -------------------------------------------------------------------------------- /ios/test_data/ignore_outside_globlist_dir.globlist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | test_data/subdirectory/* 6 | # push(ignore-relative) 7 | presubmit_support_test.py 8 | # pop(ignore-relative) 9 | -------------------------------------------------------------------------------- /config/get_host_byteorder.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright 2017 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | """Get Byteorder of host architecture""" 7 | 8 | 9 | import sys 10 | 11 | print(sys.byteorder) 12 | -------------------------------------------------------------------------------- /linux/sysroot_scripts/sysroot.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that 3 | # can be found in the LICENSE file. 4 | 5 | # This file was generated by 6 | # build/linux/sysroot_scripts/build_and_upload.py 7 | 8 | cr_sysroot_key = "20250129T203412Z-1" 9 | -------------------------------------------------------------------------------- /rust/cxx_version.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # The version of cxx under //third_party/rust/chromium_crates_io/vendor. 6 | # Update this whenever cxx is rolled. 7 | cxx_version = "1.0.150" 8 | -------------------------------------------------------------------------------- /android/OWNERS: -------------------------------------------------------------------------------- 1 | agrieve@chromium.org 2 | bjoyce@chromium.org 3 | mheikal@chromium.org 4 | pasko@chromium.org 5 | smaier@chromium.org 6 | wnwen@chromium.org 7 | 8 | per-file generate_vscode_classpath.py=edechamps@google.com 9 | per-file test_runner.py=hypan@google.com 10 | per-file test_runner_test.py=hypan@google.com 11 | -------------------------------------------------------------------------------- /android/gyp/bytecode_rewriter.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/bytecode_rewriter.pydeps build/android/gyp/bytecode_rewriter.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | bytecode_rewriter.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/filter_zip.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/filter_zip.pydeps build/android/gyp/filter_zip.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | filter_zip.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/flatc_java.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/flatc_java.pydeps build/android/gyp/flatc_java.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | flatc_java.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /android/junit/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | Hello World 8 | 9 | -------------------------------------------------------------------------------- /config/fuchsia/config.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | assert(is_fuchsia) 6 | 7 | # Compute the path to the arch-specific boot image directory. 8 | boot_image_root = "//third_party/fuchsia-sdk/images/" 9 | -------------------------------------------------------------------------------- /android/gyp/jacoco_instr.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/jacoco_instr.pydeps build/android/gyp/jacoco_instr.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | jacoco_instr.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/optimize_resources.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/optimize_resources.pydeps build/android/gyp/optimize_resources.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | optimize_resources.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/rename_java_classes.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/rename_java_classes.pydeps build/android/gyp/rename_java_classes.py 3 | ../../gn_helpers.py 4 | ../../zip_helpers.py 5 | rename_java_classes.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/assert_static_initializers.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/assert_static_initializers.pydeps build/android/gyp/assert_static_initializers.py 3 | ../../gn_helpers.py 4 | assert_static_initializers.py 5 | util/__init__.py 6 | util/build_utils.py 7 | -------------------------------------------------------------------------------- /android/gyp/lint.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/lint.pydeps build/android/gyp/lint.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | lint.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/manifest_utils.py 9 | util/server_utils.py 10 | -------------------------------------------------------------------------------- /rust/tests/test_aliased_deps/real_name.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn hello_world() { 6 | println!("hello world"); 7 | } 8 | 9 | pub fn add(a: u32, b: u32) -> u32 { 10 | a + b 11 | } 12 | -------------------------------------------------------------------------------- /util/chromium_git_revision.h.in: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // chromium_git_revision.h is generated from chromium_git_revision.h.in. Edit 6 | // the source! 7 | 8 | #define CHROMIUM_GIT_REVISION "@@LASTCHANGE@" 9 | -------------------------------------------------------------------------------- /android/gyp/create_apk_operations_script.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_apk_operations_script.pydeps build/android/gyp/create_apk_operations_script.py 3 | ../../gn_helpers.py 4 | create_apk_operations_script.py 5 | util/__init__.py 6 | util/build_utils.py 7 | -------------------------------------------------------------------------------- /android/gyp/gcc_preprocess.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/gcc_preprocess.pydeps build/android/gyp/gcc_preprocess.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | gcc_preprocess.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/merge_manifest.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/merge_manifest.pydeps build/android/gyp/merge_manifest.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | merge_manifest.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/manifest_utils.py 9 | -------------------------------------------------------------------------------- /android/gradle/manifest.jinja: -------------------------------------------------------------------------------- 1 | {# Copyright 2017 The Chromium Authors #} 2 | {# Use of this source code is governed by a BSD-style license that can be #} 3 | {# found in the LICENSE file. #} 4 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /android/gyp/dist_aar.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/dist_aar.pydeps build/android/gyp/dist_aar.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | dist_aar.py 7 | filter_zip.py 8 | util/__init__.py 9 | util/build_utils.py 10 | -------------------------------------------------------------------------------- /android/gyp/tracereferences.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/tracereferences.pydeps build/android/gyp/tracereferences.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | tracereferences.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/server_utils.py 9 | -------------------------------------------------------------------------------- /config/fuchsia/test/mark_vmo_executable.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | use: [ 6 | { 7 | protocol: [ 8 | "fuchsia.kernel.VmexResource", 9 | ], 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /rust/tests/test_aliased_deps/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub use other_name; 6 | 7 | #[cfg(test)] 8 | #[test] 9 | fn test_add_from_renamed_dep() { 10 | assert_eq!(other_name::add(2, 3), 5); 11 | } 12 | -------------------------------------------------------------------------------- /rust/tests/test_build_rs_target_arch_x86/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // Empty `lib.rs` file - the real test is whether `build.rs` gets the expected 6 | // `CARGO_CFG_TARGET_ARCH` value (it will panic otherwise). 7 | -------------------------------------------------------------------------------- /android/gyp/binary_baseline_profile.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/binary_baseline_profile.pydeps build/android/gyp/binary_baseline_profile.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | binary_baseline_profile.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/create_test_apk_wrapper_script.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_test_apk_wrapper_script.pydeps build/android/gyp/create_test_apk_wrapper_script.py 3 | ../../gn_helpers.py 4 | create_test_apk_wrapper_script.py 5 | util/__init__.py 6 | util/build_utils.py 7 | -------------------------------------------------------------------------------- /android/gyp/process_native_prebuilt.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/process_native_prebuilt.pydeps build/android/gyp/process_native_prebuilt.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | process_native_prebuilt.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /rust/tests/test_rust_calling_cpp/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/test_rust_calling_cpp/rust_calling_cpp_rlib.rs.h" 6 | 7 | int main() { 8 | rust_calling_cpp(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /android/pylib/gtest/filter/breakpad_unittests_disabled: -------------------------------------------------------------------------------- 1 | FileIDStripTest.StripSelf 2 | # crbug.com/303960 3 | ExceptionHandlerTest.InstructionPointerMemoryNullPointer 4 | # crbug.com/171419 5 | MinidumpWriterTest.MappingInfoContained 6 | # crbug.com/310088 7 | MinidumpWriterTest.MinidumpSizeLimit 8 | # crbug.com/375838 9 | ElfCoreDumpTest.ValidCoreFile 10 | -------------------------------------------------------------------------------- /rust/tests/test_aliased_deps/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/test_aliased_deps"; 7 | } 8 | 9 | fn main() { 10 | test_aliased_deps::other_name::hello_world(); 11 | } 12 | -------------------------------------------------------------------------------- /android/android_only_jni_exports.lst: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Linker script that exports only symbols required for JNI to work. 6 | 7 | { 8 | global: 9 | JNI_OnLoad; 10 | Java_*; 11 | local: 12 | *; 13 | }; 14 | -------------------------------------------------------------------------------- /android/gyp/create_java_binary_script.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_java_binary_script.pydeps build/android/gyp/create_java_binary_script.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | create_java_binary_script.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/dex.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/dex.pydeps build/android/gyp/dex.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../print_python_deps.py 6 | ../../zip_helpers.py 7 | dex.py 8 | util/__init__.py 9 | util/build_utils.py 10 | util/md5_check.py 11 | -------------------------------------------------------------------------------- /config/linux/pangocairo/pangocairo.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/chromeos/ui_mode.gni") 6 | import("//build/config/ui.gni") 7 | 8 | declare_args() { 9 | use_pangocairo = is_linux && !is_castos 10 | } 11 | -------------------------------------------------------------------------------- /android/gyp/create_stub_manifest.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_stub_manifest.pydeps build/android/gyp/create_stub_manifest.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | create_stub_manifest.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/manifest_utils.py 9 | -------------------------------------------------------------------------------- /android/pylib/base/mock_environment.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | from pylib.base import environment 7 | 8 | import mock # pylint: disable=import-error 9 | 10 | 11 | MockEnvironment = mock.MagicMock(environment.Environment) 12 | -------------------------------------------------------------------------------- /android/tests/symbolize/b.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | class B { 6 | public: 7 | B(); 8 | void Baz(float f); 9 | void Qux(double d); 10 | }; 11 | 12 | B::B() {} 13 | void B::Baz(float f) {} 14 | void B::Qux(double d) {} 15 | -------------------------------------------------------------------------------- /config/android/test/proto/root/absolute_child.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | message AbsoluteChild {} 11 | -------------------------------------------------------------------------------- /config/android/test/proto/root/relative_child.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | message RelativeChild {} 11 | -------------------------------------------------------------------------------- /precompile.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // Precompiled header generator for Windows builds. No include is needed 6 | // in this file as the PCH include is forced via the "Forced Include File" 7 | // flag in the projects generated by GYP. 8 | -------------------------------------------------------------------------------- /android/adb_profile_chrome: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2013 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | # 7 | # Start / stop profiling in chrome. 8 | CATAPULT_DIR="$(dirname "$0")"/../../third_party/catapult 9 | exec "${CATAPULT_DIR}"/systrace/bin/adb_profile_chrome "$@" 10 | -------------------------------------------------------------------------------- /android/gyp/create_bundle_wrapper_script.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_bundle_wrapper_script.pydeps build/android/gyp/create_bundle_wrapper_script.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | create_bundle_wrapper_script.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/java_cpp_enum.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/java_cpp_enum.pydeps build/android/gyp/java_cpp_enum.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | java_cpp_enum.py 7 | util/__init__.py 8 | util/build_utils.py 9 | util/java_cpp_utils.py 10 | -------------------------------------------------------------------------------- /android/tests/symbolize/a.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | class A { 6 | public: 7 | A(); 8 | void Foo(int i); 9 | void Bar(const char* c); 10 | }; 11 | 12 | A::A() {} 13 | void A::Foo(int i) {} 14 | void A::Bar(const char* c) {} 15 | -------------------------------------------------------------------------------- /config/android/test/proto/absolute_dep/absolute_dep.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | message AbsoluteDep {} 11 | -------------------------------------------------------------------------------- /config/android/test/proto/relative_dep/relative_dep.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | message RelativeDep {} 11 | -------------------------------------------------------------------------------- /config/fuchsia/test/sysmem.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | use: [ 6 | { 7 | protocol: [ 8 | "fuchsia.sysmem.Allocator", 9 | "fuchsia.sysmem2.Allocator", 10 | ], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /android/gyp/apkbuilder.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/apkbuilder.pydeps build/android/gyp/apkbuilder.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | apkbuilder.py 7 | finalize_apk.py 8 | util/__init__.py 9 | util/build_utils.py 10 | util/diff_utils.py 11 | -------------------------------------------------------------------------------- /android/gyp/check_flag_expectations.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/check_flag_expectations.pydeps build/android/gyp/check_flag_expectations.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | check_flag_expectations.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/diff_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/create_size_info_files.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/create_size_info_files.pydeps build/android/gyp/create_size_info_files.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | create_size_info_files.py 6 | util/__init__.py 7 | util/build_utils.py 8 | util/jar_info_utils.py 9 | -------------------------------------------------------------------------------- /android/gyp/trace_event_bytecode_rewriter.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/trace_event_bytecode_rewriter.pydeps build/android/gyp/trace_event_bytecode_rewriter.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | trace_event_bytecode_rewriter.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/pylib/base/mock_test_instance.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | from pylib.base import test_instance 7 | 8 | import mock # pylint: disable=import-error 9 | 10 | 11 | MockTestInstance = mock.MagicMock(test_instance.TestInstance) 12 | -------------------------------------------------------------------------------- /rust/tests/bindgen_test/lib.c: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/bindgen_test/lib.h" 6 | 7 | #include 8 | 9 | COMPONENT_EXPORT uint32_t add_two_numbers(uint32_t a, uint32_t b) { 10 | return a + b; 11 | } 12 | -------------------------------------------------------------------------------- /android/gyp/generate_linker_version_script.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/generate_linker_version_script.pydeps build/android/gyp/generate_linker_version_script.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | generate_linker_version_script.py 6 | util/__init__.py 7 | util/build_utils.py 8 | -------------------------------------------------------------------------------- /android/gyp/java_google_api_keys.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/java_google_api_keys.pydeps build/android/gyp/java_google_api_keys.py 3 | ../../../google_apis/google_api_keys.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | java_google_api_keys.py 7 | util/__init__.py 8 | util/build_utils.py 9 | -------------------------------------------------------------------------------- /rust/tests/test_rs_bindings_from_cc/self_contained_target_header2.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/test_rs_bindings_from_cc/self_contained_target_header2.h" 6 | 7 | int AddViaCc(int x, int y) { 8 | return x + y; 9 | } 10 | -------------------------------------------------------------------------------- /win/use_ansi_codes.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright 2015 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | """Prints if the the terminal is likely to understand ANSI codes.""" 6 | 7 | 8 | import os 9 | 10 | # Add more terminals here as needed. 11 | print('ANSICON' in os.environ) 12 | -------------------------------------------------------------------------------- /android/gyp/java_cpp_strings.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/java_cpp_strings.pydeps build/android/gyp/java_cpp_strings.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | java_cpp_strings.py 7 | util/__init__.py 8 | util/build_utils.py 9 | util/java_cpp_utils.py 10 | -------------------------------------------------------------------------------- /android/java/test/NoSignatureChangeIncrementalJavacTestHelper2.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test; 6 | 7 | public class NoSignatureChangeIncrementalJavacTestHelper2 { 8 | public String bar() { 9 | return "bar"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /config/fuchsia/test/logger.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | use: [ 6 | { protocol: [ "fuchsia.logger.Log" ] }, 7 | { 8 | protocol: "fuchsia.logger.LogSink", 9 | from: "parent/diagnostics", 10 | } 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /linux/unbundle/fontconfig.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | assert(is_linux || is_chromeos) 6 | 7 | config("fontconfig_config") { 8 | libs = [ "fontconfig" ] 9 | } 10 | 11 | group("fontconfig") { 12 | public_configs = [ ":fontconfig_config" ] 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test/cpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/bindgen_cpp_test/cpp.h" 6 | 7 | namespace functions { 8 | 9 | int normal_fn(int i) { 10 | return template_fn(i); 11 | } 12 | 13 | } // namespace functions 14 | -------------------------------------------------------------------------------- /rust/tests/test_proc_macro_crate/crate/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | use proc_macro::TokenStream; 6 | 7 | #[proc_macro] 8 | pub fn calculate_using_proc_macro(_item: TokenStream) -> TokenStream { 9 | "(15 + 15)".parse().unwrap() 10 | } 11 | -------------------------------------------------------------------------------- /rust/tests/test_proc_macro_crate_2/crate/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | use proc_macro::TokenStream; 6 | 7 | #[proc_macro] 8 | pub fn calculate_using_proc_macro(_item: TokenStream) -> TokenStream { 9 | "(15 - 15)".parse().unwrap() 10 | } 11 | -------------------------------------------------------------------------------- /rust/tests/test_rust_calling_cpp/cpp_library.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/test_rust_calling_cpp/cpp_library.h" 6 | 7 | #include 8 | 9 | int32_t mul_by_2_in_cpp_library(int32_t a) { 10 | return a * 2; 11 | } 12 | -------------------------------------------------------------------------------- /android/gyp/java_cpp_features.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/java_cpp_features.pydeps build/android/gyp/java_cpp_features.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | java_cpp_features.py 7 | util/__init__.py 8 | util/build_utils.py 9 | util/java_cpp_utils.py 10 | -------------------------------------------------------------------------------- /android/gyp/write_native_libraries_java.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/write_native_libraries_java.pydeps build/android/gyp/write_native_libraries_java.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../zip_helpers.py 6 | util/__init__.py 7 | util/build_utils.py 8 | write_native_libraries_java.py 9 | -------------------------------------------------------------------------------- /rust/tests/test_rust_static_library_non_standard_arrangement/foo.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub extern "C" fn do_subtract(a: u32, b: u32) -> u32 { 6 | a - b 7 | } 8 | 9 | #[test] 10 | fn test_ok() { 11 | assert_eq!(do_subtract(12, 8), 4) 12 | } 13 | -------------------------------------------------------------------------------- /OWNERS.status: -------------------------------------------------------------------------------- 1 | # Use this file to set a global status message that should be shown whenever 2 | # git cl owners proposes to add you as a reviewer. 3 | # 4 | # The status messages should be somewhat stable, so please don't use this for 5 | # short term, or frequently changing updates. 6 | # 7 | # The format of the file is 8 | # 9 | # you@chromium.org: Single line status message. 10 | # 11 | 12 | -------------------------------------------------------------------------------- /android/adb_profile_chrome_startup: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2016 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | # 7 | # Start / stop profiling for chrome startup. 8 | CATAPULT_DIR="$(dirname "$0")"/../../third_party/catapult 9 | exec "${CATAPULT_DIR}"/systrace/bin/adb_profile_chrome_startup "$@" 10 | -------------------------------------------------------------------------------- /config/siso/README.md: -------------------------------------------------------------------------------- 1 | # Build config for Siso 2 | 3 | This directory contains configurations for 4 | [siso](https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/build/siso/) 5 | build tool. 6 | 7 | Please refer to [the config specifications](https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/build/siso/docs/starlark_config.md) in the Siso repo. 8 | 9 | -------------------------------------------------------------------------------- /linux/unbundle/libxslt.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | 7 | pkg_config("system_libxslt") { 8 | packages = [ "libxslt" ] 9 | } 10 | 11 | source_set("libxslt") { 12 | public_configs = [ ":system_libxslt" ] 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/bindgen_static_fns_test/lib.c: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/bindgen_static_fns_test/lib.h" 6 | 7 | #include 8 | 9 | COMPONENT_EXPORT uint32_t mul_two_numbers(uint32_t a, uint32_t b) { 10 | return a * b; 11 | } 12 | -------------------------------------------------------------------------------- /rust/tests/test_cpp_including_rust/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/test_rust_static_library/src/lib.rs.h" 6 | 7 | int main(int argc, char* argv[]) { 8 | say_hello(); 9 | add_two_ints_via_rust(3, 4); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /android/android_only_explicit_jni_exports.lst: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Linker script that exports only JNI_OnLoad. 6 | # Should be used for libraries that do explicit JNI registration. 7 | 8 | { 9 | global: 10 | JNI_OnLoad; 11 | local: 12 | *; 13 | }; 14 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/ImportsSubB.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test.missing_symbol; 6 | 7 | import test.missing_symbol.sub.SubB; 8 | 9 | public class ImportsSubB { 10 | public ImportsSubB() { 11 | new SubB().foo(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/screenshot.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env vpython3 2 | # Copyright 2015 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | import sys 7 | 8 | import devil_chromium 9 | from devil.android.tools import screenshot 10 | 11 | if __name__ == '__main__': 12 | devil_chromium.Initialize() 13 | sys.exit(screenshot.main()) 14 | -------------------------------------------------------------------------------- /android/gyp/test/BUILD.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/android/rules.gni") 2 | 3 | java_library("hello_world_java") { 4 | sources = [ "java/org/chromium/helloworld/HelloWorldPrinter.java" ] 5 | } 6 | 7 | java_binary("hello_world") { 8 | deps = [ ":hello_world_java" ] 9 | sources = [ "java/org/chromium/helloworld/HelloWorldMain.java" ] 10 | main_class = "org.chromium.helloworld.HelloWorldMain" 11 | } 12 | -------------------------------------------------------------------------------- /android/gyp/test/java/org/chromium/helloworld/HelloWorldPrinter.java: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.helloworld; 6 | 7 | public class HelloWorldPrinter { 8 | public static void print() { 9 | System.out.println("Hello, world!"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /android/incremental_install/third_party/AndroidHiddenApiBypass/stub/src/main/java/stub/dalvik/system/VMRuntime.java: -------------------------------------------------------------------------------- 1 | package stub.dalvik.system; 2 | 3 | @SuppressWarnings("unused") 4 | public class VMRuntime { 5 | public static VMRuntime getRuntime() { 6 | throw new IllegalArgumentException("stub"); 7 | } 8 | public native void setHiddenApiExemptions(String[] signaturePrefixes); 9 | } 10 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/sub/BInMethodSignature.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test.missing_symbol.sub; 6 | 7 | import test.missing_symbol.B; 8 | 9 | public class BInMethodSignature { 10 | public B foo() { 11 | return new B(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/test_rust_metadata/foo_dependency.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // Reexporting the function should also work fine. 6 | pub use transitive_dep::say_something as say_foo_directly; 7 | 8 | pub fn say_foo() -> String { 9 | transitive_dep::say_something() 10 | } 11 | -------------------------------------------------------------------------------- /rust/tests/test_serde_json_lenient/unittests.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/test_serde_json_lenient/lib.rs.h" 6 | #include "testing/gtest/include/gtest/gtest.h" 7 | 8 | TEST(RustTest, SerdeJsonTest) { 9 | EXPECT_EQ(true, serde_works()); 10 | } 11 | -------------------------------------------------------------------------------- /win/segment_heap.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SegmentHeap 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/gyp/proguard.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/proguard.pydeps build/android/gyp/proguard.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../../print_python_deps.py 6 | ../../zip_helpers.py 7 | dex.py 8 | proguard.py 9 | util/__init__.py 10 | util/build_utils.py 11 | util/diff_utils.py 12 | util/md5_check.py 13 | -------------------------------------------------------------------------------- /android/incremental_install/write_installer_json.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/incremental_install --output build/android/incremental_install/write_installer_json.pydeps build/android/incremental_install/write_installer_json.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../gyp/util/__init__.py 6 | ../gyp/util/build_utils.py 7 | write_installer_json.py 8 | -------------------------------------------------------------------------------- /android/java/test/missing_symbol/Importer.template: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package _IMPORTER_PACKAGE; 6 | 7 | import _IMPORTEE_PACKAGE._IMPORTEE_CLASS_NAME; 8 | 9 | public class Importer { 10 | public Importer() { 11 | new _IMPORTEE_CLASS_NAME().foo(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /config/android/sdk.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # The default SDK release used by public builds. Value may differ in 6 | # internal builds. 7 | default_android_sdk_release = "b" 8 | 9 | # SDK releases against which public builds are supported. 10 | public_sdk_releases = [ "b" ] 11 | -------------------------------------------------------------------------------- /config/cuttlefish/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/buildflag_header.gni") 6 | import("//build/config/cuttlefish/buildflags.gni") 7 | 8 | buildflag_header("buildflags") { 9 | header = "buildflags.h" 10 | flags = [ "PLATFORM_CUTTLEFISH=$is_cuttlefish" ] 11 | } 12 | -------------------------------------------------------------------------------- /rust/tests/test_control_flow_guard/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_executable.gni") 6 | 7 | rust_executable("test_control_flow_guard") { 8 | allow_unsafe = true 9 | crate_root = "test_control_flow_guard.rs" 10 | sources = [ crate_root ] 11 | } 12 | -------------------------------------------------------------------------------- /rust/tests/test_rust_metadata/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/test_rust_metadata:lib"; 7 | } 8 | 9 | fn main() { 10 | lib::print_foo_bar(); 11 | println!("{} from re-exported function", lib::say_foo_directly()); 12 | } 13 | -------------------------------------------------------------------------------- /skia_gold_common/README.md: -------------------------------------------------------------------------------- 1 | This directory contains Python code used for interacting with the Skia Gold 2 | image diff service. It is used by multiple test harnesses, e.g. 3 | `//build/android/test_runner.py` and 4 | `//content/test/gpu/run_gpu_integration_test.py`. A place such as 5 | `//testing/` would likely be a better location, but causes issues with 6 | V8 since it imports `//build/` but not all of Chromium src. 7 | -------------------------------------------------------------------------------- /android/video_recorder.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env vpython3 2 | # Copyright 2015 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | import sys 7 | 8 | import devil_chromium 9 | from devil.android.tools import video_recorder 10 | 11 | if __name__ == '__main__': 12 | devil_chromium.Initialize() 13 | sys.exit(video_recorder.main()) 14 | -------------------------------------------------------------------------------- /linux/unbundle/libavif.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_libavif") { 5 | packages = [ "libavif" ] 6 | } 7 | 8 | shim_headers("avif_shim") { 9 | root_path = "src/include" 10 | headers = [ "avif/avif.h" ] 11 | } 12 | 13 | source_set("libavif") { 14 | deps = [ ":avif_shim" ] 15 | public_configs = [ ":system_libavif" ] 16 | } 17 | -------------------------------------------------------------------------------- /linux/unbundle/libusb.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_libusb") { 5 | packages = [ "libusb-1.0" ] 6 | } 7 | 8 | shim_headers("libusb_shim") { 9 | root_path = "src/libusb" 10 | headers = [ "libusb.h" ] 11 | } 12 | 13 | source_set("libusb") { 14 | deps = [ ":libusb_shim" ] 15 | public_configs = [ ":system_libusb" ] 16 | } 17 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test_with_cpp_linkage/cpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "build/rust/tests/bindgen_cpp_test_with_cpp_linkage/cpp.h" 6 | 7 | namespace functions { 8 | 9 | int normal_fn(int i) { 10 | return template_fn(i); 11 | } 12 | 13 | } // namespace functions 14 | -------------------------------------------------------------------------------- /rust/tests/test_rust_unittests/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_unit_test.gni") 6 | 7 | rust_unit_test("test_rust_unittests") { 8 | sources = [ "main.rs" ] 9 | crate_root = "main.rs" 10 | deps = [ "//build/rust/tests/test_rust_static_library" ] 11 | } 12 | -------------------------------------------------------------------------------- /config/chromebox_for_meetings/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/buildflag_header.gni") 6 | import("//build/config/chromebox_for_meetings/buildflags.gni") 7 | 8 | buildflag_header("buildflags") { 9 | header = "buildflags.h" 10 | flags = [ "PLATFORM_CFM=$is_cfm" ] 11 | } 12 | -------------------------------------------------------------------------------- /ios/test_data/basic.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/subdirectory/baz.txt 8 | -------------------------------------------------------------------------------- /rust/tests/test_proc_macro_crate/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("test_proc_macro_crate") { 8 | crate_root = "crate/src/lib.rs" 9 | crate_type = "proc-macro" 10 | sources = [ "crate/src/lib.rs" ] 11 | epoch = "0.2" 12 | } 13 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/transitive_lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // To mimic third-party, the `test_lib` crate has a short name which does not 6 | // need to be import!ed. 7 | 8 | pub fn transitively_say_hello() { 9 | test_lib::say_hello_from_v2(); 10 | } 11 | -------------------------------------------------------------------------------- /android/pylib/gtest/filter/base_unittests_emulator_additional_disabled: -------------------------------------------------------------------------------- 1 | # Additional list of suppressions from emulator 2 | # 3 | # Automatically generated by run_tests.py 4 | PathServiceTest.Get 5 | SharedMemoryTest.OpenClose 6 | StringPrintfTest.StringAppendfInt 7 | StringPrintfTest.StringAppendfString 8 | StringPrintfTest.StringPrintfBounds 9 | StringPrintfTest.StringPrintfMisc 10 | VerifyPathControlledByUserTest.Symlinks 11 | -------------------------------------------------------------------------------- /config/loongarch64.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/v8_target_cpu.gni") 6 | 7 | if (current_cpu == "loong64") { 8 | declare_args() { 9 | # LOONGARCH64 SIMD Arch compilation flag. 10 | loongarch64_use_lsx = false 11 | loongarch64_use_lasx = false 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/test_data/duplicates.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/subdirectory/baz.txt 8 | -------------------------------------------------------------------------------- /rust/tests/bindgen_test/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_test:bindgen_test_lib"; 7 | } 8 | 9 | use bindgen_test_lib::add_two_numbers_in_c; 10 | 11 | fn main() { 12 | println!("{} + {} = {}", 3, 7, add_two_numbers_in_c(3, 7)); 13 | } 14 | -------------------------------------------------------------------------------- /toolchain/kythe.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This file defines configuration for Kythe, an indexer and cross-referencer 6 | # that powers codesearch. 7 | 8 | declare_args() { 9 | # Enables Kythe annotations necessary to build cross references. 10 | enable_kythe_annotations = false 11 | } 12 | -------------------------------------------------------------------------------- /ios/test_data/extra.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/bar.html 8 | test_data/foo.css 9 | -------------------------------------------------------------------------------- /linux/unbundle/libXNVCtrl.gn: -------------------------------------------------------------------------------- 1 | import("//build/shim_headers.gni") 2 | 3 | shim_headers("libXNVCtrl_shim") { 4 | root_path = "../../../../../third_party/libXNVCtrl" 5 | prefix = "NVCtrl/" 6 | headers = [ 7 | "NVCtrl.h", 8 | "NVCtrlLib.h", 9 | "nv_control.h", 10 | ] 11 | } 12 | 13 | source_set("libXNVCtrl") { 14 | deps = [ ":libXNVCtrl_shim" ] 15 | libs = [ 16 | "XNVCtrl", 17 | "xcb", 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /rust/tests/bindgen_test/lib2.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_BINDGEN_TEST_LIB2_H_ 6 | #define BUILD_RUST_TESTS_BINDGEN_TEST_LIB2_H_ 7 | 8 | // This file does nothing, it just tests the include paths when running bindgen. 9 | 10 | #endif // BUILD_RUST_TESTS_BINDGEN_TEST_LIB2_H_ 11 | -------------------------------------------------------------------------------- /rust/tests/test_rust_metadata/transitive_dep.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | pub fn say_something() -> String { 6 | #[cfg(feature = "bar_feature")] 7 | { 8 | "bar".to_string() 9 | } 10 | #[cfg(not(feature = "bar_feature"))] 11 | { 12 | "foo".to_string() 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /win/as_invoker.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /win/common_controls.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /config/android/test/resource_overlay/java/res_template/values/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | {{resource_value}} 10 | -------------------------------------------------------------------------------- /config/cuttlefish/README.md: -------------------------------------------------------------------------------- 1 | # Cuttlefish GN Build Flags 2 | Note: GN Flags are Build time flags 3 | You can get a comprehensive list of all arguments supported by gn by running the 4 | command gn args --list out/some-directory (the directory passed to gn args is 5 | required as gn args will invokes gn gen to generate the build.ninja files). 6 | ## is_cuttlefish (BUILDFLAG(PLATFORM_CUTTLEFISH)) 7 | Flag for building chromium for Cuttlefish devices. 8 | 9 | -------------------------------------------------------------------------------- /linux/unbundle/libjpeg.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # Uses system libjpeg. If true, overrides use_libjpeg_turbo. 7 | use_system_libjpeg = true 8 | 9 | # Uses libjpeg_turbo as the jpeg implementation. Has no effect if 10 | # use_system_libjpeg is set. 11 | use_libjpeg_turbo = true 12 | } 13 | -------------------------------------------------------------------------------- /android/native_flags/argcapture.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright 2021 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | """Writes arguments to a file.""" 6 | 7 | import sys 8 | 9 | 10 | def main(): 11 | with open(sys.argv[1], 'w') as f: 12 | f.write('\n'.join(sys.argv[2:])) 13 | f.write('\n') 14 | 15 | 16 | if __name__ == '__main__': 17 | main() 18 | -------------------------------------------------------------------------------- /android/tests/symbolize/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | TOOLCHAIN=../../../../third_party/android_toolchain/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- 6 | CXX=$(TOOLCHAIN)g++ 7 | 8 | lib%.so: %.cc 9 | $(CXX) -nostdlib -g -fPIC -shared $< -o $@ 10 | 11 | all: liba.so libb.so 12 | -------------------------------------------------------------------------------- /config/fuchsia/test/asan_options.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | program: { 6 | // TODO(crbug.com/40276216): Remove the use of ASAN_OPTIONS once media does 7 | // not load the shared rust library separately. 8 | environ: [ 9 | "ASAN_OPTIONS=detect_odr_violation=0", 10 | ] 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /rust/tests/test_rust_shared_library/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2022 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_shared_library.gni") 6 | 7 | rust_shared_library("test_rust_shared_library") { 8 | allow_unsafe = true 9 | sources = [ "src/lib.rs" ] 10 | cxx_bindings = [ "src/lib.rs" ] 11 | build_native_rust_unit_tests = true 12 | } 13 | -------------------------------------------------------------------------------- /rust/tests/test_rust_static_library/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_static_library.gni") 6 | 7 | rust_static_library("test_rust_static_library") { 8 | allow_unsafe = true 9 | sources = [ "src/lib.rs" ] 10 | cxx_bindings = [ "src/lib.rs" ] 11 | build_native_rust_unit_tests = true 12 | } 13 | -------------------------------------------------------------------------------- /win/require_administrator.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ios/test_data/different_local_path.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | bar.html 8 | foo.css 9 | subdirectory/baz.txt 10 | -------------------------------------------------------------------------------- /android/incremental_install/generate_android_manifest.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/incremental_install --output build/android/incremental_install/generate_android_manifest.pydeps build/android/incremental_install/generate_android_manifest.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../gyp/util/__init__.py 6 | ../gyp/util/build_utils.py 7 | ../gyp/util/manifest_utils.py 8 | generate_android_manifest.py 9 | -------------------------------------------------------------------------------- /config/fuchsia/test/elf_test_runner.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | program: { 6 | runner: "elf_test_runner", 7 | }, 8 | capabilities: [ 9 | { protocol: "fuchsia.test.Suite" }, 10 | ], 11 | expose: [ 12 | { 13 | protocol: "fuchsia.test.Suite", 14 | from: "self", 15 | }, 16 | ], 17 | } 18 | -------------------------------------------------------------------------------- /config/linux/gtk/gtk.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/ui.gni") 6 | 7 | declare_args() { 8 | # Whether or not we should use libgtk. 9 | use_gtk = is_linux && !is_castos 10 | 11 | # The (major) version of GTK to build against. A different version may be 12 | # loaded at runtime. 13 | gtk_version = 3 14 | } 15 | -------------------------------------------------------------------------------- /ios/test_data/outside_globlist_dir.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/subdirectory/baz.txt 8 | presubmit_support_test.py 9 | -------------------------------------------------------------------------------- /rust/tests/test_rust_unittests/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/test_rust_static_library"; 7 | } 8 | 9 | use test_rust_static_library::add_two_ints_via_rust; 10 | 11 | #[test] 12 | fn test_call_into_mixed_static_library() { 13 | assert_eq!(add_two_ints_via_rust(5, 7), 12) 14 | } 15 | -------------------------------------------------------------------------------- /ios/test_data/ignore_outside_globlist_dir.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | presubmit_support_test.py 8 | test_data/subdirectory/baz.txt 9 | -------------------------------------------------------------------------------- /config/ios/entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | application-identifier 6 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 7 | keychain-access-groups 8 | 9 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/test_data/missing.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/bar.html 8 | test_data/foo.css 9 | test_data/subdirectory/baz.txt 10 | -------------------------------------------------------------------------------- /ios/test_data/reorder.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/subdirectory/baz.txt 8 | test_data/foo.css 9 | test_data/bar.html 10 | -------------------------------------------------------------------------------- /rust/tests/test_rust_exe_2/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2025 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_executable.gni") 6 | 7 | rust_executable("test_rust_exe_2") { 8 | crate_root = "main.rs" 9 | sources = [ "main.rs" ] 10 | deps = [ "//build/rust/tests/test_proc_macro_crate_2:test_proc_macro_crate" ] 11 | build_native_rust_unit_tests = true 12 | } 13 | -------------------------------------------------------------------------------- /rust/tests/test_rust_exe_2/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | fn main() { 6 | assert_eq!(test_proc_macro_crate::calculate_using_proc_macro!(), 0); 7 | } 8 | 9 | #[cfg(test)] 10 | mod tests { 11 | #[test] 12 | fn test_proc_macro() { 13 | assert_eq!(test_proc_macro_crate::calculate_using_proc_macro!(), 0) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ios/test_data/exclusions.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | test_data/bar.html 8 | test_data/foo.css 9 | test_data/subdirectory/baz.txt 10 | -------------------------------------------------------------------------------- /rust/tests/test_rust_metadata/tests.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/test_rust_metadata:lib"; 7 | } 8 | 9 | #[test] 10 | fn test_expected_outputs() { 11 | assert_eq!(lib::say_foo(), "foo"); 12 | assert_eq!(lib::say_foo_directly(), "foo"); 13 | assert_eq!(lib::say_something(), "bar"); 14 | } 15 | -------------------------------------------------------------------------------- /android/incremental_install/java/org/chromium/incrementalinstall/SecondInstrumentation.java: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.incrementalinstall; 6 | 7 | import android.app.Instrumentation; 8 | 9 | /** Exists to support an app having multiple instrumentations. */ 10 | public final class SecondInstrumentation extends Instrumentation {} 11 | -------------------------------------------------------------------------------- /config/ios/resources/XCTRunnerAddition+Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | ${BUNDLE_IDENTIFIER} 7 | CFBundleName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | 12 | 13 | -------------------------------------------------------------------------------- /fuchsia/cipd/README.md: -------------------------------------------------------------------------------- 1 | # CIPD recipes 2 | 3 | The `//build/fuchsia/cipd` target generates a number of YAML files that are used to 4 | produce archives that are uploaded to CIPD. The generated YAML files are stored 5 | in the output directory under the path `gen/build/fuchsia/cipd/`. 6 | 7 | ## Example usage 8 | 9 | The most recent package can be discovered by searching for the "canary" ref: 10 | 11 | `$ cipd describe chromium/fuchsia/$PACKAGE_NAME-$TARGET_ARCH -version canary` 12 | -------------------------------------------------------------------------------- /linux/unbundle/woff2.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_woff2") { 5 | packages = [ "libwoff2dec" ] 6 | } 7 | 8 | shim_headers("woff2_shim") { 9 | root_path = "include" 10 | headers = [ 11 | "woff2/decode.h", 12 | "woff2/encode.h", 13 | "woff2/output.h", 14 | ] 15 | } 16 | 17 | source_set("woff2_dec") { 18 | deps = [ ":woff2_shim" ] 19 | public_configs = [ ":system_woff2" ] 20 | } 21 | -------------------------------------------------------------------------------- /rust/bindings.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #[allow(dead_code)] 6 | #[allow(non_snake_case)] 7 | #[allow(non_camel_case_types)] 8 | #[allow(non_upper_case_globals)] 9 | mod bindings { 10 | include!(concat!(env!("OUT_DIR"), "/bindings.rs")); 11 | } 12 | 13 | #[cfg(cpp)] 14 | pub use bindings::root::*; 15 | #[cfg(not(cpp))] 16 | pub use bindings::*; 17 | -------------------------------------------------------------------------------- /config/chromeos/ui_mode.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/chromeos/args.gni") 6 | 7 | declare_args() { 8 | chromeos_is_browser_only = false 9 | } 10 | 11 | # THIS WHOLE FILE WILL BE DELETED. 12 | # Lacros is gone. There is only one kind of ChromeOS build. Use is_chromeos. 13 | is_chromeos_ash = is_chromeos && !chromeos_is_browser_only 14 | -------------------------------------------------------------------------------- /rust/tests/bindgen_static_fns_test/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_static_fns_test:bindgen_static_fns_test_lib"; 7 | } 8 | 9 | use bindgen_static_fns_test_lib::mul_three_numbers_in_c; 10 | 11 | fn main() { 12 | println!("{} * {} * {} = {}", 3, 7, 11, mul_three_numbers_in_c(3, 7, 11)); 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/test_rust_calling_cpp/cpp_library.h: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_TEST_RUST_CALLING_CPP_CPP_LIBRARY_H_ 6 | #define BUILD_RUST_TESTS_TEST_RUST_CALLING_CPP_CPP_LIBRARY_H_ 7 | 8 | #include 9 | 10 | int32_t mul_by_2_in_cpp_library(int32_t a); 11 | 12 | #endif // BUILD_RUST_TESTS_TEST_RUST_CALLING_CPP_CPP_LIBRARY_H_ 13 | -------------------------------------------------------------------------------- /android/incremental_install/third_party/AndroidHiddenApiBypass/local_modifications/org/lsposed/hiddenapibypass/library/BuildConfig.java: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | package org.lsposed.hiddenapibypass.library; 5 | 6 | /** When building with Gradle, this file would be generated. */ 7 | public class BuildConfig { 8 | public static final boolean DEBUG = false; 9 | } 10 | -------------------------------------------------------------------------------- /config/freetype/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/features.gni") 6 | import("//build/config/freetype/freetype.gni") 7 | 8 | group("freetype") { 9 | if (use_system_freetype) { 10 | public_configs = [ "//build/linux:freetype_from_pkgconfig" ] 11 | } else { 12 | public_deps = [ "//third_party:freetype_harfbuzz" ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /config/fuchsia/test/elf_test_ambient_exec_runner.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | program: { 6 | runner: "elf_test_ambient_exec_runner", 7 | }, 8 | capabilities: [ 9 | { protocol: "fuchsia.test.Suite" }, 10 | ], 11 | expose: [ 12 | { 13 | protocol: "fuchsia.test.Suite", 14 | from: "self", 15 | }, 16 | ], 17 | } 18 | -------------------------------------------------------------------------------- /ios/PRESUBMIT.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | PRESUBMIT_VERSION = '2.0.0' 6 | 7 | 8 | TEST_PATTERNS = [r'.+_test.py$'] 9 | 10 | 11 | def CheckUnitTests(input_api, output_api): 12 | # Runs all unit tests under the build/ios folder. 13 | return input_api.canned_checks.RunUnitTestsInDirectory( 14 | input_api, output_api, '.', files_to_check=TEST_PATTERNS) 15 | -------------------------------------------------------------------------------- /android/gyp/validate_static_library_dex_references.pydeps: -------------------------------------------------------------------------------- 1 | # Generated by running: 2 | # build/print_python_deps.py --root build/android/gyp --output build/android/gyp/validate_static_library_dex_references.pydeps build/android/gyp/validate_static_library_dex_references.py 3 | ../../action_helpers.py 4 | ../../gn_helpers.py 5 | ../pylib/__init__.py 6 | ../pylib/dex/__init__.py 7 | ../pylib/dex/dex_parser.py 8 | util/__init__.py 9 | util/build_utils.py 10 | validate_static_library_dex_references.py 11 | -------------------------------------------------------------------------------- /linux/unbundle/absl_memory.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_memory") { 5 | packages = [ "absl_memory" ] 6 | } 7 | 8 | shim_headers("memory_shim") { 9 | root_path = "." 10 | prefix = "absl/memory/" 11 | headers = [ "memory.h" ] 12 | } 13 | 14 | source_set("memory") { 15 | deps = [ ":memory_shim" ] 16 | public_configs = [ ":system_absl_memory" ] 17 | } 18 | 19 | source_set("memory_test") { 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/test_build_rs_target_arch_x86/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("test_build_rs_target_arch_x86") { 8 | crate_name = "test_build_rs_target_arch_x86" 9 | crate_root = "lib.rs" 10 | sources = [ "lib.rs" ] 11 | build_sources = [ "build.rs" ] 12 | build_root = "build.rs" 13 | epoch = "0.1" 14 | } 15 | -------------------------------------------------------------------------------- /rust/tests/test_proc_macro_crate_2/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2025 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Test another proc macro crate of the same name but different epoch. 6 | 7 | import("//build/rust/cargo_crate.gni") 8 | 9 | cargo_crate("test_proc_macro_crate") { 10 | crate_root = "crate/src/lib.rs" 11 | crate_type = "proc-macro" 12 | sources = [ "crate/src/lib.rs" ] 13 | epoch = "0.3" 14 | } 15 | -------------------------------------------------------------------------------- /android/gyp/test/java/org/chromium/helloworld/HelloWorldMain.java: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.helloworld; 6 | 7 | public class HelloWorldMain { 8 | public static void main(String[] args) { 9 | if (args.length > 0) { 10 | System.exit(Integer.parseInt(args[0])); 11 | } 12 | HelloWorldPrinter.print(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /linux/unbundle/absl_cleanup.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_cleanup") { 5 | packages = [ "absl_cleanup" ] 6 | } 7 | 8 | shim_headers("cleanup_shim") { 9 | root_path = "." 10 | prefix = "absl/cleanup/" 11 | headers = [ "cleanup.h" ] 12 | } 13 | 14 | source_set("cleanup") { 15 | deps = [ ":cleanup_shim" ] 16 | public_configs = [ ":system_absl_cleanup" ] 17 | } 18 | 19 | source_set("cleanup_test") { 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_cpp_test:cpp_lib_bindgen"; 7 | } 8 | 9 | pub fn main() { 10 | let from_cpp = 11 | unsafe { cpp_lib_bindgen::functions::normal_fn(cpp_lib_bindgen::functions::kNumber) }; 12 | println!("2 == {from_cpp}"); 13 | assert_eq!(2, from_cpp); 14 | } 15 | -------------------------------------------------------------------------------- /linux/unbundle/absl_utility.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_utility") { 5 | packages = [ "absl_utility" ] 6 | } 7 | 8 | shim_headers("utility_shim") { 9 | root_path = "." 10 | prefix = "absl/utility/" 11 | headers = [ "utility.h" ] 12 | } 13 | 14 | source_set("utility") { 15 | deps = [ ":utility_shim" ] 16 | public_configs = [ ":system_absl_utility" ] 17 | } 18 | 19 | source_set("if_constexpr_test") { 20 | } 21 | -------------------------------------------------------------------------------- /android/junit/AndroidManifest_mergetest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /config/warning_suppression.txt: -------------------------------------------------------------------------------- 1 | # Copyright 2025 The Chromium Project. All rights reserved. 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Warning suppression mappings are listed here on a per-warning basis. 6 | # Upstream docs: https://clang.llvm.org/docs/WarningSuppressionMappings.html 7 | # We'll put the policy here too when it's written. 8 | # Don't use this file until the policy is written. 9 | # See crbug.com/404297941 for more information. 10 | -------------------------------------------------------------------------------- /fuchsia/test/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/python.gni") 6 | 7 | python_library("version") { 8 | data = [ 9 | "//chrome/VERSION", 10 | "version.py", 11 | ] 12 | } 13 | 14 | python_library("gs_util_wrapper") { 15 | data = [ 16 | "//build/find_depot_tools.py", 17 | "//third_party/depot_tools/", 18 | "gs_util_wrapper.py", 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /linux/unbundle/snappy.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/shim_headers.gni") 6 | 7 | shim_headers("snappy_shim") { 8 | root_path = "src" 9 | headers = [ 10 | "snappy-c.h", 11 | "snappy-sinksource.h", 12 | "snappy-stubs-public.h", 13 | "snappy.h", 14 | ] 15 | } 16 | 17 | source_set("snappy") { 18 | deps = [ ":snappy_shim" ] 19 | libs = [ "snappy" ] 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/v1/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("test_lib") { 8 | crate_name = "test_lib" 9 | 10 | # This crate has the same name as v2/test_lib, but a different epoch. The GN 11 | # target for the unit tests should not collide. 12 | epoch = "1" 13 | sources = [ "src/lib.rs" ] 14 | } 15 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/v2/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("test_lib") { 8 | crate_name = "test_lib" 9 | 10 | # This crate has the same name as v1/test_lib, but a different epoch. The GN 11 | # target for the unit tests should not collide. 12 | epoch = "2" 13 | sources = [ "src/lib.rs" ] 14 | } 15 | -------------------------------------------------------------------------------- /android/pylintrc: -------------------------------------------------------------------------------- 1 | [MESSAGES CONTROL] 2 | 3 | disable=abstract-class-not-used,bad-continuation,bad-indentation,duplicate-code,fixme,invalid-name,line-too-long,locally-disabled,locally-enabled,missing-docstring,star-args,too-few-public-methods,too-many-arguments,too-many-branches,too-many-instance-attributes,too-many-lines,too-many-locals,too-many-public-methods,too-many-statements,wrong-import-order,wrong-import-position 4 | 5 | [REPORTS] 6 | 7 | reports=no 8 | 9 | [VARIABLES] 10 | 11 | dummy-variables-rgx=^_.*$|dummy 12 | -------------------------------------------------------------------------------- /check_return_value.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright 2014 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | """This program wraps an arbitrary command and prints "1" if the command ran 7 | successfully.""" 8 | 9 | 10 | import os 11 | import subprocess 12 | import sys 13 | 14 | devnull = open(os.devnull, 'wb') 15 | if not subprocess.call(sys.argv[1:], stdout=devnull, stderr=devnull): 16 | print(1) 17 | else: 18 | print(0) 19 | -------------------------------------------------------------------------------- /ios/test_data/repository_relative.filelist: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | # NOTE: this file is generated by build/ios/update_bundle_filelist.py 5 | # If it requires updating, you should get a presubmit error with 6 | # instructions on how to regenerate. Otherwise, do not edit. 7 | //build/ios/test_data/bar.html 8 | //build/ios/test_data/foo.css 9 | //build/ios/test_data/subdirectory/baz.txt 10 | -------------------------------------------------------------------------------- /util/lastchange.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This file is used to inject fixed dummy commit for commit independent 6 | # reproducible binaries. 7 | 8 | declare_args() { 9 | use_dummy_lastchange = !is_official_build 10 | } 11 | 12 | if (use_dummy_lastchange) { 13 | lastchange_file = "//build/util/LASTCHANGE.dummy" 14 | } else { 15 | lastchange_file = "//build/util/LASTCHANGE" 16 | } 17 | -------------------------------------------------------------------------------- /android/gradle/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 14 | 15 | -------------------------------------------------------------------------------- /config/profiling/profiling.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/compiler/pgo/pgo.gni") 6 | import("//build/config/coverage/coverage.gni") 7 | 8 | declare_args() { 9 | use_clang_profiling = 10 | is_a_target_toolchain && (use_clang_coverage || chrome_pgo_phase == 1) 11 | } 12 | 13 | assert(!use_clang_profiling || is_clang, 14 | "Clang Source-based profiling requires clang.") 15 | -------------------------------------------------------------------------------- /linux/unbundle/absl_meta.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_type_traits") { 5 | packages = [ "absl_type_traits" ] 6 | } 7 | 8 | shim_headers("type_traits_shim") { 9 | root_path = "." 10 | prefix = "absl/meta/" 11 | headers = [ "type_traits.h" ] 12 | } 13 | 14 | source_set("type_traits") { 15 | deps = [ ":type_traits_shim" ] 16 | public_configs = [ ":system_absl_type_traits" ] 17 | } 18 | 19 | source_set("type_traits_test") { 20 | } 21 | -------------------------------------------------------------------------------- /toolchain/get_cpu_count.py: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This script shows cpu count to specify capacity of action pool. 6 | 7 | 8 | import multiprocessing 9 | import sys 10 | 11 | def main(): 12 | try: 13 | cpu_count = multiprocessing.cpu_count() 14 | except: 15 | cpu_count = 1 16 | 17 | print(cpu_count) 18 | return 0 19 | 20 | 21 | if __name__ == '__main__': 22 | sys.exit(main()) 23 | -------------------------------------------------------------------------------- /android/java/test/NewApiLintTest.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test; 6 | 7 | import android.app.Application; 8 | 9 | /** Class which fails 'NewAPI' lint check. */ 10 | public class NewApiLintTest extends Application { 11 | public String testTriggerNewApiCheck() { 12 | // This was added in API level 30. 13 | return getApplicationContext().getAttributionTag(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /chromeos/pylintrc: -------------------------------------------------------------------------------- 1 | [FORMAT] 2 | 3 | max-line-length=80 4 | 5 | [MESSAGES CONTROL] 6 | 7 | disable=abstract-class-not-used,bad-continuation,bad-indentation,duplicate-code,fixme,invalid-name,locally-disabled,locally-enabled,missing-docstring,star-args,too-few-public-methods,too-many-arguments,too-many-branches,too-many-instance-attributes,too-many-lines,too-many-locals,too-many-public-methods,too-many-statements,wrong-import-position 8 | 9 | [REPORTS] 10 | 11 | reports=no 12 | 13 | [VARIABLES] 14 | 15 | dummy-variables-rgx=^_.*$|dummy 16 | -------------------------------------------------------------------------------- /linux/unbundle/absl_time.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_time") { 5 | packages = [ "absl_time" ] 6 | } 7 | 8 | shim_headers("time_shim") { 9 | root_path = "." 10 | prefix = "absl/time/" 11 | headers = [ 12 | "civil_time.h", 13 | "clock.h", 14 | "time.h", 15 | ] 16 | } 17 | 18 | source_set("time") { 19 | deps = [ ":time_shim" ] 20 | public_configs = [ ":system_absl_time" ] 21 | } 22 | 23 | source_set("time_test") { 24 | } 25 | -------------------------------------------------------------------------------- /linux/unbundle/highway.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | import("src/hwy.gni") 4 | 5 | pkg_config("libhwy_external_config") { 6 | packages = [ "libhwy" ] 7 | } 8 | 9 | shim_headers("libhwy_shim") { 10 | root_path = "src" 11 | headers = [] 12 | foreach(header, hwy_public) { 13 | headers += [ rebase_path(header, "./src") ] 14 | } 15 | } 16 | 17 | source_set("libhwy") { 18 | public_configs = [ ":libhwy_external_config" ] 19 | public_deps = [ ":libhwy_shim" ] 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/windows_sys_test/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2022 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_bindgen.gni") 6 | import("//build/rust/rust_executable.gni") 7 | import("//build/rust/rust_static_library.gni") 8 | 9 | rust_executable("windows_sys_test") { 10 | allow_unsafe = true # Calls FFI. 11 | deps = [ "//third_party/rust/windows_sys/v0_52:lib" ] 12 | sources = [ "main.rs" ] 13 | crate_root = "main.rs" 14 | } 15 | -------------------------------------------------------------------------------- /android/pylib/base/test_server.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | class TestServer: 7 | """Base class for any server that needs to be set up for the tests.""" 8 | 9 | def __init__(self, *args, **kwargs): 10 | pass 11 | 12 | def SetUp(self): 13 | raise NotImplementedError 14 | 15 | def Reset(self): 16 | raise NotImplementedError 17 | 18 | def TearDown(self): 19 | raise NotImplementedError 20 | -------------------------------------------------------------------------------- /android/pylib/local/machine/local_machine_environment.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | from pylib.base import environment 6 | 7 | 8 | class LocalMachineEnvironment(environment.Environment): 9 | 10 | def __init__(self, _args, output_manager, _error_func): 11 | super().__init__(output_manager) 12 | 13 | #override 14 | def SetUp(self): 15 | pass 16 | 17 | #override 18 | def TearDown(self): 19 | pass 20 | -------------------------------------------------------------------------------- /sanitize-win-build-log.sed: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # Use this sed script to reduce a Windows build log into something 6 | # machine-parsable. 7 | 8 | # Drop uninformative lines. 9 | /The operation completed successfully\./d 10 | 11 | # Drop parallelization indicators on lines. 12 | s/^[0-9]+>// 13 | 14 | # Shorten bindings generation lines 15 | s/^.*"python".*idl_compiler\.py".*("[^"]+\.idl").*$/ idl_compiler \1/ 16 | -------------------------------------------------------------------------------- /android/pylib/base/output_manager_test_case.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | import os.path 7 | import unittest 8 | 9 | 10 | class OutputManagerTestCase(unittest.TestCase): 11 | 12 | def assertUsableTempFile(self, archived_tempfile): 13 | self.assertTrue(bool(archived_tempfile.name)) 14 | self.assertTrue(os.path.exists(archived_tempfile.name)) 15 | self.assertTrue(os.path.isfile(archived_tempfile.name)) 16 | -------------------------------------------------------------------------------- /apple/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | `//build/apple` contains: 4 | * GN templates and configurations shared by Apple platforms 5 | * Python build scripts shared by Apple platforms 6 | 7 | This directory should only contain templates, configurations and scripts 8 | that are used exclusively on Apple platforms (currently iOS and macOS). 9 | They must also be independent of the specific platform. 10 | 11 | If a template, configuration or script is limited to only iOS or macOS, 12 | then they should instead be located in `//build/ios` or `//build/mac`. 13 | -------------------------------------------------------------------------------- /config/siso/backend_config/README.md: -------------------------------------------------------------------------------- 1 | # Backend config for Siso 2 | 3 | This directory contains backend specific config for 4 | [siso](https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/build/siso/) 5 | build tool. 6 | 7 | User needs to add `backend.star` that provides `backend` module 8 | for `platform_properties` dict. The dict provides platform type 9 | as key (e.g. "default", "large"), and RBE properties (e.g. 10 | "container-image", "OSFamily" etc). 11 | Copy `template.star` to `backend.star` and edit property values. 12 | -------------------------------------------------------------------------------- /rust/tests/test_bin_crate/crate/src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | mod more; 6 | 7 | fn main() { 8 | println!("Hello, world!"); 9 | #[cfg(is_new_rustc)] 10 | println!("Is new rustc!"); 11 | #[cfg(is_old_rustc)] 12 | println!("Is old rustc!"); 13 | #[cfg(is_android)] 14 | println!("Is android!"); 15 | #[cfg(is_mac)] 16 | println!("Is darwin!"); 17 | 18 | more::hello(); 19 | } 20 | -------------------------------------------------------------------------------- /rust/tests/test_rust_multiple_dep_versions_exe/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/test_rust_multiple_dep_versions_exe:transitive_v2"; 7 | } 8 | 9 | // To mimic third-party, the `test_lib` crate has a short name which does not 10 | // need to be import!ed. 11 | 12 | fn main() { 13 | test_lib::say_hello_from_v1(); 14 | transitive_v2::transitively_say_hello(); 15 | } 16 | -------------------------------------------------------------------------------- /linux/unbundle/simdutf.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2025 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | import("//build/shim_headers.gni") 7 | 8 | shim_headers("header") { 9 | root_path = "." 10 | headers = [ "simdutf.h" ] 11 | } 12 | 13 | pkg_config("system_simdutf") { 14 | packages = [ "simdutf" ] 15 | } 16 | 17 | source_set("simdutf") { 18 | public_configs = [ ":system_simdutf" ] 19 | public_deps = [ ":header" ] 20 | } 21 | -------------------------------------------------------------------------------- /linux/unbundle/swiftshader-SPIRV-Headers.gn: -------------------------------------------------------------------------------- 1 | import("//build/shim_headers.gni") 2 | 3 | shim_headers("SPIRV-Headers_shim") { 4 | root_path = "../../../../third_party/SPIRV-Headers/include" 5 | headers = [ 6 | "spirv/unified1/GLSL.std.450.h", 7 | "spirv/unified1/NonSemanticClspvReflection.h", 8 | "spirv/unified1/NonSemanticDebugPrintf.h", 9 | "spirv/unified1/OpenCL.std.h", 10 | "spirv/unified1/spirv.h", 11 | "spirv/unified1/spirv.hpp", 12 | ] 13 | } 14 | 15 | source_set("spv_headers") { 16 | deps = [ ":SPIRV-Headers_shim" ] 17 | } 18 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test_with_cpp_linkage/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_cpp_test_with_cpp_linkage:cpp_lib_bindgen"; 7 | } 8 | 9 | #[no_mangle] 10 | pub fn rust_main() { 11 | let from_cpp = 12 | unsafe { cpp_lib_bindgen::functions::normal_fn(cpp_lib_bindgen::functions::kNumber) }; 13 | println!("2 == {from_cpp}"); 14 | assert_eq!(2, from_cpp); 15 | } 16 | -------------------------------------------------------------------------------- /rust/tests/test_simple_rust_exe/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This should be the simplest possible exe with no dependencies, 6 | # to make it easy to investigate build problems. 7 | # For this reason it uses 'executable' directly rather than 8 | # //build/rust/rust_executable.gni. 9 | executable("test_simple_rust_exe") { 10 | crate_root = "main.rs" 11 | sources = [ crate_root ] 12 | deps = [ "//build/rust/std" ] 13 | } 14 | -------------------------------------------------------------------------------- /config/mac/BuildInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | DTCompiler 6 | ${GCC_VERSION} 7 | DTSDKBuild 8 | ${MAC_SDK_BUILD} 9 | DTSDKName 10 | ${MAC_SDK_NAME} 11 | DTXcode 12 | ${XCODE_VERSION} 13 | DTXcodeBuild 14 | ${XCODE_BUILD} 15 | 16 | 17 | -------------------------------------------------------------------------------- /linux/unbundle/libdrm.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | import("//build/shim_headers.gni") 7 | 8 | pkg_config("system_libdrm") { 9 | packages = [ "libdrm" ] 10 | } 11 | 12 | shim_headers("libdrm_shim") { 13 | root_path = "src/include" 14 | headers = [ "drm.h" ] 15 | } 16 | 17 | source_set("libdrm") { 18 | deps = [ ":libdrm_shim" ] 19 | public_configs = [ ":system_libdrm" ] 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/test_bin_crate/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("test_bin_crate") { 8 | crate_type = "bin" 9 | crate_root = "crate/src/main.rs" 10 | sources = [ 11 | "crate/src/main.rs", 12 | "crate/src/more.rs", 13 | ] 14 | build_sources = [ "crate/build.rs" ] 15 | build_root = "crate/build.rs" 16 | 17 | rustenv = [ "BUILD_SCRIPT_TEST_VARIABLE=123" ] 18 | } 19 | -------------------------------------------------------------------------------- /rust/tests/test_rs_bindings_from_cc/self_contained_target_header1.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER1_H_ 6 | #define BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER1_H_ 7 | 8 | inline int MultiplyViaCc(int x, int y) { 9 | return x * y; 10 | } 11 | 12 | #endif // BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER1_H_ 13 | -------------------------------------------------------------------------------- /config/OWNERS: -------------------------------------------------------------------------------- 1 | per-file ozone.gni=file://ui/ozone/OWNERS 2 | per-file ozone_extra.gni=file://ui/ozone/OWNERS 3 | per-file rust.gni=file://build/rust/OWNERS 4 | per-file cast.gni=file://build/config/chromecast/OWNERS 5 | 6 | per-file unsafe_buffers_paths.txt=arthursonzogni@chromium.org 7 | per-file unsafe_buffers_paths.txt=tsepez@chromium.org 8 | 9 | per-file warning_suppression.txt=dloehr@google.com 10 | per-file warning_suppression.txt=thakis@chromium.org 11 | per-file warning_suppression.txt=hans@chromium.org 12 | per-file warning_suppression.txt=tsepez@chromium.org 13 | -------------------------------------------------------------------------------- /linux/unbundle/absl_hash.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_hash") { 5 | packages = [ "absl_hash" ] 6 | } 7 | 8 | shim_headers("hash_shim") { 9 | root_path = "." 10 | prefix = "absl/hash/" 11 | headers = [ "hash.h" ] 12 | } 13 | 14 | source_set("hash") { 15 | deps = [ ":hash_shim" ] 16 | public_configs = [ ":system_absl_hash" ] 17 | } 18 | 19 | source_set("hash_instantiated_test") { 20 | } 21 | source_set("hash_test") { 22 | } 23 | source_set("low_level_hash_test") { 24 | } 25 | -------------------------------------------------------------------------------- /android/pylib/restart_adbd.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | # Copyright 2014 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | # Android shell script to restart adbd on the device. This has to be run 8 | # atomically as a shell script because stopping adbd prevents further commands 9 | # from running (even if called in the same adb shell). 10 | 11 | trap '' HUP 12 | trap '' TERM 13 | trap '' PIPE 14 | 15 | function restart() { 16 | stop adbd 17 | start adbd 18 | } 19 | 20 | restart & 21 | -------------------------------------------------------------------------------- /config/ios/config.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/apple/mobile_config.gni") 6 | 7 | declare_args() { 8 | # Generate orderfile at application startup and then exit. 9 | # NOTE: This flag adds runtime tooling to capture function call details, 10 | # writes out an orderfile to the documents directory, then terminates the 11 | # application. It should generally NOT be enabled. 12 | ios_chrome_generate_order_file = false 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/test_rust_static_library_non_standard_arrangement/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_static_library.gni") 6 | 7 | rust_static_library("lib") { 8 | sources = [ "foo.rs" ] 9 | crate_root = "foo.rs" 10 | unit_test_target = "foo_tests" 11 | 12 | # TODO(danakj): We should write a gtest binary instead of using native rust 13 | # tests outside of a cargo_crate(). 14 | build_native_rust_unit_tests = true 15 | } 16 | -------------------------------------------------------------------------------- /rust/tests/test_rs_bindings_from_cc/self_contained_target_header2.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER2_H_ 6 | #define BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER2_H_ 7 | 8 | int AddViaCc(int x, int y); 9 | 10 | struct CcPodStruct final { 11 | int value; 12 | }; 13 | 14 | #endif // BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_SELF_CONTAINED_TARGET_HEADER2_H_ 15 | -------------------------------------------------------------------------------- /toolchain/aix/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/toolchain/gcc_toolchain.gni") 6 | 7 | gcc_toolchain("ppc64") { 8 | cc = "gcc" 9 | cxx = "g++" 10 | 11 | readelf = "readelf" 12 | nm = "nm" 13 | ar = "ar" 14 | ld = cxx 15 | 16 | toolchain_args = { 17 | current_cpu = "ppc64" 18 | current_os = "aix" 19 | 20 | # reclient does not support gcc. 21 | use_remoteexec = false 22 | is_clang = false 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /util/lib/common/PRESUBMIT.py: -------------------------------------------------------------------------------- 1 | # Copyright 2015 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | 7 | 8 | def _RunTests(input_api, output_api): 9 | return (input_api.canned_checks.RunUnitTestsInDirectory( 10 | input_api, output_api, '.', files_to_check=[r'.+_test.py$'])) 11 | 12 | 13 | def CheckChangeOnUpload(input_api, output_api): 14 | return _RunTests(input_api, output_api) 15 | 16 | 17 | def CheckChangeOnCommit(input_api, output_api): 18 | return _RunTests(input_api, output_api) 19 | -------------------------------------------------------------------------------- /config/compute_inputs_for_analyze.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # Enable this flag when running "gn analyze". 7 | # 8 | # This causes some gn actions to compute inputs immediately (via exec_script) 9 | # where they would normally compute them only when executed (and write them to 10 | # a depfile). 11 | # 12 | # This flag will slow down GN, but is required for analyze to work properly. 13 | compute_inputs_for_analyze = false 14 | } 15 | -------------------------------------------------------------------------------- /linux/unbundle/absl_algorithm.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_algorithm_container") { 5 | packages = [ "absl_algorithm_container" ] 6 | } 7 | 8 | shim_headers("container_shim") { 9 | root_path = "." 10 | prefix = "absl/algorithm/" 11 | headers = [ "container.h" ] 12 | } 13 | 14 | source_set("container") { 15 | deps = [ ":container_shim" ] 16 | public_configs = [ ":system_absl_algorithm_container" ] 17 | } 18 | 19 | source_set("algorithm_test") { 20 | } 21 | source_set("container_test") { 22 | } 23 | -------------------------------------------------------------------------------- /linux/unbundle/libpng.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | import("//build/shim_headers.gni") 7 | 8 | pkg_config("libpng_config") { 9 | packages = [ "libpng" ] 10 | } 11 | 12 | shim_headers("libpng_shim") { 13 | root_path = "." 14 | headers = [ 15 | "png.h", 16 | "pngconf.h", 17 | ] 18 | } 19 | 20 | source_set("libpng") { 21 | deps = [ ":libpng_shim" ] 22 | public_configs = [ ":libpng_config" ] 23 | } 24 | -------------------------------------------------------------------------------- /rust/tests/bindgen_test/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_test:c_lib_bindgen"; 7 | } 8 | 9 | pub fn add_two_numbers_in_c(a: u32, b: u32) -> u32 { 10 | unsafe { c_lib_bindgen::add_two_numbers(a, b) } 11 | } 12 | 13 | #[cfg(test)] 14 | mod tests { 15 | use super::*; 16 | 17 | #[test] 18 | fn test_add_two_numbers() { 19 | assert_eq!(add_two_numbers_in_c(5, 10), 15); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /config/fuchsia/test/audio_output.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | use: [ 6 | { 7 | protocol: [ 8 | // TODO(crbug.com/40855135): Rather than require the system to provide 9 | // capabilities straight from audio_core, we should run Chromium tests 10 | // against an audio stack with fake device(s). 11 | "fuchsia.media.Audio", 12 | "fuchsia.media.AudioDeviceEnumerator", 13 | ] 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /config/fuchsia/test/network.shard.test-cml: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | { 5 | use: [ 6 | { 7 | directory: "root-ssl-certificates", 8 | rights: [ "r*" ], 9 | path: "/config/ssl", 10 | }, 11 | { 12 | protocol: [ 13 | "fuchsia.device.NameProvider", // Required by FDIO. 14 | "fuchsia.net.interfaces.State", 15 | "fuchsia.net.name.Lookup", 16 | "fuchsia.posix.socket.Provider", 17 | ], 18 | }, 19 | ], 20 | } 21 | -------------------------------------------------------------------------------- /config/linux/libva/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | 7 | assert(is_linux || is_chromeos, "This file should only be referenced on Linux") 8 | 9 | pkg_config("libva") { 10 | packages = [ "libva" ] 11 | 12 | # Do not use exec_script to check the version here. It is done with a 13 | # static_assert instead. 14 | 15 | # vaapi decoders use dlopen pre-sandbox anyway to improve startup times. 16 | ignore_libs = true 17 | } 18 | -------------------------------------------------------------------------------- /config/linux/nss/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | 7 | if (is_linux || is_chromeos) { 8 | # This is a dependency on NSS with no libssl3. On Linux and Chrome OS, we use 9 | # NSS for platform certificate integration. We use our own TLS library, so 10 | # exclude the one from NSS. 11 | pkg_config("nss") { 12 | packages = [ "nss" ] 13 | extra_args = [ 14 | "-v", 15 | "-lssl3", 16 | ] 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /config/mac/mac_sdk_overrides.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | # This file contains arguments that subprojects may choose to override. It 6 | # asserts that those overrides are used, to prevent unused args warnings. 7 | 8 | _sdk_min_from_env = getenv("FORCE_MAC_SDK_MIN") 9 | declare_args() { 10 | # Minimum supported version of the Mac SDK. 11 | if (_sdk_min_from_env == "") { 12 | mac_sdk_min = "10.15" 13 | } else { 14 | mac_sdk_min = _sdk_min_from_env 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /linux/unbundle/vulkan-SPIRV-Headers.gn: -------------------------------------------------------------------------------- 1 | # This shim can only be used if you build Chromium without DAWN 2 | 3 | import("//build/shim_headers.gni") 4 | 5 | shim_headers("vulkan-SPIRV-Headers_shim") { 6 | root_path = "include" 7 | headers = [ 8 | "spirv/unified1/GLSL.std.450.h", 9 | "spirv/unified1/NonSemanticClspvReflection.h", 10 | "spirv/unified1/NonSemanticDebugPrintf.h", 11 | "spirv/unified1/OpenCL.std.h", 12 | "spirv/unified1/spirv.h", 13 | "spirv/unified1/spirv.hpp", 14 | ] 15 | } 16 | 17 | source_set("spv_headers") { 18 | deps = [ ":vulkan-SPIRV-Headers_shim" ] 19 | } 20 | -------------------------------------------------------------------------------- /rust/tests/test_rust_calling_cpp/BUILD.gn: -------------------------------------------------------------------------------- 1 | import("//build/rust/rust_static_library.gni") 2 | 3 | static_library("cpp_library") { 4 | sources = [ 5 | "cpp_library.cc", 6 | "cpp_library.h", 7 | ] 8 | } 9 | 10 | rust_static_library("rust_calling_cpp_rlib") { 11 | sources = [ "rust_calling_cpp_rlib.rs" ] 12 | crate_root = "rust_calling_cpp_rlib.rs" 13 | cxx_bindings = [ "rust_calling_cpp_rlib.rs" ] 14 | allow_unsafe = true 15 | deps = [ ":cpp_library" ] 16 | } 17 | 18 | executable("test_rust_calling_cpp") { 19 | deps = [ ":rust_calling_cpp_rlib" ] 20 | sources = [ "main.cc" ] 21 | } 22 | -------------------------------------------------------------------------------- /android/java/test/DefaultLocaleLintTest.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test; 6 | 7 | import android.app.Application; 8 | 9 | /** Class which fails 'DefaultLocale' lint check. */ 10 | public class DefaultLocaleLintTest extends Application { 11 | public String testTriggerDefaultLocaleCheck(int any) { 12 | // String format with an integer requires a Locale since it may be formatted differently. 13 | return String.format("Test %d", any); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/java/test/NoSignatureChangeIncrementalJavacTestHelper.template: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package test; 6 | 7 | public class NoSignatureChangeIncrementalJavacTestHelper { 8 | private NoSignatureChangeIncrementalJavacTestHelper2 mHelper2 = 9 | new NoSignatureChangeIncrementalJavacTestHelper2(); 10 | 11 | public String foo() { 12 | return "{{foo_return_value}}"; 13 | } 14 | 15 | public String bar() { 16 | return mHelper2.bar(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /config/android/channel.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # The channel to build on Android: stable, beta, dev, canary, work, or 7 | # default. "default" should be used on non-official builds. 8 | android_channel = "default" 9 | } 10 | 11 | assert(android_channel == "default" || android_channel == "canary" || 12 | android_channel == "dev" || android_channel == "beta" || 13 | android_channel == "stable", 14 | "Invalid channel: " + android_channel) 15 | -------------------------------------------------------------------------------- /rust/tests/test_rust_calling_cpp/rust_calling_cpp_rlib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #[cxx::bridge] 6 | mod ffi { 7 | extern "Rust" { 8 | fn rust_calling_cpp(); 9 | } 10 | 11 | unsafe extern "C++" { 12 | include!("build/rust/tests/test_rust_calling_cpp/cpp_library.h"); 13 | 14 | fn mul_by_2_in_cpp_library(a: i32) -> i32; 15 | } 16 | } 17 | 18 | #[no_mangle] 19 | pub fn rust_calling_cpp() { 20 | assert_eq!(ffi::mul_by_2_in_cpp_library(3), 6); 21 | } 22 | -------------------------------------------------------------------------------- /android/adb_chrome_public_command_line: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2015 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | # If no flags are given, prints the current Chrome flags. 8 | # 9 | # Otherwise, the given flags are used to REPLACE (not modify) the Chrome 10 | # flags. For example: 11 | # adb_chrome_public_command_line --enable-webgl 12 | # 13 | # To remove all Chrome flags, pass an empty string for the flags: 14 | # adb_chrome_public_command_line "" 15 | 16 | exec $(dirname $0)/adb_command_line.py --name chrome-command-line "$@" 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This file is needed for projects that has this directory as a separate Git 2 | # mirror in DEPS. Without it, a lot is wiped and re-downloaded for each sync. 3 | *.pyc 4 | ciopfs 5 | /android/bin 6 | /android/binary_size/apks/**/*.apk 7 | /args/chromeos/*.gni 8 | /args/chromeos/rewrapper* 9 | /config/gclient_args.gni 10 | /cros_cache/ 11 | /Debug 12 | /Debug_x64 13 | /fuchsia/internal/ 14 | /ipch/ 15 | /Release 16 | /Release_x64 17 | /win_toolchain.json 18 | /util/LASTCHANGE* 19 | /util/support 20 | /x64/ 21 | /linux/debian_*-sysroot/ 22 | /linux/ubuntu_*-sysroot/ 23 | /ios_files 24 | /mac_files 25 | 26 | !/util/LASTCHANGE.dummy 27 | -------------------------------------------------------------------------------- /config/linux/pangocairo/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pangocairo/pangocairo.gni") 6 | import("//build/config/linux/pkg_config.gni") 7 | 8 | if (use_pangocairo) { 9 | pkg_config("pangocairo") { 10 | packages = [ "pangocairo" ] 11 | 12 | # We don't want pkgconfig for pangocairo to explicitly request FreeType to get 13 | # linked, because we control which FreeType to link to. 14 | extra_args = [ 15 | "-v", 16 | "freetype", 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /config/siso/platform.star: -------------------------------------------------------------------------------- 1 | # -*- bazel-starlark -*- 2 | # Copyright 2023 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | """Utilities that fill gap between platforms.""" 6 | 7 | load("@builtin//runtime.star", "runtime") 8 | load("@builtin//struct.star", "module") 9 | 10 | # Python binary name. python3 or python3.exe. 11 | __python_bin = { 12 | # is_windows => python bin 13 | True: "python3.exe", 14 | False: "python3", 15 | }[runtime.os == "windows"] 16 | 17 | platform = module( 18 | "platform", 19 | python_bin = __python_bin, 20 | ) 21 | -------------------------------------------------------------------------------- /rust/tests/bindgen_static_fns_test/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | chromium::import! { 6 | "//build/rust/tests/bindgen_static_fns_test:c_lib_bindgen"; 7 | } 8 | 9 | pub fn mul_three_numbers_in_c(a: u32, b: u32, c: u32) -> u32 { 10 | unsafe { c_lib_bindgen::mul_three_numbers(a, b, c) } 11 | } 12 | 13 | #[cfg(test)] 14 | mod tests { 15 | use super::*; 16 | 17 | #[test] 18 | fn test_mul_three_numbers() { 19 | assert_eq!(mul_three_numbers_in_c(5, 10, 15), 750); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /linux/libpci/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//tools/generate_library_loader/generate_library_loader.gni") 6 | 7 | # This generates a target named "libpci". 8 | generate_library_loader("libpci") { 9 | name = "LibPciLoader" 10 | output_h = "libpci.h" 11 | output_cc = "libpci_loader.cc" 12 | header = "" 13 | 14 | functions = [ 15 | "pci_alloc", 16 | "pci_init", 17 | "pci_cleanup", 18 | "pci_scan_bus", 19 | "pci_fill_info", 20 | "pci_lookup_name", 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /android/java/src/org/chromium/build/annotations/AlwaysInline.java: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.build.annotations; 6 | 7 | import java.lang.annotation.ElementType; 8 | import java.lang.annotation.Retention; 9 | import java.lang.annotation.RetentionPolicy; 10 | import java.lang.annotation.Target; 11 | 12 | /** Tells R8 to always inline the annotated method/constructor. */ 13 | @Target({ElementType.CONSTRUCTOR, ElementType.METHOD}) 14 | @Retention(RetentionPolicy.CLASS) 15 | public @interface AlwaysInline {} 16 | -------------------------------------------------------------------------------- /android/test/nocompile_gn/nocompile_sources.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | default_locale_lint_test_nocompile_sources = 6 | [ "../../java/test/DefaultLocaleLintTest.java" ] 7 | 8 | new_api_lint_test_nocompile_sources = [ "../../java/test/NewApiLintTest.java" ] 9 | 10 | import_child_missing_symbol_test_nocompile_sources = 11 | [ "../../java/test/missing_symbol/ImportsSubB.java" ] 12 | 13 | import_turbine_missing_symbol_test_nocompile_sources = 14 | [ "../../java/test/missing_symbol/sub/BInMethodSignature.java" ] 15 | -------------------------------------------------------------------------------- /rust/tests/test_rust_exe/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_executable.gni") 6 | 7 | rust_executable("test_rust_exe") { 8 | crate_root = "main.rs" 9 | sources = [ "main.rs" ] 10 | deps = [ 11 | "//build/rust/tests/test_proc_macro_crate", 12 | "//build/rust/tests/test_rlib_crate:target1", 13 | "//build/rust/tests/test_rust_static_library", 14 | "//build/rust/tests/test_rust_static_library_non_standard_arrangement:lib", 15 | ] 16 | build_native_rust_unit_tests = true 17 | } 18 | -------------------------------------------------------------------------------- /android/adb_system_webview_command_line: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2013 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | # If no flags are given, prints the current content shell flags. 8 | # 9 | # Otherwise, the given flags are used to REPLACE (not modify) the content shell 10 | # flags. For example: 11 | # adb_system_webview_command_line --enable-webgl 12 | # 13 | # To remove all content shell flags, pass an empty string for the flags: 14 | # adb_system_webview_command_line "" 15 | 16 | exec $(dirname $0)/adb_command_line.py --name webview-command-line "$@" 17 | -------------------------------------------------------------------------------- /android/gtest_apk/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/android/rules.gni") 6 | 7 | android_library("native_test_instrumentation_test_runner_java") { 8 | testonly = true 9 | sources = [ 10 | "java/src/org/chromium/build/gtest_apk/NativeTestInstrumentationTestRunner.java", 11 | "java/src/org/chromium/build/gtest_apk/NativeTestIntent.java", 12 | "java/src/org/chromium/build/gtest_apk/TestStatusIntent.java", 13 | "java/src/org/chromium/build/gtest_apk/TestStatusReceiver.java", 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /android/pylib/device/commands/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/android/rules.gni") 6 | 7 | group("commands") { 8 | data_deps = [ ":chromium_commands_java" ] 9 | } 10 | 11 | android_library("unzip_java") { 12 | jacoco_never_instrument = true 13 | sources = [ "java/src/org/chromium/android/commands/unzip/Unzip.java" ] 14 | } 15 | 16 | dist_dex("chromium_commands_java") { 17 | deps = [ ":unzip_java" ] 18 | output = "$root_build_dir/lib.java/chromium_commands.dex.jar" 19 | data = [ output ] 20 | } 21 | -------------------------------------------------------------------------------- /config/android/test/proto/root/relative_root.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | import "relative_child.proto"; 11 | import "build/config/android/test/proto/absolute_dep/absolute_dep.proto"; 12 | import "relative_dep.proto"; 13 | 14 | message RelativeRoot { 15 | optional RelativeChild relative_child = 1; 16 | optional AbsoluteDep absolute_dep = 2; 17 | optional RelativeDep relative_dep = 3; 18 | } 19 | -------------------------------------------------------------------------------- /cp.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright 2012 The Chromium Authors 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | """Copy a file. 7 | 8 | This module works much like the cp posix command - it takes 2 arguments: 9 | (src, dst) and copies the file with path |src| to |dst|. 10 | """ 11 | 12 | import os 13 | import shutil 14 | import sys 15 | 16 | 17 | def Main(src, dst): 18 | # Use copy instead of copyfile to ensure the executable bit is copied. 19 | return shutil.copy(src, os.path.normpath(dst)) 20 | 21 | 22 | if __name__ == '__main__': 23 | sys.exit(Main(sys.argv[1], sys.argv[2])) 24 | -------------------------------------------------------------------------------- /fuchsia/OWNERS: -------------------------------------------------------------------------------- 1 | # When picking a reviewer for Fuchsia-related OWNERShip, please start by looking 2 | # at git history to find the most relevant owner. The team would appreciate it 3 | # if you would also add chromium-fuchsia-reviews@google.com so that a shadowed 4 | # reviewer is added automatically. Thank you. 5 | 6 | ddorwin@chromium.org 7 | sergeyu@chromium.org 8 | wez@chromium.org 9 | wintermelons@google.com 10 | zijiehe@google.com 11 | 12 | per-file linux_internal.sdk.sha1=chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com 13 | 14 | per-file SECURITY_OWNERS=set noparent 15 | per-file SECURITY_OWNERS=file://build/fuchsia/SECURITY_OWNERS 16 | -------------------------------------------------------------------------------- /util/lib/proto/measure.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env vpython3 2 | 3 | # Copyright 2024 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | """ The base class of all the measurement supported by the metric. """ 7 | 8 | from abc import ABC, abstractmethod 9 | from test_script_metrics_pb2 import TestScriptMetric 10 | 11 | 12 | class Measure(ABC): 13 | 14 | @abstractmethod 15 | def dump(self) -> TestScriptMetric: 16 | """Dumps the data into a TestScriptMetric instance. 17 | 18 | Returns: 19 | TestScriptMetric: A protobuf instance to represent the metric data. 20 | """ 21 | -------------------------------------------------------------------------------- /android/adb_system_webengine_command_line: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2023 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | # If no flags are given, prints the current content shell flags. 8 | # 9 | # Otherwise, the given flags are used to REPLACE (not modify) the content shell 10 | # flags. For example: 11 | # adb_system_webengine_command_line --enable-webgl 12 | # 13 | # To remove all content shell flags, pass an empty string for the flags: 14 | # adb_system_webengine_command_line "" 15 | 16 | exec $(dirname $0)/adb_command_line.py --name weblayer-command-line "$@" 17 | -------------------------------------------------------------------------------- /android/pylib/gtest/filter/base_unittests_disabled: -------------------------------------------------------------------------------- 1 | # List of suppressions 2 | 3 | # Android will not support StackTrace. 4 | StackTrace.* 5 | # 6 | # Sometimes this is automatically generated by run_tests.py 7 | VerifyPathControlledByUserTest.Symlinks 8 | 9 | StringPrintfTest.StringPrintfMisc 10 | StringPrintfTest.StringAppendfString 11 | StringPrintfTest.StringAppendfInt 12 | StringPrintfTest.StringPrintfBounds 13 | # TODO(jrg): Fails on bots. Works locally. Figure out why. 2/6/12 14 | FieldTrialTest.* 15 | # Flaky? 16 | ScopedJavaRefTest.RefCounts 17 | FileTest.MemoryCorruption 18 | MessagePumpEpollTest.QuitOutsideOfRun 19 | ScopedFD.ScopedFDCrashesOnCloseFailure 20 | -------------------------------------------------------------------------------- /util/lib/common/perf_result_data_type.py: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | DEFAULT = 'default' 6 | UNIMPORTANT = 'unimportant' 7 | HISTOGRAM = 'histogram' 8 | UNIMPORTANT_HISTOGRAM = 'unimportant-histogram' 9 | INFORMATIONAL = 'informational' 10 | 11 | ALL_TYPES = [DEFAULT, UNIMPORTANT, HISTOGRAM, UNIMPORTANT_HISTOGRAM, 12 | INFORMATIONAL] 13 | 14 | 15 | def IsValidType(datatype): 16 | return datatype in ALL_TYPES 17 | 18 | 19 | def IsHistogram(datatype): 20 | return (datatype == HISTOGRAM or datatype == UNIMPORTANT_HISTOGRAM) 21 | -------------------------------------------------------------------------------- /android/java/src/org/chromium/build/annotations/NullMarked.java: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.build.annotations; 6 | 7 | import java.lang.annotation.ElementType; 8 | import java.lang.annotation.Retention; 9 | import java.lang.annotation.RetentionPolicy; 10 | import java.lang.annotation.Target; 11 | 12 | /** Ensures the annotated class or method is checked by NullAway. */ 13 | @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR}) 14 | @Retention(RetentionPolicy.CLASS) 15 | public @interface NullMarked {} 16 | -------------------------------------------------------------------------------- /sanitizers/dlcloseshim.c: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // In due course we may need to replicate more of the complexity from 6 | // base/allocator/partition_allocator/src/partition_alloc/ 7 | // shim/allocator_shim_internals.h 8 | // but as we're targeting just libfuzzer Linux builds, perhaps we don't need 9 | // it. 10 | 11 | #if defined(__clang__) 12 | __attribute__((visibility("default"), noinline)) 13 | #endif 14 | void __wrap_dlclose(void *handle) { 15 | // Do nothing. We don't want to call the real dlclose on libfuzzer builds. 16 | } 17 | -------------------------------------------------------------------------------- /android/java/src/org/chromium/build/annotations/NullUnmarked.java: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.build.annotations; 6 | 7 | import java.lang.annotation.ElementType; 8 | import java.lang.annotation.Retention; 9 | import java.lang.annotation.RetentionPolicy; 10 | import java.lang.annotation.Target; 11 | 12 | /** Ensures the annotated class or method is not checked by NullAway. */ 13 | @Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR}) 14 | @Retention(RetentionPolicy.CLASS) 15 | public @interface NullUnmarked {} 16 | -------------------------------------------------------------------------------- /config/linux/dbus/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/buildflag_header.gni") 6 | import("//build/config/features.gni") 7 | import("//build/config/linux/pkg_config.gni") 8 | 9 | buildflag_header("buildflags") { 10 | header = "buildflags.h" 11 | flags = [ "USE_DBUS=$use_dbus" ] 12 | } 13 | 14 | if (use_dbus) { 15 | # Note: if your target also depends on //dbus, you don't need to add this 16 | # config (it will get added automatically if you depend on //dbus). 17 | pkg_config("dbus") { 18 | packages = [ "dbus-1" ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /rust/tests/test_rs_bindings_from_cc/target_depending_on_another.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_TARGET_DEPENDING_ON_ANOTHER_H_ 6 | #define BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_TARGET_DEPENDING_ON_ANOTHER_H_ 7 | 8 | #include "build/rust/tests/test_rs_bindings_from_cc/self_contained_target_header2.h" 9 | 10 | inline CcPodStruct CreateCcPodStructFromValue(int x) { 11 | return CcPodStruct{.value = x}; 12 | } 13 | 14 | #endif // BUILD_RUST_TESTS_TEST_RS_BINDINGS_FROM_CC_TARGET_DEPENDING_ON_ANOTHER_H_ 15 | -------------------------------------------------------------------------------- /android/pylib/base/output_manager_factory.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | from pylib import constants 7 | from pylib.output import local_output_manager 8 | from pylib.output import remote_output_manager 9 | from pylib.utils import local_utils 10 | 11 | 12 | def CreateOutputManager(args): 13 | if args.local_output or not local_utils.IsOnSwarming(): 14 | return local_output_manager.LocalOutputManager( 15 | output_dir=constants.GetOutDirectory()) 16 | return remote_output_manager.RemoteOutputManager( 17 | bucket=args.gs_results_bucket) 18 | -------------------------------------------------------------------------------- /fuchsia/test/pylintrc: -------------------------------------------------------------------------------- 1 | [MESSAGES CONTROL] 2 | 3 | # Disable the message, report, category or checker with the given id(s). 4 | disable=fixme, 5 | 6 | # fixme 7 | # This complains about TODOs, which are perfectly valid to have. 8 | 9 | # Suppression for invalid-name error for PRESUBMIT.py file. 10 | good-names=i,j,k,f,PRESUBMIT 11 | 12 | [REPORTS] 13 | 14 | reports=no 15 | 16 | [DESIGN] 17 | 18 | # Maximum number of arguments for function / method 19 | max-args=6 20 | 21 | # Maximum number of instance attributes 22 | max-attributes=10 23 | 24 | [FORMAT] 25 | 26 | max-line-length=80 27 | 28 | [SIMILARITIES] 29 | ignore-comments=yes 30 | ignore-docstrings=yes 31 | ignore-imports=yes 32 | -------------------------------------------------------------------------------- /toolchain/cros/cros_config.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # If set, build lacros with Chromium's toolchain instead of with Chrome OS's. 7 | # TODO(thakis): Set this to `= chromeos_is_browser_only` once that works. 8 | lacros_use_chromium_toolchain = false 9 | 10 | # Whether or not the toolchain used to build for ChromeOS needs 11 | # --rewrapper-path and --rewrapper-cfg arguments. 12 | # TODO(crbug.com/356466829): Remove this once we no longer use 13 | # ChromeOS's toolchain. 14 | cros_needs_rewrapper_path_arg = true 15 | } 16 | -------------------------------------------------------------------------------- /util/lib/results/result_types.py: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | """Module containing base test results classes.""" 5 | 6 | # The test passed. 7 | PASS = 'SUCCESS' 8 | 9 | # The test was intentionally skipped. 10 | SKIP = 'SKIPPED' 11 | 12 | # The test failed. 13 | FAIL = 'FAILURE' 14 | 15 | # The test caused the containing process to crash. 16 | CRASH = 'CRASH' 17 | 18 | # The test timed out. 19 | TIMEOUT = 'TIMEOUT' 20 | 21 | # The test ran, but we couldn't determine what happened. 22 | UNKNOWN = 'UNKNOWN' 23 | 24 | # The test did not run. 25 | NOTRUN = 'NOTRUN' 26 | -------------------------------------------------------------------------------- /config/android/test/proto/root/absolute_root.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | syntax = "proto2"; 6 | 7 | package build.config.android.test; 8 | option java_package = "build.config.android.test"; 9 | 10 | import "build/config/android/test/proto/root/absolute_child.proto"; 11 | import "build/config/android/test/proto/absolute_dep/absolute_dep.proto"; 12 | import "relative_dep.proto"; 13 | 14 | message AbsoluteRoot { 15 | optional AbsoluteChild absolute_child = 1; 16 | optional AbsoluteDep absolute_dep = 2; 17 | optional RelativeDep relative_dep = 3; 18 | } 19 | -------------------------------------------------------------------------------- /gn_ast/README.md: -------------------------------------------------------------------------------- 1 | # GN AST 2 | 3 | A Python library for working with GN files via abstract syntax tree (AST). 4 | 5 | ## JNI Refactor Example 6 | 7 | This library was originally created to perform the refactor within 8 | `jni_refactor.py`. The file is left as an example. 9 | 10 | ```sh 11 | # To apply to all files: 12 | find -name BUILD.gn > file-list.txt 13 | # To apply to those that match a pattern: 14 | grep -r --files-with-matches --include "BUILD.gn" "some pattern" > file-list.txt 15 | 16 | # To run one-at-a-time: 17 | for f in $(cat file-list.txt); do python3 jni_refactor.py "$f"; done 18 | # To run in parallel: 19 | parallel python3 jni_refactor.py -- $(cat file-list.txt) 20 | ``` 21 | -------------------------------------------------------------------------------- /toolchain/apple/get_tool_mtime.py: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | 6 | import os 7 | import sys 8 | 9 | # Usage: python get_tool_mtime.py path/to/file1.py path/to/file2.py 10 | # 11 | # Prints a GN scope with the variable name being the basename sans-extension 12 | # and the value being the file modification time. A variable is emitted for 13 | # each file argument on the command line. 14 | 15 | if __name__ == '__main__': 16 | for f in sys.argv[1:]: 17 | variable = os.path.splitext(os.path.basename(f))[0] 18 | print('%s = %d' % (variable, os.path.getmtime(f))) 19 | -------------------------------------------------------------------------------- /android/incremental_install/third_party/AndroidHiddenApiBypass/README.chromium: -------------------------------------------------------------------------------- 1 | Name: AndroidHiddenApiBypass 2 | URL: https://github.com/LSPosed/AndroidHiddenApiBypass 3 | Version: 71aaad4ce558530b4788da67d0e3d9bb3596e9d3 4 | Revision: 71aaad4ce558530b4788da67d0e3d9bb3596e9d3 5 | License: Apache-2.0 6 | License File: LICENSE 7 | Security Critical: no 8 | Shipped: no 9 | 10 | Description: 11 | AndroidHiddenApiBypass enables reflection on APIs that are meant to be guarded 12 | by Android's API Blocklist. 13 | 14 | Local Modifications: 15 | * Removed files related to Gradle. 16 | * Added local_modifications/.../BuildConfig.java to replace what Gradle would 17 | have generated. 18 | * Added BUILD.gn 19 | -------------------------------------------------------------------------------- /android/java/src/org/chromium/build/annotations/OptimizeAsNonNull.java: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.build.annotations; 6 | 7 | import java.lang.annotation.ElementType; 8 | import java.lang.annotation.Retention; 9 | import java.lang.annotation.RetentionPolicy; 10 | import java.lang.annotation.Target; 11 | 12 | /** The annotated method or field is never null. Helps R8 optimize until b/302213229 is implemented. */ 13 | @Target({ElementType.FIELD, ElementType.METHOD}) 14 | @Retention(RetentionPolicy.CLASS) 15 | public @interface OptimizeAsNonNull {} 16 | -------------------------------------------------------------------------------- /rust/tests/windows_sys_test/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | use std::ffi::CString; 6 | use windows_sys::Win32::Storage::FileSystem::{OpenFile, OFSTRUCT}; 7 | 8 | fn main() { 9 | let filename = CString::new("hi").unwrap(); 10 | let mut out = OFSTRUCT { 11 | cBytes: 0, 12 | fFixedDisk: 0, 13 | nErrCode: 0, 14 | Reserved1: 0, 15 | Reserved2: 0, 16 | szPathName: [0; 128], 17 | }; 18 | let ustyle: u32 = 0; 19 | unsafe { OpenFile(filename.as_bytes().as_ptr(), &mut out as *mut OFSTRUCT, ustyle) }; 20 | } 21 | -------------------------------------------------------------------------------- /android/java/src/org/chromium/build/annotations/DoNotStripLogs.java: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.build.annotations; 6 | 7 | import java.lang.annotation.ElementType; 8 | import java.lang.annotation.Retention; 9 | import java.lang.annotation.RetentionPolicy; 10 | import java.lang.annotation.Target; 11 | 12 | /** The annotated method or class will have -maximumremovedandroidloglevel 0 applied to it. */ 13 | @Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE}) 14 | @Retention(RetentionPolicy.CLASS) 15 | public @interface DoNotStripLogs {} 16 | -------------------------------------------------------------------------------- /config/apple/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/apple/symbols.gni") 6 | 7 | # The ldflags referenced below are handled by 8 | # //build/toolchain/apple/linker_driver.py. 9 | # Remove this config if a target wishes to change the arguments passed to the 10 | # strip command during linking. This config by default strips all symbols 11 | # from a binary, but some targets may wish to specify an exports file to 12 | # preserve specific symbols. 13 | config("strip_all") { 14 | if (enable_stripping) { 15 | ldflags = [ "-Wcrl,strip,-x,-S" ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /linux/unbundle/harfbuzz-ng.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | declare_args() { 6 | # Blink uses a cutting-edge version of Harfbuzz (version listed in 7 | # third_party/harfbuzz-ng/README.chromium); most Linux distros do not contain 8 | # a new enough version of the code to work correctly. However, ChromeOS 9 | # chroots (i.e. real ChromeOS builds for devices) do contain a new enough 10 | # version of the library, and so this variable exists so that ChromeOS can 11 | # build against the system lib and keep binary sizes smaller. 12 | use_system_harfbuzz = true 13 | } 14 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test/cpp.h: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_BINDGEN_CPP_TEST_CPP_H_ 6 | #define BUILD_RUST_TESTS_BINDGEN_CPP_TEST_CPP_H_ 7 | 8 | // We use some C++20 stuff to ensure the correct mode is being used. 9 | template 10 | concept AlwaysTrue = true; 11 | 12 | namespace functions { 13 | 14 | inline constexpr int kNumber = 2; 15 | 16 | int template_fn(AlwaysTrue auto i) { 17 | return i; 18 | } 19 | 20 | int normal_fn(int i); 21 | 22 | } // namespace functions 23 | 24 | #endif // BUILD_RUST_TESTS_BINDGEN_CPP_TEST_CPP_H_ 25 | -------------------------------------------------------------------------------- /linux/unbundle/absl_synchronization.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_absl_synchronization") { 5 | packages = [ "absl_synchronization" ] 6 | } 7 | 8 | shim_headers("synchronization_shim") { 9 | root_path = "." 10 | prefix = "absl/synchronization/" 11 | headers = [ 12 | "barrier.h", 13 | "blocking_counter.h", 14 | "mutex.h", 15 | "notification.h", 16 | ] 17 | } 18 | 19 | source_set("synchronization") { 20 | deps = [ ":synchronization_shim" ] 21 | public_configs = [ ":system_absl_synchronization" ] 22 | } 23 | 24 | source_set("kernel_timeout_internal_test") { 25 | } 26 | source_set("waiter_test") { 27 | } 28 | -------------------------------------------------------------------------------- /config/fuchsia/packaged_content_embedder_excluded_dirs.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2022 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/devtools.gni") 6 | 7 | assert(is_fuchsia) 8 | 9 | # List of transitively included directories that should be stripped from 10 | # released packages for size reasons. For use with the |excluded_dirs| variable 11 | # of fuchsia_package(). 12 | FUCHSIA_PACKAGED_CONTENT_EMBEDDER_EXCLUDED_DIRS = [ 13 | # These are mistakenly being shipped in both PAK form and runtime data deps. 14 | # TODO(crbug.com/40203829): Remove when DevTools stops leaking its source list. 15 | devtools_root_location, 16 | ] 17 | -------------------------------------------------------------------------------- /linux/sysroot_scripts/libxcomposite1-symbols: -------------------------------------------------------------------------------- 1 | libXcomposite.so.1 libxcomposite1 #MINVER# 2 | XCompositeCreateRegionFromBorderClip@Base 1:0.4.4-1 3 | XCompositeExtensionInfo@Base 1:0.4.4-1 4 | XCompositeExtensionName@Base 1:0.4.4-1 5 | XCompositeFindDisplay@Base 1:0.4.4-1 6 | XCompositeGetOverlayWindow@Base 1:0.4.4-1 7 | XCompositeNameWindowPixmap@Base 1:0.4.4-1 8 | XCompositeQueryExtension@Base 1:0.4.4-1 9 | XCompositeQueryVersion@Base 1:0.4.4-1 10 | XCompositeRedirectSubwindows@Base 1:0.4.4-1 11 | XCompositeRedirectWindow@Base 1:0.4.4-1 12 | XCompositeReleaseOverlayWindow@Base 1:0.4.4-1 13 | XCompositeUnredirectSubwindows@Base 1:0.4.4-1 14 | XCompositeUnredirectWindow@Base 1:0.4.4-1 15 | XCompositeVersion@Base 1:0.4.4-1 16 | -------------------------------------------------------------------------------- /linux/unbundle/zstd.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | import("//build/shim_headers.gni") 7 | 8 | pkg_config("system_zstd") { 9 | packages = [ "libzstd" ] 10 | } 11 | 12 | shim_headers("zstd_headers") { 13 | root_path = "src/lib" 14 | headers = [ 15 | "zstd.h", 16 | "zstd_errors.h", 17 | ] 18 | } 19 | 20 | source_set("compress") { 21 | public_configs = [ ":system_zstd" ] 22 | public_deps = [ ":zstd_headers" ] 23 | } 24 | source_set("decompress") { 25 | public_configs = [ ":system_zstd" ] 26 | public_deps = [ ":zstd_headers" ] 27 | } 28 | -------------------------------------------------------------------------------- /rust/tests/test_rlib_crate_testonly/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/cargo_crate.gni") 6 | 7 | cargo_crate("testonly_target") { 8 | testonly = true 9 | crate_root = "crate/src/main.rs" 10 | crate_type = "bin" 11 | sources = [ "crate/src/main.rs" ] 12 | build_sources = [ "crate/build.rs" ] 13 | build_root = "crate/build.rs" 14 | build_deps = [ ":testonly_build_dep" ] 15 | } 16 | 17 | cargo_crate("testonly_build_dep") { 18 | testonly = true 19 | crate_name = "test_only_build_dep" 20 | crate_root = "crate/src/lib.rs" 21 | sources = [ "crate/src/lib.rs" ] 22 | } 23 | -------------------------------------------------------------------------------- /android/gradle/cmake.jinja: -------------------------------------------------------------------------------- 1 | {# Copyright 2018 The Chromium Authors #} 2 | {# Use of this source code is governed by a BSD-style license that can be #} 3 | {# found in the LICENSE file. #} 4 | # Generated by //build/android/generate_gradle.py 5 | 6 | cmake_minimum_required(VERSION 3.4.1) 7 | 8 | project(chrome C CXX) 9 | 10 | {% if native.includes is defined %} 11 | include_directories( 12 | {% for path in native.includes %} 13 | {{ path }} 14 | {% endfor %} 15 | ) 16 | {% endif %} 17 | 18 | # Android studio will index faster when adding all sources into one library. 19 | {% if native.sources is defined %} 20 | add_library("chromium" 21 | {% for path in native.sources %} 22 | {{ path }} 23 | {% endfor %} 24 | ) 25 | {% endif %} 26 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2024 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/rust/rust_bindgen.gni") 6 | import("//build/rust/rust_executable.gni") 7 | 8 | source_set("cpp_lib") { 9 | sources = [ 10 | "cpp.cc", 11 | "cpp.h", 12 | ] 13 | } 14 | 15 | rust_bindgen("cpp_lib_bindgen") { 16 | deps = [ ":cpp_lib" ] 17 | header = "cpp.h" 18 | cpp = true 19 | } 20 | 21 | rust_executable("bindgen_cpp_test") { 22 | deps = [ 23 | ":cpp_lib", 24 | ":cpp_lib_bindgen", 25 | ] 26 | sources = [ "main.rs" ] 27 | crate_root = "main.rs" 28 | 29 | allow_unsafe = true # Needed for FFI. 30 | } 31 | -------------------------------------------------------------------------------- /util/lib/proto/count.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env vpython3 2 | 3 | # Copyright 2024 The Chromium Authors 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | """ A metric implementation to count the number of inputs. """ 7 | 8 | from measure import Measure 9 | from test_script_metrics_pb2 import TestScriptMetric 10 | 11 | 12 | class Count(Measure): 13 | 14 | def __init__(self, name: str) -> None: 15 | self._name = name 16 | self._count = 0 17 | 18 | def record(self) -> None: 19 | self._count += 1 20 | 21 | def dump(self) -> TestScriptMetric: 22 | result = TestScriptMetric() 23 | result.name = self._name 24 | result.value = self._count 25 | return result 26 | -------------------------------------------------------------------------------- /android/gyp/proto/README.md: -------------------------------------------------------------------------------- 1 | # Protos 2 | These protos are generated from Resources.proto and Configuration.proto from the 3 | Android repo. They are found in the frameworks/base/tools/aapt2/ directory. To 4 | regenerate these if there are changes, run this command from the root of an 5 | Android checkout: 6 | 7 | protoc --python_out=some_dir frameworks/base/tools/aapt2/Resources.proto \ 8 | frameworks/base/tools/aapt2/Configuration.proto 9 | 10 | Then copy the resulting \*pb2.py files from some_dir here. To make sure 11 | Resources_pb2.py is able to import Configuration_pb2.py, replace the 12 | "from frameworks.base.tools.aapt2" portion of the import statement with 13 | "from ." so it will instead be imported from the current directory. 14 | -------------------------------------------------------------------------------- /config/buildflags_paint_preview.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2019 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/cast.gni") 6 | import("//build/config/features.gni") 7 | 8 | declare_args() { 9 | # Enable basic paint preview support. Does not work on iOS. Should 10 | # not be included with Chromecast hardware devices. 11 | # Used by //components/paint_preview and //third_party/harfbuzz-ng. 12 | # TODO(crbug.com/webrtc/11223) Move back this file in 13 | # //components/paint_preview/ once WebRTC doesn't roll harfbuzz-ng anymore, 14 | # for consistency sake. 15 | enable_paint_preview = !is_castos && !is_cast_android && !is_ios 16 | } 17 | -------------------------------------------------------------------------------- /config/linux/dri/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2017 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | 7 | assert(is_linux, "This file should only be referenced on Linux") 8 | 9 | pkg_config("dri") { 10 | packages = [ "dri" ] 11 | dri_driver_dir = exec_script(pkg_config_script, 12 | common_pkg_config_args + pkg_config_args + [ 13 | "--dridriverdir", 14 | "dri", 15 | ], 16 | "string") 17 | defines = [ "DRI_DRIVER_DIR=\"$dri_driver_dir\"" ] 18 | } 19 | -------------------------------------------------------------------------------- /rust/std/fake_root/Cargo.toml.template: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "fake_root" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | [dependencies] 7 | 8 | [dependencies.sysroot] 9 | path = "../../../../RUST_SRC_ROOT/library/sysroot" 10 | default-features = false 11 | features = [ 12 | "backtrace", 13 | "panic-unwind", 14 | "profiler", 15 | "std_detect_dlsym_getauxval", 16 | "std_detect_file_io" 17 | ] 18 | 19 | [patch.crates-io] 20 | rustc-std-workspace-core = { path = '../../../../RUST_SRC_ROOT/library/rustc-std-workspace-core' } 21 | rustc-std-workspace-alloc = { path = '../../../../RUST_SRC_ROOT/library/rustc-std-workspace-alloc' } 22 | rustc-std-workspace-std = { path = '../../../../RUST_SRC_ROOT/library/rustc-std-workspace-std' } 23 | -------------------------------------------------------------------------------- /config/win/console_app.gni: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/sanitizers/sanitizers.gni") 6 | 7 | declare_args() { 8 | # If true, builds as a console app (rather than a windowed app), which allows 9 | # logging to be printed to the user. This will cause a terminal window to pop 10 | # up when the executable is not run from the command line, so should only be 11 | # used for development. Only has an effect on Windows builds. 12 | win_console_app = false 13 | } 14 | 15 | if (is_win && is_asan) { 16 | # AddressSanitizer build should be a console app since it writes to stderr. 17 | win_console_app = true 18 | } 19 | -------------------------------------------------------------------------------- /linux/unbundle/dav1d.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | import("//build/shim_headers.gni") 3 | 4 | pkg_config("system_dav1d") { 5 | packages = [ "dav1d" ] 6 | } 7 | 8 | shim_headers("dav1d_shim") { 9 | root_path = "libdav1d/include" 10 | headers = [ 11 | "dav1d/common.h", 12 | "dav1d/data.h", 13 | "dav1d/dav1d.h", 14 | "dav1d/headers.h", 15 | "dav1d/picture.h", 16 | "dav1d/version.h", 17 | ] 18 | } 19 | 20 | source_set("dav1d") { 21 | deps = [ ":dav1d_shim" ] 22 | public_configs = [ ":system_dav1d" ] 23 | } 24 | 25 | group("dav1d_headers") { 26 | public_deps = [ ":dav1d_shim" ] 27 | } 28 | 29 | config("dav1d_config") { 30 | configs = [ 31 | ":system_dav1d", 32 | ":dav1d_shim_config", 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /linux/unbundle/double-conversion.gn: -------------------------------------------------------------------------------- 1 | import("//build/shim_headers.gni") 2 | 3 | shim_headers("double_conversion_shim") { 4 | root_path = "." 5 | headers = [ 6 | "double-conversion/bignum.h", 7 | "double-conversion/cached-powers.h", 8 | "double-conversion/diy-fp.h", 9 | "double-conversion/double-conversion.h", 10 | "double-conversion/double-to-string.h", 11 | "double-conversion/fast-dtoa.h", 12 | "double-conversion/fixed-dtoa.h", 13 | "double-conversion/ieee.h", 14 | "double-conversion/string-to-double.h", 15 | "double-conversion/strtod.h", 16 | "double-conversion/utils.h", 17 | ] 18 | } 19 | 20 | source_set("double_conversion") { 21 | deps = [ ":double_conversion_shim" ] 22 | libs = [ "double-conversion" ] 23 | } 24 | -------------------------------------------------------------------------------- /rust/tests/bindgen_cpp_test_with_cpp_linkage/cpp.h: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef BUILD_RUST_TESTS_BINDGEN_CPP_TEST_WITH_CPP_LINKAGE_CPP_H_ 6 | #define BUILD_RUST_TESTS_BINDGEN_CPP_TEST_WITH_CPP_LINKAGE_CPP_H_ 7 | 8 | // We use some C++20 stuff to ensure the correct mode is being used. 9 | template 10 | concept AlwaysTrue = true; 11 | 12 | namespace functions { 13 | 14 | inline constexpr int kNumber = 2; 15 | 16 | int template_fn(AlwaysTrue auto i) { 17 | return i; 18 | } 19 | 20 | int normal_fn(int i); 21 | 22 | } // namespace functions 23 | 24 | #endif // BUILD_RUST_TESTS_BINDGEN_CPP_TEST_WITH_CPP_LINKAGE_CPP_H_ 25 | -------------------------------------------------------------------------------- /android/pylib/utils/local_utils.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | """Utilities for determining if a test is being run locally or not.""" 5 | 6 | import os 7 | 8 | 9 | def IsOnSwarming(): 10 | """Determines whether we are on swarming or not. 11 | 12 | Returns: 13 | True if the test is being run on swarming, otherwise False. 14 | """ 15 | # Look for the presence of the SWARMING_SERVER environment variable as a 16 | # heuristic to determine whether we're running on a workstation or a bot. 17 | # This should always be set on swarming, but would be strange to be set on 18 | # a workstation. 19 | return 'SWARMING_SERVER' in os.environ 20 | -------------------------------------------------------------------------------- /toolchain/apple/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2021 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/toolchain/concurrent_links.gni") 6 | 7 | declare_args() { 8 | # Reduce the number of tasks using the copy_bundle_data and compile_xcassets 9 | # tools as they can cause lots of I/O contention when invoking ninja with a 10 | # large number of parallel jobs (e.g. when using distributed build like rbe). 11 | bundle_pool_depth = -1 12 | } 13 | 14 | if (current_toolchain == default_toolchain) { 15 | pool("bundle_pool") { 16 | if (bundle_pool_depth == -1) { 17 | depth = concurrent_links 18 | } else { 19 | depth = bundle_pool_depth 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /toolchain/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/toolchain/concurrent_links.gni") 6 | import("//build/toolchain/rbe.gni") 7 | 8 | declare_args() { 9 | # Pool for non remote tasks. 10 | action_pool_depth = -1 11 | } 12 | 13 | if (current_toolchain == default_toolchain) { 14 | if (action_pool_depth == -1 || use_remoteexec) { 15 | action_pool_depth = exec_script("get_cpu_count.py", [], "value") 16 | } 17 | 18 | pool("link_pool") { 19 | depth = concurrent_links 20 | } 21 | 22 | pool("action_pool") { 23 | depth = action_pool_depth 24 | } 25 | 26 | pool("remote_action_pool") { 27 | depth = 1000 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /android/bytecode/java/org/chromium/bytecode/MethodDescription.java: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Chromium Authors 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | package org.chromium.bytecode; 6 | 7 | class MethodDescription { 8 | public final String methodName; 9 | public final String description; 10 | public final int access; 11 | public Boolean shouldCreateOverride; 12 | 13 | public MethodDescription(String methodName, String description, int access) { 14 | this.methodName = methodName; 15 | this.description = description; 16 | this.access = access; 17 | // A null value means we haven't checked the method. 18 | this.shouldCreateOverride = null; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /android/pylib/local/device/local_device_network_environment.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import logging 6 | 7 | from devil.android.sdk import adb_wrapper 8 | 9 | from pylib.local.device import local_device_environment 10 | 11 | 12 | class LocalDeviceNetworkEnvironment( 13 | local_device_environment.LocalDeviceEnvironment): 14 | """A subclass of LocalDeviceEnvironment for devices connected over TCP/IP.""" 15 | 16 | def __init__(self, args, output_manager, error_func): 17 | super().__init__(args, output_manager, error_func) 18 | logging.info('connecting to %s', args.test_devices[0]) 19 | adb_wrapper.AdbWrapper.Connect(args.test_devices[0]) 20 | -------------------------------------------------------------------------------- /linux/unbundle/flac.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2016 The Chromium Authors 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//build/config/linux/pkg_config.gni") 6 | import("//build/shim_headers.gni") 7 | 8 | pkg_config("system_flac") { 9 | packages = [ "flac" ] 10 | } 11 | 12 | shim_headers("flac_shim") { 13 | root_path = "include" 14 | headers = [ 15 | "FLAC/all.h", 16 | "FLAC/assert.h", 17 | "FLAC/callback.h", 18 | "FLAC/export.h", 19 | "FLAC/format.h", 20 | "FLAC/metadata.h", 21 | "FLAC/ordinals.h", 22 | "FLAC/stream_decoder.h", 23 | "FLAC/stream_encoder.h", 24 | ] 25 | } 26 | 27 | source_set("flac") { 28 | deps = [ ":flac_shim" ] 29 | public_configs = [ ":system_flac" ] 30 | } 31 | --------------------------------------------------------------------------------