| commit | ae947216dca9cfc32bf61421849762c568682b8c | [log] [tgz] |
|---|---|---|
| author | Ryan Harrison <rharrison@chromium.org> | Thu Jul 31 07:27:08 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 31 07:27:08 2025 -0700 |
| tree | c28c2a42724813c487769f706ada40ec1e801cf9 | |
| parent | ad3575cc4a00091abe02522cea5a69c61e148739 [diff] |
[infra] Add dependency injection support to more fileutils API Adds the ability to pass in a oswrapper.* to IsDir(), IsExe(), IsFile(), CopyFile(), and CopyDir() to allow better testing of code that uses these functions. Testing is added for these functions. CopyFile & CopyDir were significantly rewritten due to issues found when testing. Updates all of the callsites to use the new API. Some places where I was making these changes I also changed calls to os.* to be to oswrapper.*. Bug: 344014313 Change-Id: I418672fdbcb1f5492d7fd796ec70e9dd2f3a7cc9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/255514 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Brian Sheedy <bsheedy@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.