class FakeLogger

Defined at line 22 of file ../../third_party/cobalt/src/logger/fake_logger.h

An implementation of LoggerInterface that counts how many times the Log*

methods were called for purposes of testing that internal metrics are being

collected properly.

Public Methods

Status LogOccurrence (uint32_t metric_id, uint64_t count, const std::vector<uint32_t> & event_codes)
Status LogInteger (uint32_t metric_id, int64_t value, const std::vector<uint32_t> & event_codes)
Status LogIntegerHistogram (uint32_t metric_id, HistogramPtr histogram, const std::vector<uint32_t> & event_codes)
Status LogString (uint32_t metric_id, const std::string & string_value, const std::vector<uint32_t> & event_codes)
void RecordLoggerCall (LoggerCallsMadeMigratedMetricDimensionLoggerMethod method)

Defined at line 36 of file ../../third_party/cobalt/src/logger/fake_logger.h

void PauseInternalLogging ()

Defined at line 42 of file ../../third_party/cobalt/src/logger/fake_logger.h

void ResumeInternalLogging ()

Defined at line 44 of file ../../third_party/cobalt/src/logger/fake_logger.h

void TrackEvent (Event e)

Defined at line 46 of file ../../third_party/cobalt/src/logger/fake_logger.h

uint32_t call_count ()

Defined at line 50 of file ../../third_party/cobalt/src/logger/fake_logger.h

Event last_event_logged ()

Defined at line 51 of file ../../third_party/cobalt/src/logger/fake_logger.h

Event nth_event_logged (int64_t n)

Defined at line 52 of file ../../third_party/cobalt/src/logger/fake_logger.h

std::map<LoggerCallsMadeMigratedMetricDimensionLoggerMethod, uint32_t> internal_logger_calls ()

Defined at line 53 of file ../../third_party/cobalt/src/logger/fake_logger.h