diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-09 08:37:42 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-09 08:37:42 -0800 |
commit | f4786c236115727c83bacb441a0558ce5c28ce8d (patch) | |
tree | 9a85ab898a457a4ae6b018686d9da6dfdb310a58 /test/core | |
parent | 2a2bee9c22d32704097d8fc45c5dabf5cdfb6406 (diff) |
Add basic verification
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/bad_client/tests/simple_request.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/core/bad_client/tests/simple_request.c b/test/core/bad_client/tests/simple_request.c index f192cda033..7cd46821f4 100644 --- a/test/core/bad_client/tests/simple_request.c +++ b/test/core/bad_client/tests/simple_request.c @@ -32,15 +32,18 @@ */ #include "test/core/bad_client/bad_client.h" + +#include <string.h> + #include "test/core/end2end/cq_verifier.h" #include "src/core/surface/server.h" #define PFX_STR \ - "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" /* settings frame */ \ - "\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* headers: generated from \ + "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ + "\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */ \ + "\x00\x00\xc9\x01\x04\x00\x00\x00\x01" /* headers: generated from \ simple_request.headers in this \ directory */ \ - "\x00\x00\xc9\x01\x04\x00\x00\x00\x01" \ "\x10\x05:path\x08/foo/bar" \ "\x10\x07:scheme\x04http" \ "\x10\x07:method\x04POST" \ @@ -70,6 +73,9 @@ static void verifier(grpc_server *server, grpc_completion_queue *cq) { cq_expect_completion(cqv, tag(101), 1); cq_verify(cqv); + GPR_ASSERT(0 == strcmp(call_details.host, "localhost")); + GPR_ASSERT(0 == strcmp(call_details.method, "/foo/bar")); + grpc_metadata_array_destroy(&request_metadata_recv); grpc_call_details_destroy(&call_details); grpc_call_destroy(s); |