mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
Unit Tests: Create MockSymbolService
This commit is contained in:
parent
3120e8173c
commit
a1537ab6aa
@ -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
10
test/mocks.h
Normal file
@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "oi/SymbolService.h"
|
||||
|
||||
class MockSymbolService : public SymbolService {
|
||||
public:
|
||||
MockSymbolService() {
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user