• Home
  • Raw
  • Download

Lines Matching refs:Request

299   clangd::LookupRequest Request;  in TEST()  local
300 Request.IDs.insert(llvm::cantFail(SymbolID::fromStr("0000000000000001"))); in TEST()
301 Request.IDs.insert(llvm::cantFail(SymbolID::fromStr("0000000000000002"))); in TEST()
305 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
306 EXPECT_EQ(static_cast<unsigned>(Serialized.ids_size()), Request.IDs.size()); in TEST()
309 EXPECT_EQ(Deserialized->IDs, Request.IDs); in TEST()
313 clangd::LookupRequest Request; in TEST() local
315 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
323 clangd::FuzzyFindRequest Request; in TEST() local
324 Request.ProximityPaths = {testPath("local/Header.h"), in TEST()
328 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
338 clangd::RefsRequest Request; in TEST() local
339 Request.IDs.insert(llvm::cantFail(SymbolID::fromStr("0000000000000001"))); in TEST()
340 Request.IDs.insert(llvm::cantFail(SymbolID::fromStr("0000000000000002"))); in TEST()
342 Request.Limit = 9000; in TEST()
343 Request.Filter = RefKind::Spelled | RefKind::Declaration; in TEST()
347 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
348 EXPECT_EQ(static_cast<unsigned>(Serialized.ids_size()), Request.IDs.size()); in TEST()
349 EXPECT_EQ(Serialized.limit(), Request.Limit); in TEST()
352 EXPECT_EQ(Deserialized->IDs, Request.IDs); in TEST()
354 EXPECT_EQ(*Deserialized->Limit, Request.Limit); in TEST()
355 EXPECT_EQ(Deserialized->Filter, Request.Filter); in TEST()
359 clangd::RefsRequest Request; in TEST() local
361 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
369 clangd::RelationsRequest Request; in TEST() local
370 Request.Subjects.insert( in TEST()
372 Request.Subjects.insert( in TEST()
375 Request.Limit = 9000; in TEST()
376 Request.Predicate = RelationKind::BaseOf; in TEST()
380 auto Serialized = ProtobufMarshaller.toProtobuf(Request); in TEST()
382 Request.Subjects.size()); in TEST()
383 EXPECT_EQ(Serialized.limit(), Request.Limit); in TEST()
385 Request.Predicate); in TEST()
388 EXPECT_EQ(Deserialized->Subjects, Request.Subjects); in TEST()
390 EXPECT_EQ(*Deserialized->Limit, Request.Limit); in TEST()
391 EXPECT_EQ(Deserialized->Predicate, Request.Predicate); in TEST()