From 199da740ed2810a8437ee89e736599ecd07aa74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Me=C3=9Fmer?= Date: Wed, 17 Jun 2015 12:17:17 +0200 Subject: [PATCH] Fix test cases --- .../encrypted/testutils/FakeAuthenticatedCipher.h | 2 +- test/interface/helpers/BlockStoreWithRandomKeysTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h b/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h index d99ff86d..ad8232eb 100644 --- a/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h +++ b/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h @@ -7,7 +7,7 @@ struct FakeKey { FakeKey(uint8_t value_):value(value_) {} - static FakeKey CreateRandom() { + static FakeKey CreateOSRandom() { return FakeKey(rand()); } static FakeKey FromBinary(const void *data) { diff --git a/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp b/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp index fdcfada0..a6d0d53d 100644 --- a/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp +++ b/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp @@ -34,7 +34,7 @@ public: class BlockMock: public Block { public: - BlockMock(): Block(Key::CreateRandom()) {} + BlockMock(): Block(Key::CreateOSRandom()) {} MOCK_CONST_METHOD0(data, const void*()); MOCK_METHOD3(write, void(const void*, uint64_t, uint64_t)); MOCK_METHOD0(flush, void());