mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
fixed unit tests, buffer indexes were not reset, caused tests to fail on 2nd repeat.
This commit is contained in:
parent
880819fab7
commit
72cbcd70c0
3 changed files with 21 additions and 8 deletions
|
@ -28,13 +28,15 @@ using ::testing::Invoke;
|
|||
|
||||
const UInt8 cryptoIvWrite_bufferLen = 200;
|
||||
UInt8 cryptoIvWrite_buffer[cryptoIvWrite_bufferLen];
|
||||
UInt32 cryptoIvWrite_bufferIndex = 0;
|
||||
UInt32 cryptoIvWrite_bufferIndex;
|
||||
|
||||
void
|
||||
cryptoIv_mockWrite(const void* in, UInt32 n);
|
||||
|
||||
TEST(CClientProxyTests, cryptoIvWrite)
|
||||
{
|
||||
{
|
||||
cryptoIvWrite_bufferIndex = 0;
|
||||
|
||||
NiceMock<CMockEventQueue> eventQueue;
|
||||
NiceMock<CMockStream> innerStream;
|
||||
NiceMock<CMockServer> server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue