zircon/system/ulib/fs/journal/test/journal_test.cc
// Verifies that the info block marks |start| as the beginning of the journal (relative
// to the start of entries) with a sequence_number of |sequence_number|.
Verifies that the info block marks |start| as the beginning of the journal (relative
to the start of entries) with a sequence_number of |sequence_number|.
Verifies that the info block marks |start| as the beginning of the journal ( relative to the start of entries ) with a sequence_number of |sequence_number| .
void CheckInfoBlock(const zx::vmo& info, uint64_t start, uint64_t sequence_number) {
  std::array<char, kBlockSize> buf = {};
  EXPECT_OK(info.read(buf.data(), 0, kBlockSize));
  const JournalInfo& journal_info = *reinterpret_cast<const JournalInfo*>(buf.data());
  EXPECT_EQ(kJournalMagic, journal_info.magic);
  EXPECT_EQ(start, journal_info.start_block);
  EXPECT_EQ(sequence_number, journal_info.timestamp);
}
void CheckInfoBlock ( const zx :: vmo & info , uint64_t start , uint64_t sequence_number ) { std :: array < char , kBlockSize > buf = { } ; EXPECT_OK ( info . read ( buf . data ( ) , 0 , kBlockSize ) ) ; const JournalInfo & journal_info = * reinterpret_cast < const JournalInfo * > ( buf . data ( ) ) ; EXPECT_EQ ( kJournalMagic , journal_info . magic ) ; EXPECT_EQ ( start , journal_info . start_block ) ; EXPECT_EQ ( sequence_number , journal_info . timestamp ) ; }
Verifies that the info block marks |start| as the beginning of the journal (relative
to the start of entries) with a sequence_number of |sequence_number|.
Verifies that the info block marks |start| as the beginning of the journal ( relative to the start of entries ) with a sequence_number of |sequence_number| .