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
9e90d22a
Commit
9e90d22a
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
parent
b9a5e073
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/core/client_channel/set_initial_connect_string_test.c
+1
-2
1 addition, 2 deletions
test/core/client_channel/set_initial_connect_string_test.c
test/cpp/test/server_context_test_spouse_test.cc
+3
-0
3 additions, 0 deletions
test/cpp/test/server_context_test_spouse_test.cc
with
4 additions
and
2 deletions
test/core/client_channel/set_initial_connect_string_test.c
+
1
−
2
View file @
9e90d22a
...
@@ -208,8 +208,7 @@ static void match_initial_magic_string(grpc_slice_buffer *buffer) {
...
@@ -208,8 +208,7 @@ static void match_initial_magic_string(grpc_slice_buffer *buffer) {
size_t
magic_length
=
strlen
(
magic_connect_string
);
size_t
magic_length
=
strlen
(
magic_connect_string
);
GPR_ASSERT
(
buffer
->
length
>=
magic_length
);
GPR_ASSERT
(
buffer
->
length
>=
magic_length
);
for
(
i
=
0
,
j
=
0
;
i
<
state
.
incoming_buffer
.
count
&&
j
<
magic_length
;
i
++
)
{
for
(
i
=
0
,
j
=
0
;
i
<
state
.
incoming_buffer
.
count
&&
j
<
magic_length
;
i
++
)
{
char
*
dump
=
char
*
dump
=
grpc_slice_to_c_string
(
state
.
incoming_buffer
.
slices
[
i
]);
grpc_slice_to_c_string
(
state
.
incoming_buffer
.
slices
[
i
]);
cmp_length
=
GPR_MIN
(
strlen
(
dump
),
magic_length
-
j
);
cmp_length
=
GPR_MIN
(
strlen
(
dump
),
magic_length
-
j
);
GPR_ASSERT
(
strncmp
(
dump
,
magic_connect_string
+
j
,
cmp_length
)
==
0
);
GPR_ASSERT
(
strncmp
(
dump
,
magic_connect_string
+
j
,
cmp_length
)
==
0
);
j
+=
cmp_length
;
j
+=
cmp_length
;
...
...
This diff is collapsed.
Click to expand it.
test/cpp/test/server_context_test_spouse_test.cc
+
3
−
0
View file @
9e90d22a
...
@@ -36,11 +36,14 @@
...
@@ -36,11 +36,14 @@
#include
<cstring>
#include
<cstring>
#include
<vector>
#include
<vector>
#include
<grpc++/impl/grpc_library.h>
#include
<gtest/gtest.h>
#include
<gtest/gtest.h>
namespace
grpc
{
namespace
grpc
{
namespace
testing
{
namespace
testing
{
static
internal
::
GrpcLibraryInitializer
g_initializer
;
const
char
key1
[]
=
"metadata-key1"
;
const
char
key1
[]
=
"metadata-key1"
;
const
char
key2
[]
=
"metadata-key2"
;
const
char
key2
[]
=
"metadata-key2"
;
const
char
val1
[]
=
"metadata-val1"
;
const
char
val1
[]
=
"metadata-val1"
;
...
...
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