forked from qt-creator/qt-creator
Clang: Add symbol storage
Extend file path cache to 64 bit integer. Change-Id: I5627f13d59a3214f389087038482cbcc8d0eb484 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -42,11 +42,12 @@ using testing::NiceMock;
|
||||
|
||||
using Watcher = ClangBackEnd::ClangPathWatcher<NiceMock<MockQFileSytemWatcher>, FakeTimer>;
|
||||
using ClangBackEnd::WatcherEntry;
|
||||
using ClangBackEnd::FilePathIndices;
|
||||
|
||||
class ClangPathWatcher : public testing::Test
|
||||
{
|
||||
protected:
|
||||
ClangBackEnd::StringCache<Utils::PathString> pathCache;
|
||||
ClangBackEnd::FilePathCache<> pathCache;
|
||||
NiceMock<MockClangPathWatcherNotifier> notifier;
|
||||
Watcher watcher{pathCache, ¬ifier};
|
||||
NiceMock<MockQFileSytemWatcher> &mockQFileSytemWatcher = watcher.fileSystemWatcher();
|
||||
@@ -55,8 +56,8 @@ protected:
|
||||
Utils::SmallString id3{"id3"};
|
||||
Utils::PathString path1{"/path/path1"};
|
||||
Utils::PathString path2{"/path/path2"};
|
||||
std::vector<uint> paths = watcher.pathCache().stringIds({path1, path2});
|
||||
std::vector<uint> ids = watcher.idCache().stringIds({id1, id2, id3});
|
||||
FilePathIndices paths{watcher.pathCache().stringIds({path1, path2})};
|
||||
FilePathIndices ids{watcher.idCache().stringIds({id1, id2, id3})};
|
||||
WatcherEntry watcherEntry1{ids[0], paths[0]};
|
||||
WatcherEntry watcherEntry2{ids[1], paths[0]};
|
||||
WatcherEntry watcherEntry3{ids[0], paths[1]};
|
||||
|
||||
Reference in New Issue
Block a user