Lines Matching refs:bufferImpl

32         bufferImpl = std::make_unique<BufferImpl>(std::move(dataInterfaceMock));  in BufferTest()
59 std::unique_ptr<BufferImpl> bufferImpl; member in bios_bmc_smm_error_logger::__anon8b744aa40111::BufferTest
72 bufferImpl->initialize(testBmcInterfaceVersion, bigQueueSize, in TEST_F()
81 EXPECT_NE(bufferImpl->getCachedBufferHeader(), testInitializationHeader); in TEST_F()
91 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in TEST_F()
98 EXPECT_NE(bufferImpl->getCachedBufferHeader(), testInitializationHeader); in TEST_F()
109 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in TEST_F()
117 EXPECT_NE(bufferImpl->getCachedBufferHeader(), testInitializationHeader); in TEST_F()
136 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in TEST_F()
138 EXPECT_EQ(bufferImpl->getCachedBufferHeader(), testInitializationHeader); in TEST_F()
148 bufferImpl->readBufferHeader(); in TEST_F()
167 EXPECT_NO_THROW(bufferImpl->readBufferHeader()); in TEST_F()
168 EXPECT_EQ(bufferImpl->getCachedBufferHeader(), testInitializationHeader); in TEST_F()
179 bufferImpl->updateReadPtr(0); in TEST_F()
200 EXPECT_NO_THROW(bufferImpl->updateReadPtr(testNewReadPtr)); in TEST_F()
202 auto cachedHeader = bufferImpl->getCachedBufferHeader(); in TEST_F()
215 bufferImpl->updateBmcFlags(static_cast<uint32_t>(BmcFlags::ready)); in TEST_F()
236 bufferImpl->updateBmcFlags(static_cast<uint32_t>(BmcFlags::ready))); in TEST_F()
238 auto cachedHeader = bufferImpl->getCachedBufferHeader(); in TEST_F()
256 bufferImpl->initialize(testBmcInterfaceVersion, wrongQueueSize, in TEST_F()
260 bufferImpl->getMaxOffset(); in TEST_F()
283 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in TEST_F()
287 bufferImpl->getMaxOffset(); in TEST_F()
311 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in TEST_F()
315 bufferImpl->getQueueOffset(); in TEST_F()
348 bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize, in initializeFuncMock()
363 EXPECT_EQ(bufferImpl->getMaxOffset(), testMaxOffset); in TEST_F()
368 EXPECT_EQ(bufferImpl->getQueueOffset(), in TEST_F()
378 bufferImpl->wraparoundRead(tooBigOffset, /* length */ 1); in TEST_F()
390 bufferImpl->wraparoundRead(/* relativeOffset */ 0, tooBigLength); in TEST_F()
413 bufferImpl->wraparoundRead(testOffset, testLength); in TEST_F()
442 EXPECT_THAT(bufferImpl->wraparoundRead(testOffset, testLength), in TEST_F()
445 bufferImpl->getCachedBufferHeader(); in TEST_F()
471 bufferImpl->wraparoundRead(testOffset, testLength); in TEST_F()
509 EXPECT_THAT(bufferImpl->wraparoundRead(testOffset, testLength), in TEST_F()
512 bufferImpl->getCachedBufferHeader(); in TEST_F()
538 EXPECT_THAT(bufferImpl->wraparoundRead(testOffset, testLength), in TEST_F()
541 bufferImpl->getCachedBufferHeader(); in TEST_F()
607 EXPECT_EQ(bufferImpl->readEntryHeader(), testEntryHeader); in TEST_F()
610 bufferImpl->getCachedBufferHeader(); in TEST_F()
627 try { bufferImpl->readEntry(); } catch (const std::runtime_error& e) { in TEST_F()
650 EXPECT_NO_THROW(bufferImpl->updateReadPtr(testOffset)); in TEST_F()
656 EXPECT_NO_THROW(testedEntryPair = bufferImpl->readEntry()); in TEST_F()
660 bufferImpl->getCachedBufferHeader(); in TEST_F()
670 EXPECT_NO_THROW(bufferImpl->updateReadPtr(testOffset)); in TEST_F()
675 EXPECT_NO_THROW(testedEntryPair = bufferImpl->readEntry()); in TEST_F()
678 cachedBufferHeader = bufferImpl->getCachedBufferHeader(); in TEST_F()
707 bufferImpl->readErrorLogs(); in TEST_F()
729 bufferImpl->readErrorLogs(); in TEST_F()
744 EXPECT_NO_THROW(bufferImpl->readErrorLogs()); in TEST_F()
765 EXPECT_NO_THROW(entryPairs = bufferImpl->readErrorLogs()); in TEST_F()
803 EXPECT_NO_THROW(entryPairs = bufferImpl->readErrorLogs()); in TEST_F()
834 bufferImpl->readErrorLogs(); in TEST_F()