Fix test cases
This commit is contained in:
parent
123ac44f24
commit
199da740ed
@ -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) {
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user