[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.