Functions
-
std::vector<uint8_t> BuildFxtRecord (zx::basic_time<((zx_clock_t)1)>timestamp,FuchsiaLogSeverityseverity,std::string_viewmessage,zx_koid_tpid,zx_koid_ttid,const std::vector<std::string> &tags)Encodes a log record into raw FXT bytes using fuchsia_logging::LogBuffer.
Defined at line 284 of file ../../src/lib/diagnostics/fidl_log_message_parser/test_support.cc
-
zx::vmo BuildFxtVmo (zx::basic_time<((zx_clock_t)1)>timestamp,FuchsiaLogSeverityseverity,std::string_viewmessage,zx_koid_tpid,zx_koid_ttid,const std::vector<std::string> &tags)Encodes a log record into a VMO with ZX_PROP_VMO_CONTENT_SIZE set,
ready for use in FormattedContent::WithFxt.
Defined at line 297 of file ../../src/lib/diagnostics/fidl_log_message_parser/test_support.cc
-
zx::vmo EncodeJsonLogToFxtVmo (std::string_view json_str)Transcodes a single JSON log string (or array) conforming to Archivist's JSON schema
into a VMO containing the corresponding FXT records.
Defined at line 317 of file ../../src/lib/diagnostics/fidl_log_message_parser/test_support.cc
-
std::vector<zx::vmo> EncodeJsonBatchToFxtVmos (const std::vector<std::string> & json_batch)Transcodes a batch of JSON log strings into a vector of FXT VMOs.
Defined at line 358 of file ../../src/lib/diagnostics/fidl_log_message_parser/test_support.cc
-
fpromise::result<std::vector<fpromise::result<fuchsia::logger::LogMessage, std::string>>, std::string> ConvertFormattedContentForTest (fuchsia::diagnostics::FormattedContent content)Test compatibility shim: parses JSON FormattedContent using the legacy Archivist schema,
validates payloads, converts valid messages to FXT records, and decodes them via
ConvertFormattedContentToLogMessages. Forwards FXT FormattedContent directly.
Defined at line 370 of file ../../src/lib/diagnostics/fidl_log_message_parser/test_support.cc