diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-10-13 15:56:41 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-10-13 14:03:11 +0000 |
commit | 250c8d662b43f97d485e9833e9a3df2daa2c1d63 (patch) | |
tree | bfe7afe07b7295ed34b1f4d17af3f33c7a11468f /tests/unit/unittest/readandwritemessageblocktest.cpp | |
parent | b1dced66d7f4c39677f401395f6d71ed128a2684 (diff) | |
download | qt-creator-250c8d662b43f97d485e9833e9a3df2daa2c1d63.tar.gz |
Clang: Add UpdateTranslationUnitsForEditorMessage
If an editor is changing all translation units independent of their project
part they must be updated too. So we introduce a new message to update all
translation units with the same file path.
Change-Id: I70d0ea2bbca9fa880111ff7219573e54f3277026
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'tests/unit/unittest/readandwritemessageblocktest.cpp')
-rw-r--r-- | tests/unit/unittest/readandwritemessageblocktest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/unittest/readandwritemessageblocktest.cpp b/tests/unit/unittest/readandwritemessageblocktest.cpp index 161a2529ba..78f1f8d486 100644 --- a/tests/unit/unittest/readandwritemessageblocktest.cpp +++ b/tests/unit/unittest/readandwritemessageblocktest.cpp @@ -42,6 +42,7 @@ #include <sourcelocation.h> #include <registerunsavedfilesforeditormessage.h> #include <unregisterunsavedfilesforeditormessage.h> +#include <updatetranslationunitsforeditormessage.h> #include <writemessageblock.h> #include <QBuffer> @@ -151,6 +152,11 @@ TEST_F(ReadAndWriteMessageBlock, CompareRegisterTranslationUnitForEditorMessage) CompareMessage(ClangBackEnd::RegisterTranslationUnitForEditorMessage({fileContainer})); } +TEST_F(ReadAndWriteMessageBlock, CompareUpdateTranslationUnitForEditorMessage) +{ + CompareMessage(ClangBackEnd::UpdateTranslationUnitsForEditorMessage({fileContainer})); +} + TEST_F(ReadAndWriteMessageBlock, CompareUnregisterFileForEditorMessage) { CompareMessage(ClangBackEnd::UnregisterTranslationUnitsForEditorMessage({fileContainer})); |