|
|
@ -69,11 +69,11 @@ TEST(XdsChannelStackModifierTest, XdsHttpFiltersInsertion) { |
|
|
|
grpc_init(); |
|
|
|
grpc_init(); |
|
|
|
// Add 2 test filters to XdsChannelStackModifier
|
|
|
|
// Add 2 test filters to XdsChannelStackModifier
|
|
|
|
const grpc_channel_filter test_filter_1 = { |
|
|
|
const grpc_channel_filter test_filter_1 = { |
|
|
|
nullptr, nullptr, 0, nullptr, nullptr, nullptr, |
|
|
|
nullptr, nullptr, nullptr, 0, nullptr, nullptr, |
|
|
|
0, nullptr, nullptr, nullptr, kTestFilter1}; |
|
|
|
nullptr, 0, nullptr, nullptr, nullptr, kTestFilter1}; |
|
|
|
const grpc_channel_filter test_filter_2 = { |
|
|
|
const grpc_channel_filter test_filter_2 = { |
|
|
|
nullptr, nullptr, 0, nullptr, nullptr, nullptr, |
|
|
|
nullptr, nullptr, nullptr, 0, nullptr, nullptr, |
|
|
|
0, nullptr, nullptr, nullptr, kTestFilter2}; |
|
|
|
nullptr, 0, nullptr, nullptr, nullptr, kTestFilter2}; |
|
|
|
auto channel_stack_modifier = MakeRefCounted<XdsChannelStackModifier>( |
|
|
|
auto channel_stack_modifier = MakeRefCounted<XdsChannelStackModifier>( |
|
|
|
std::vector<const grpc_channel_filter*>{&test_filter_1, &test_filter_2}); |
|
|
|
std::vector<const grpc_channel_filter*>{&test_filter_1, &test_filter_2}); |
|
|
|
grpc_arg arg = channel_stack_modifier->MakeChannelArg(); |
|
|
|
grpc_arg arg = channel_stack_modifier->MakeChannelArg(); |
|
|
@ -114,11 +114,11 @@ TEST(XdsChannelStackModifierTest, XdsHttpFiltersInsertionAfterCensus) { |
|
|
|
grpc_init(); |
|
|
|
grpc_init(); |
|
|
|
// Add 2 test filters to XdsChannelStackModifier
|
|
|
|
// Add 2 test filters to XdsChannelStackModifier
|
|
|
|
const grpc_channel_filter test_filter_1 = { |
|
|
|
const grpc_channel_filter test_filter_1 = { |
|
|
|
nullptr, nullptr, 0, nullptr, nullptr, nullptr, |
|
|
|
nullptr, nullptr, nullptr, 0, nullptr, nullptr, |
|
|
|
0, nullptr, nullptr, nullptr, kTestFilter1}; |
|
|
|
nullptr, 0, nullptr, nullptr, nullptr, kTestFilter1}; |
|
|
|
const grpc_channel_filter test_filter_2 = { |
|
|
|
const grpc_channel_filter test_filter_2 = { |
|
|
|
nullptr, nullptr, 0, nullptr, nullptr, nullptr, |
|
|
|
nullptr, nullptr, nullptr, 0, nullptr, nullptr, |
|
|
|
0, nullptr, nullptr, nullptr, kTestFilter2}; |
|
|
|
nullptr, 0, nullptr, nullptr, nullptr, kTestFilter2}; |
|
|
|
auto channel_stack_modifier = MakeRefCounted<XdsChannelStackModifier>( |
|
|
|
auto channel_stack_modifier = MakeRefCounted<XdsChannelStackModifier>( |
|
|
|
std::vector<const grpc_channel_filter*>{&test_filter_1, &test_filter_2}); |
|
|
|
std::vector<const grpc_channel_filter*>{&test_filter_1, &test_filter_2}); |
|
|
|
grpc_arg arg = channel_stack_modifier->MakeChannelArg(); |
|
|
|
grpc_arg arg = channel_stack_modifier->MakeChannelArg(); |
|
|
|