forked from qt-creator/qt-creator
Clang: Add lastModified to the precompiled header
It is important to know then the PCH generation started, so we can compare the header file time stamps against it. Change-Id: Id8ee91e886c153d9d4a37cc0438c682f2098f7fa Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ protected:
|
||||
ClangPchManager::PchManagerProjectUpdater projectUpdater{mockPchManagerServer, client, filePathCache};
|
||||
Utils::SmallString projectPartId{"projectPartId"};
|
||||
Utils::SmallString pchFilePath{"/path/to/pch"};
|
||||
PrecompiledHeadersUpdatedMessage message{{{projectPartId.clone(), pchFilePath.clone()}}};
|
||||
PrecompiledHeadersUpdatedMessage message{{{projectPartId.clone(), pchFilePath.clone(), 1}}};
|
||||
};
|
||||
|
||||
TEST_F(PchManagerClient, NotifierAttached)
|
||||
@@ -81,7 +81,7 @@ TEST_F(PchManagerClient, NotifierDetached)
|
||||
|
||||
TEST_F(PchManagerClient, Update)
|
||||
{
|
||||
EXPECT_CALL(mockPchManagerNotifier, precompiledHeaderUpdated(projectPartId.toQString(), pchFilePath.toQString()));
|
||||
EXPECT_CALL(mockPchManagerNotifier, precompiledHeaderUpdated(projectPartId.toQString(), pchFilePath.toQString(), Eq(1)));
|
||||
|
||||
client.precompiledHeadersUpdated(message.clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user