@@ -335,10 +335,10 @@ TEST(ProtocolTypesTest, Scope) {
335
335
336
336
TEST (ProtocolTypesTest, PresentationHint) {
337
337
// Test all PresentationHint values.
338
- std::vector<std::pair<PresentationHint, llvm::StringRef>> test_cases = {
339
- {ePresentationHintNormal , " normal" },
340
- {ePresentationHintEmphasize , " emphasize" },
341
- {ePresentationHintDeemphasize , " deemphasize" }};
338
+ std::vector<std::pair<Source:: PresentationHint, llvm::StringRef>> test_cases =
339
+ {{Source::eSourcePresentationHintNormal , " normal" },
340
+ {Source::eSourcePresentationHintEmphasize , " emphasize" },
341
+ {Source::eSourcePresentationHintDeemphasize , " deemphasize" }};
342
342
343
343
for (const auto &test_case : test_cases) {
344
344
// Serialize the PresentationHint to JSON.
@@ -347,7 +347,7 @@ TEST(ProtocolTypesTest, PresentationHint) {
347
347
EXPECT_EQ (serialized.getAsString (), test_case.second );
348
348
349
349
// Deserialize the JSON back to PresentationHint.
350
- PresentationHint deserialized;
350
+ Source:: PresentationHint deserialized;
351
351
llvm::json::Path::Root root;
352
352
ASSERT_TRUE (fromJSON (serialized, deserialized, root))
353
353
<< llvm::toString (root.getError ());
@@ -356,7 +356,7 @@ TEST(ProtocolTypesTest, PresentationHint) {
356
356
357
357
// Test invalid value.
358
358
llvm::json::Value invalid_value = " invalid_hint" ;
359
- PresentationHint deserialized_invalid;
359
+ Source:: PresentationHint deserialized_invalid;
360
360
llvm::json::Path::Root root;
361
361
EXPECT_FALSE (fromJSON (invalid_value, deserialized_invalid, root));
362
362
}
0 commit comments