clang-format fixes

pull/6214/head
Makarand Dharmapurikar 9 years ago
parent 274bcc8f0b
commit a93c4353e7
  1. 22
      src/core/ext/transport/cronet/transport/cronet_api_dummy.c
  2. 4
      src/core/ext/transport/cronet/transport/cronet_transport.c

@ -41,12 +41,11 @@ library, so we can build it in all environments */
#include "third_party/objective_c/Cronet/cronet_c_for_grpc.h" #include "third_party/objective_c/Cronet/cronet_c_for_grpc.h"
#ifdef GRPC_COMPILE_WITH_CRONET #ifdef GRPC_COMPILE_WITH_CRONET
/* link with the real CRONET library in the build system */ /* link with the real CRONET library in the build system */
#else #else
/* Dummy implementation of cronet API just to test for build-ability */ /* Dummy implementation of cronet API just to test for build-ability */
cronet_bidirectional_stream* cronet_bidirectional_stream_create( cronet_bidirectional_stream* cronet_bidirectional_stream_create(
cronet_engine* engine, cronet_engine* engine, void* annotation,
void* annotation,
cronet_bidirectional_stream_callback* callback) { cronet_bidirectional_stream_callback* callback) {
GPR_ASSERT(0); GPR_ASSERT(0);
return NULL; return NULL;
@ -58,26 +57,21 @@ int cronet_bidirectional_stream_destroy(cronet_bidirectional_stream* stream) {
} }
int cronet_bidirectional_stream_start( int cronet_bidirectional_stream_start(
cronet_bidirectional_stream* stream, cronet_bidirectional_stream* stream, const char* url, int priority,
const char* url, const char* method, const cronet_bidirectional_stream_header_array* headers,
int priority,
const char* method,
const cronet_bidirectional_stream_header_array* headers,
bool end_of_stream) { bool end_of_stream) {
GPR_ASSERT(0); GPR_ASSERT(0);
return 0; return 0;
} }
int cronet_bidirectional_stream_read(cronet_bidirectional_stream* stream, int cronet_bidirectional_stream_read(cronet_bidirectional_stream* stream,
char* buffer, char* buffer, int capacity) {
int capacity) {
GPR_ASSERT(0); GPR_ASSERT(0);
return 0; return 0;
} }
int cronet_bidirectional_stream_write(cronet_bidirectional_stream* stream, int cronet_bidirectional_stream_write(cronet_bidirectional_stream* stream,
const char* buffer, const char* buffer, int count,
int count,
bool end_of_stream) { bool end_of_stream) {
GPR_ASSERT(0); GPR_ASSERT(0);
return 0; return 0;
@ -88,4 +82,4 @@ int cronet_bidirectional_stream_cancel(cronet_bidirectional_stream* stream) {
return 0; return 0;
} }
#endif /* GRPC_COMPILE_WITH_CRONET */ #endif /* GRPC_COMPILE_WITH_CRONET */

@ -621,7 +621,9 @@ static void destroy_stream(grpc_exec_ctx *exec_ctx, grpc_transport *gt,
gpr_free(s->write_buffer); gpr_free(s->write_buffer);
gpr_free(s->url); gpr_free(s->url);
gpr_mu_destroy(&s->recv_mu); gpr_mu_destroy(&s->recv_mu);
if (and_free_memory) { gpr_free(and_free_memory); } if (and_free_memory) {
gpr_free(and_free_memory);
}
} }
static void destroy_transport(grpc_exec_ctx *exec_ctx, grpc_transport *gt) { static void destroy_transport(grpc_exec_ctx *exec_ctx, grpc_transport *gt) {

Loading…
Cancel
Save