Unit Tests: Create MockSymbolService

This commit is contained in:
Alastair Robertson 2023-06-20 09:53:46 -07:00 committed by Alastair Robertson
parent 3120e8173c
commit a1537ab6aa
2 changed files with 13 additions and 0 deletions

View File

@ -74,4 +74,7 @@ class SymbolService {
std::vector<std::pair<uint64_t, uint64_t>> executableAddrs{};
bool hardDisableDrgn = false;
protected:
SymbolService() = default; // For unit tests
};

10
test/mocks.h Normal file
View File

@ -0,0 +1,10 @@
#pragma once
#include "gmock/gmock.h"
#include "oi/SymbolService.h"
class MockSymbolService : public SymbolService {
public:
MockSymbolService() {
}
};