| commit | 72f67e42b3cc5d4cb2bb4b7a61ce8ad80defb915 | [log] [tgz] |
|---|---|---|
| author | Jan Keitel <[email protected]> | Fri Dec 05 10:49:40 2025 |
| committer | Copybara-Service <[email protected]> | Fri Dec 05 10:59:00 2025 |
| tree | 6c824364cada7d58e84cc2284f468df80bb4ba8d | |
| parent | d58cdf45394e25ca66cec73a0ad3ca1825f79ba6 [diff] |
Migrate ResourceManagedBuffer to base::HeapArray This change updates ResourceManagedBuffer to use base::HeapArray<uint8_t> instead of std::unique_ptr<char[]> for managing the buffer. It then uses the resulting span-based API to replace pointer-based file API calls by span-based ones. No functionality changes. Bug: 435317390 Change-Id: I72a33db0a6a08394ad4a04ad09cf861e52004c42 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7208436 Reviewed-by: Tom Sepez <[email protected]> Commit-Queue: Jan Keitel <[email protected]> Reviewed-by: Dominique Fauteux-Chapleau <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554564} NOKEYCHECK=True GitOrigin-RevId: 2f0d85aaad72add1add5f18e69078ead83a7cba4
The Encrypted Reporting Pipeline (ERP) provides a universal method for upload of data for enterprise customers.
The code structure looks like this:
Chrome:
//components/reporting //chrome/browser/policy/messaging_layer ReportQueueImpl and ReportQueueConfiguration.ChromeOS:
//platform2/missived If you'd like to begin using ERP within Chrome please check the comment in //components/reporting/client/report_queue_provider.h.
To run the unit tests for this directory, after having configured Chromium's build environment:
Run autoninja -C out/Default components_unittests to build the components unit test executable.
Then, run out/Default/components_unittests --gtest_filter='<target tests>' to run relevant tests. Here, <target tests> is a wildcard pattern (refer to the document of gtest for more details). For example, to run all tests for StorageQueue, run
$ out/Default/components_unittests --gtest_filter='*/StorageQueueTest.*'
For another example, to run all tests in this directory, run
$ tools/autotest.py -C out/Default --run_all components/reporting
You can also append a filter such as --gtest_filter='*/StorageQueueTest.*' to the line above.
Another useful flag for dealing with flaky tests is --gtest_repeat=, which repeats tests for multiple times.
For more gtest features, check out the gtest document.