fixed unit tests, buffer indexes were not reset, caused tests to fail on 2nd repeat.

This commit is contained in:
Nick Bolton 2013-04-10 12:14:59 +00:00
parent 880819fab7
commit 72cbcd70c0
3 changed files with 21 additions and 8 deletions

View file

@ -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;