Fix the socket pair fixtures to include the http filters.

Without this these tests start failing if the server starts checking that it
received the necessary headers.
	Change on 2014/12/23 by klempner <klempner@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82748741
pull/1/merge
klempner 10 years ago committed by Jan Tattermusch
parent 55af9b60cc
commit cd45aadc10
  1. 6
      test/core/end2end/fixtures/chttp2_socket_pair.c
  2. 6
      test/core/end2end/fixtures/chttp2_socket_pair_one_byte_at_a_time.c

@ -38,6 +38,7 @@
#include "src/core/channel/client_channel.h"
#include "src/core/channel/connected_channel.h"
#include "src/core/channel/http_filter.h"
#include "src/core/channel/http_client_filter.h"
#include "src/core/channel/http_server_filter.h"
#include "src/core/iomgr/endpoint_pair.h"
#include "src/core/iomgr/iomgr.h"
@ -74,8 +75,9 @@ static grpc_transport_setup_result client_setup_transport(
void *ts, grpc_transport *transport, grpc_mdctx *mdctx) {
sp_client_setup *cs = ts;
const grpc_channel_filter *filters[] = {&grpc_client_surface_filter,
&grpc_connected_channel_filter};
const grpc_channel_filter *filters[] = {
&grpc_client_surface_filter, &grpc_http_client_filter, &grpc_http_filter,
&grpc_connected_channel_filter};
size_t nfilters = sizeof(filters) / sizeof(*filters);
grpc_channel *channel = grpc_channel_create_from_filters(
filters, nfilters, cs->client_args, mdctx, 1);

@ -38,6 +38,7 @@
#include "src/core/channel/client_channel.h"
#include "src/core/channel/connected_channel.h"
#include "src/core/channel/http_filter.h"
#include "src/core/channel/http_client_filter.h"
#include "src/core/channel/http_server_filter.h"
#include "src/core/iomgr/endpoint_pair.h"
#include "src/core/iomgr/iomgr.h"
@ -74,8 +75,9 @@ static grpc_transport_setup_result client_setup_transport(
void *ts, grpc_transport *transport, grpc_mdctx *mdctx) {
sp_client_setup *cs = ts;
const grpc_channel_filter *filters[] = {&grpc_client_surface_filter,
&grpc_connected_channel_filter};
const grpc_channel_filter *filters[] = {
&grpc_client_surface_filter, &grpc_http_client_filter, &grpc_http_filter,
&grpc_connected_channel_filter};
size_t nfilters = sizeof(filters) / sizeof(*filters);
grpc_channel *channel = grpc_channel_create_from_filters(
filters, nfilters, cs->client_args, mdctx, 1);

Loading…
Cancel
Save