Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
a93c4353
Commit
a93c4353
authored
8 years ago
by
Makarand Dharmapurikar
Browse files
Options
Downloads
Patches
Plain Diff
clang-format fixes
parent
274bcc8f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/ext/transport/cronet/transport/cronet_api_dummy.c
+8
-14
8 additions, 14 deletions
src/core/ext/transport/cronet/transport/cronet_api_dummy.c
src/core/ext/transport/cronet/transport/cronet_transport.c
+3
-1
3 additions, 1 deletion
src/core/ext/transport/cronet/transport/cronet_transport.c
with
11 additions
and
15 deletions
src/core/ext/transport/cronet/transport/cronet_api_dummy.c
+
8
−
14
View file @
a93c4353
...
...
@@ -41,12 +41,11 @@ library, so we can build it in all environments */
#include
"third_party/objective_c/Cronet/cronet_c_for_grpc.h"
#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
/* 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_engine
*
engine
,
void
*
annotation
,
cronet_engine
*
engine
,
void
*
annotation
,
cronet_bidirectional_stream_callback
*
callback
)
{
GPR_ASSERT
(
0
);
return
NULL
;
...
...
@@ -58,26 +57,21 @@ int cronet_bidirectional_stream_destroy(cronet_bidirectional_stream* stream) {
}
int
cronet_bidirectional_stream_start
(
cronet_bidirectional_stream
*
stream
,
const
char
*
url
,
int
priority
,
const
char
*
method
,
const
cronet_bidirectional_stream_header_array
*
headers
,
cronet_bidirectional_stream
*
stream
,
const
char
*
url
,
int
priority
,
const
char
*
method
,
const
cronet_bidirectional_stream_header_array
*
headers
,
bool
end_of_stream
)
{
GPR_ASSERT
(
0
);
return
0
;
}
int
cronet_bidirectional_stream_read
(
cronet_bidirectional_stream
*
stream
,
char
*
buffer
,
int
capacity
)
{
char
*
buffer
,
int
capacity
)
{
GPR_ASSERT
(
0
);
return
0
;
}
int
cronet_bidirectional_stream_write
(
cronet_bidirectional_stream
*
stream
,
const
char
*
buffer
,
int
count
,
const
char
*
buffer
,
int
count
,
bool
end_of_stream
)
{
GPR_ASSERT
(
0
);
return
0
;
...
...
@@ -88,4 +82,4 @@ int cronet_bidirectional_stream_cancel(cronet_bidirectional_stream* stream) {
return
0
;
}
#endif
/* GRPC_COMPILE_WITH_CRONET */
#endif
/* GRPC_COMPILE_WITH_CRONET */
This diff is collapsed.
Click to expand it.
src/core/ext/transport/cronet/transport/cronet_transport.c
+
3
−
1
View file @
a93c4353
...
...
@@ -621,7 +621,9 @@ static void destroy_stream(grpc_exec_ctx *exec_ctx, grpc_transport *gt,
gpr_free
(
s
->
write_buffer
);
gpr_free
(
s
->
url
);
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment