Bug 1658281 [wpt PR 24934] - [nativeio] Add Flush(), a=testonly
commit52f47238bd7e95cb50999ea412ac0776ff6c6778
authorRichard Stotz <rstz@chromium.org>
Thu, 20 Aug 2020 18:45:50 +0000 (20 18:45 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 25 Aug 2020 11:10:18 +0000 (25 11:10 +0000)
tree50ed3ad1952f982f287484cfc1726e38425e27b9
parent63492a4a3c79bf9a57a70803261d6a832aa0cdcd
Bug 1658281 [wpt PR 24934] - [nativeio] Add Flush(), a=testonly

Automatic update from web-platform-tests
[nativeio] Add Flush()

This CL implements a flush function that attempts to flush any write
buffers, including device buffers, by calling base::File::Flush(). This
comes with the intent to evaluate developer feedback. Note that a future
version of the API might include a faster, less reliable variant of
flush.

Bug: 914488
Change-Id: I556cea0f4872e5536e413b91df575c4f6a00a55e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2257934
Commit-Queue: Richard Stotz <rstz@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796343}

--

wpt-commits: e0a417a2f108468d245fb2dd9562ef6838197842
wpt-pr: 24934
testing/web-platform/tests/native-io/close_async.tentative.https.any.js
testing/web-platform/tests/native-io/close_sync.tentative.https.any.js
testing/web-platform/tests/native-io/concurrent_io/concurrent_io_flush_async.tentative.https.any.js [new file with mode: 0644]
testing/web-platform/tests/native-io/concurrent_io/operation_helpers.js
testing/web-platform/tests/native-io/flush_async_basic.tentative.https.any.js [new file with mode: 0644]
testing/web-platform/tests/native-io/flush_sync_basic.tentative.https.any.js [new file with mode: 0644]
testing/web-platform/tests/native-io/resources/support.js