Clone this repo:

Branches

  1. 3352939 Prevent enqueuing UNDEFINED_DESTINATION events. by Leonid Baraz · 2 days ago main
  2. b0c7696 Add `FatalCrashEventLogObserver` for event based log upload by Irem Uguz · 10 days ago
  3. 3543d63 Remove now unnecessary EnsureOpenSSLInit and CRYPTO_library_init calls by David Benjamin · 14 days ago
  4. 866830f Add missing dependence in components. by Leonid Baraz · 4 weeks ago
  5. cd21557 Combine functions in storage_queue.cc. by Josh Hilke · 4 weeks ago

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
    Code shared between Chrome and ChromeOS.
  • //chrome/browser/policy/messaging_layer
    Code that lives only in the browser, primary interfaces for reporting data such as ReportQueueImpl and ReportQueueConfiguration.

ChromeOS:

  • //platform2/missived
    Daemon for encryption and storage of reports.

If you'd like to begin using ERP within Chrome please check the comment in //components/reporting/client/report_queue_provider.h.

Run Unit Tests

To run the unit tests for this directory, after having configured Chromium's build environment:

  1. Run autoninja -C out/Default components_unittests to build the components unit test executable.

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