| commit | d58cdf45394e25ca66cec73a0ad3ca1825f79ba6 | [log] [tgz] |
|---|---|---|
| author | Jan Keitel <[email protected]> | Thu Dec 04 18:10:19 2025 |
| committer | Copybara-Service <[email protected]> | Thu Dec 04 18:16:29 2025 |
| tree | c0a12b3e87a32611010e8cec7eaa021c0984996d | |
| parent | abcd85172019c7c2d431e7ded5901daacea9b399 [diff] |
Migrate file I/O to use base::span in reporting util file No functionality changes. Bug: 435317390 Change-Id: Ib578d5a2d983ca61b93886b25fcd9b68ea3041f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7213192 Reviewed-by: Shanthanu Bhardwaj <[email protected]> Commit-Queue: Shanthanu Bhardwaj <[email protected]> Auto-Submit: Jan Keitel <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554091} NOKEYCHECK=True GitOrigin-RevId: d2d81d281b7e456da391c0e9e6a6945e31e9c5d0
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.