summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/mocksqlitereadstatement.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/mocksqlitereadstatement.h')
-rw-r--r--tests/unit/unittest/mocksqlitereadstatement.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/unittest/mocksqlitereadstatement.h b/tests/unit/unittest/mocksqlitereadstatement.h
index 2d2b3320c4..e5926d2d17 100644
--- a/tests/unit/unittest/mocksqlitereadstatement.h
+++ b/tests/unit/unittest/mocksqlitereadstatement.h
@@ -34,6 +34,7 @@
#include <projectpartartefact.h>
#include <projectpartpch.h>
#include <sourceentry.h>
+#include <usedmacro.h>
#include <symbol.h>
#include <cpptools/usages.h>
@@ -53,6 +54,7 @@ using ClangRefactoring::SourceLocations;
namespace Sources = ClangBackEnd::Sources;
using ClangRefactoring::Symbol;
using ClangRefactoring::Symbols;
+using ClangBackEnd::UsedMacros;
class MockSqliteDatabase;
@@ -79,6 +81,9 @@ public:
MOCK_METHOD3(valuesReturnSourceEntries,
SourceEntries(std::size_t, int, int));
+ MOCK_METHOD2(valuesReturnUsedMacros,
+ UsedMacros (std::size_t, int));
+
MOCK_METHOD1(valueReturnInt32,
Utils::optional<int>(Utils::SmallStringView));
@@ -185,6 +190,12 @@ MockSqliteReadStatement::values<Symbol, 3>(
const Utils::SmallStringView&);
template <>
+UsedMacros
+MockSqliteReadStatement::values<ClangBackEnd::UsedMacro, 2>(
+ std::size_t reserveSize,
+ const int &sourceId);
+
+template <>
std::vector<Sources::Directory> MockSqliteReadStatement::values<Sources::Directory, 2>(std::size_t reserveSize);
template <>