Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ void complete(const bsl::shared_ptr<int>& check,
int status,
const bsl::string& errorDescription,
const bsl::shared_ptr<mqbnet::Session>& session,
const bsl::shared_ptr<bmqio::Channel>& channel,
const mqbnet::InitialConnectionContext* initialConnectionContext)
const bsl::shared_ptr<bmqio::Channel>& channel)
{
BSLS_ASSERT_SAFE(check);

Expand All @@ -55,7 +54,6 @@ void complete(const bsl::shared_ptr<int>& check,
(void)errorDescription;
(void)session;
(void)channel;
(void)initialConnectionContext;
}

// Mock authenticator
Expand Down Expand Up @@ -128,14 +126,12 @@ static void test1_initialConnectionContext()

bsl::shared_ptr<int> check = bsl::allocate_shared<int>(alloc, 0);
mqbnet::InitialConnectionContext::InitialConnectionCompleteCb completeCb =
bdlf::BindUtil::bind(
&complete,
check,
bdlf::PlaceHolders::_1, // status
bdlf::PlaceHolders::_2, // errorDescription
bdlf::PlaceHolders::_3, // session
bdlf::PlaceHolders::_4, // channel
bdlf::PlaceHolders::_5 // initialConnectionContext
bdlf::BindUtil::bind(&complete,
check,
bdlf::PlaceHolders::_1, // status
bdlf::PlaceHolders::_2, // errorDescription
bdlf::PlaceHolders::_3, // session
bdlf::PlaceHolders::_4 // channel
);

bmqtst::TestHelper::printTestName("test1_basicConstruction");
Expand Down Expand Up @@ -175,12 +171,11 @@ static void test1_initialConnectionContext()
bsl::shared_ptr<mqbnet::AuthenticationContext> authnCtx =
bsl::allocate_shared<mqbnet::AuthenticationContext>(
alloc,
nullptr, // initialConnectionContext
&obj,
"testMechanism",
authnMsg,
bmqp::EncodingType::e_BER,
mqbnet::AuthenticationState::e_AUTHENTICATING,
alloc);
mqbnet::AuthenticationState::e_AUTHENTICATING);
obj.setAuthenticationContext(authnCtx);
BMQTST_ASSERT_EQ(authnCtx, obj.authenticationContext());
}
Expand Down
Loading