aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-12-27 13:20:24 +0100
committerMarco Bubke <marco.bubke@qt.io>2018-01-10 12:38:47 +0000
commit2c08ddcd5ab7278ab5e7faf986e6763f8c9d5cf6 (patch)
treefdc5509f0ecd2db90a241135325319962d7c2020 /tests
parente94d88c172a8bb3e4a3a92aceea1d5873c80657f (diff)
Clang: Add path notifier to symbol indexer
Change-Id: I2a605a5a5ac2511566edd9c069e84b5ec9d95279 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unittest/symbolindexer-test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/unittest/symbolindexer-test.cpp b/tests/unit/unittest/symbolindexer-test.cpp
index 09088ec637..934733ba02 100644
--- a/tests/unit/unittest/symbolindexer-test.cpp
+++ b/tests/unit/unittest/symbolindexer-test.cpp
@@ -167,5 +167,11 @@ TEST_F(SymbolIndexer, UpdateProjectPartsCallsInOrder)
indexer.updateProjectParts({projectPart1}, Utils::clone(unsaved));
}
+TEST_F(SymbolIndexer, CallSetNotifier)
+{
+ EXPECT_CALL(mockPathWatcher, setNotifier(_));
+
+ ClangBackEnd::SymbolIndexer indexer{mockCollector, mockStorage, mockPathWatcher};
+}
}