Fix test cases

This commit is contained in:
Sebastian Meßmer 2015-06-17 12:17:17 +02:00
parent 123ac44f24
commit 199da740ed
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

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