diff options
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp index cb02a91cb6c..4377d526779 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp @@ -127,7 +127,8 @@ TEST(RemoteObjectLayer, AddObject) { std::copy(ObjBytes.begin(), ObjBytes.end(), ObjContents.begin()); RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); MockObjectLayer BaseLayer( @@ -144,9 +145,8 @@ TEST(RemoteObjectLayer, AddObject) { return 1; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -181,7 +181,8 @@ TEST(RemoteObjectLayer, AddObjectFailure) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); MockObjectLayer BaseLayer( @@ -191,9 +192,8 @@ TEST(RemoteObjectLayer, AddObjectFailure) { return make_error<StringError>("AddObjectFailure - Test Message", inconvertibleErrorCode()); }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -233,7 +233,8 @@ TEST(RemoteObjectLayer, RemoveObject) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -243,9 +244,8 @@ TEST(RemoteObjectLayer, RemoveObject) { SymTab[1] = MockObjectLayer::LookupFn(); return 1; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -283,7 +283,8 @@ TEST(RemoteObjectLayer, RemoveObjectFailure) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -294,9 +295,8 @@ TEST(RemoteObjectLayer, RemoveObjectFailure) { MockObjectLayer::SymbolLookupTable &SymTab) { return 42; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -339,7 +339,8 @@ TEST(RemoteObjectLayer, FindSymbol) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -358,9 +359,8 @@ TEST(RemoteObjectLayer, FindSymbol) { }; return 42; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -421,7 +421,8 @@ TEST(RemoteObjectLayer, FindSymbolIn) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -447,9 +448,8 @@ TEST(RemoteObjectLayer, FindSymbolIn) { return 42; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -496,7 +496,8 @@ TEST(RemoteObjectLayer, EmitAndFinalize) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -506,9 +507,8 @@ TEST(RemoteObjectLayer, EmitAndFinalize) { SymTab[1] = MockObjectLayer::LookupFn(); return 1; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( @@ -547,7 +547,8 @@ TEST(RemoteObjectLayer, EmitAndFinalizeFailure) { }; RPCEndpoint ClientEP(*Channels.first, true); - RemoteObjectClientLayer<RPCEndpoint> Client(ClientEP, ReportError); + RemoteObjectClientLayer<RPCEndpoint> Client(AcknowledgeORCv1Deprecation, + ClientEP, ReportError); RPCEndpoint ServerEP(*Channels.second, true); @@ -556,9 +557,8 @@ TEST(RemoteObjectLayer, EmitAndFinalizeFailure) { MockObjectLayer::SymbolLookupTable &SymTab) { return 1; }); - RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server(BaseLayer, - ServerEP, - ReportError); + RemoteObjectServerLayer<MockObjectLayer, RPCEndpoint> Server( + AcknowledgeORCv1Deprecation, BaseLayer, ServerEP, ReportError); bool Finished = false; ServerEP.addHandler<remote::utils::TerminateSession>( |