Enumerations

enum ExperimentArm
Name Value
kExperiment 0
kControl 1
kNone 2

Defined at line 27 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

Records

Functions

  • std::string ResultToString (fpromise::result<void, fuchsia::metrics::Error> && result)

    Defined at line 19 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

  • bool TestLogInteger (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    Tests of Cobalt metrics, all of which use local aggregation.

    Each of these tests assumes that the local_aggregation has been updated with

    the ProjectContext of |logger|, but that the LocalAggregation's LocalAggregateStorage

    contains no aggregates. One way to ensure this is to reconnect to the Cobalt

    app immediately before running each of these tests.

    Each test logs some events for a locally aggregated report, generates

    locally aggregated observations for the current day index in UTC according to

    a system clock, and checks that the expected number of observations were

    generated. Each test then generates locally aggregated observations

    again, for the same day index, and checks that no observations were

    generated.

    Defined at line 152 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogOccurrence (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    OCCURRENCE metrics for features_active_new, file_system_cache_misses_new,

    connection_attempts_new, and error_occurred_new

    Defined at line 283 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogIntegerHistogram (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    power_usage_new, bandwidth_usage_new and data_usage_with_impossible_bucket using

    INTEGER_HISTOGRAM metric.

    For each event vector, log one observation in each histogram bucket, using

    decreasing values per bucket.

    Defined at line 433 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogString (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    error_occurred_components using STRING metric.

    For each of the three event_codes, log each of the five application components.

    Defined at line 594 of file ../../src/cobalt/bin/testapp/tests.cc