aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/tokenprocessor-test.cpp
diff options
context:
space:
mode:
authorThe Qt Project <gerrit-noreply@qt-project.org>2020-10-22 12:43:04 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2020-10-22 12:43:04 +0000
commitffb5a3977fc2f50836d9c9c4e96acc65e254f24c (patch)
tree052e31fa47992fe8747f9a87164a777b18594759 /tests/unit/unittest/tokenprocessor-test.cpp
parent5a8501ffafd24725106b687c8c658354bb370f26 (diff)
parent9c6108afd1d49f5c1865840c8477ce6728022691 (diff)
Merge "Merge remote-tracking branch 'origin/4.14' into master"
Diffstat (limited to 'tests/unit/unittest/tokenprocessor-test.cpp')
-rw-r--r--tests/unit/unittest/tokenprocessor-test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/unittest/tokenprocessor-test.cpp b/tests/unit/unittest/tokenprocessor-test.cpp
index 37c76d8ce6d..f74fb0dbedd 100644
--- a/tests/unit/unittest/tokenprocessor-test.cpp
+++ b/tests/unit/unittest/tokenprocessor-test.cpp
@@ -1326,7 +1326,7 @@ TEST_F(TokenProcessor, NonConstPointerArgument)
infos[1];
ASSERT_THAT(infos[2],
- HasOnlyType(HighlightingType::LocalVariable));
+ HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
}
TEST_F(TokenProcessor, PointerToConstArgument)
@@ -1346,7 +1346,7 @@ TEST_F(TokenProcessor, ConstPointerArgument)
infos[1];
ASSERT_THAT(infos[2],
- HasOnlyType(HighlightingType::LocalVariable));
+ HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
}
TEST_F(TokenProcessor, NonConstPointerGetterAsArgument)
@@ -1400,7 +1400,7 @@ TEST_F(TokenProcessor, NonConstPointerArgumentAsExpression)
infos[1];
ASSERT_THAT(infos[3],
- HasOnlyType(HighlightingType::LocalVariable));
+ HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
}
TEST_F(TokenProcessor, NonConstPointerArgumentAsInstanceWithMember)