aboutsummaryrefslogtreecommitdiff
path: root/src/testspdy/test_request_response_with_callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testspdy/test_request_response_with_callback.c')
-rw-r--r--src/testspdy/test_request_response_with_callback.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testspdy/test_request_response_with_callback.c b/src/testspdy/test_request_response_with_callback.c
index 81a69581..c22917c5 100644
--- a/src/testspdy/test_request_response_with_callback.c
+++ b/src/testspdy/test_request_response_with_callback.c
@@ -114,7 +114,7 @@ standard_request_handler(void *cls,
114 114
115 printf("received request for '%s %s %s'\n", method, path, version); 115 printf("received request for '%s %s %s'\n", method, path, version);
116 116
117 FILE *fd = fopen(DATADIR "spdy-draft.txt","r"); 117 FILE *fd = fopen(DATA_DIR "spdy-draft.txt","r");
118 118
119 if(NULL == (resp_headers = SPDY_name_value_create())) 119 if(NULL == (resp_headers = SPDY_name_value_create()))
120 { 120 {
@@ -161,8 +161,8 @@ parentproc()
161 SPDY_init(); 161 SPDY_init();
162 162
163 daemon = SPDY_start_daemon(port, 163 daemon = SPDY_start_daemon(port,
164 DATADIR "cert-and-key.pem", 164 DATA_DIR "cert-and-key.pem",
165 DATADIR "cert-and-key.pem", 165 DATA_DIR "cert-and-key.pem",
166 NULL, 166 NULL,
167 NULL, 167 NULL,
168 &standard_request_handler, 168 &standard_request_handler,
@@ -257,7 +257,7 @@ childproc()
257 uint64_t usecs; 257 uint64_t usecs;
258 258
259 asprintf(&cmd1, "spdycat https://127.0.0.1:%i/ | md5sum",port); 259 asprintf(&cmd1, "spdycat https://127.0.0.1:%i/ | md5sum",port);
260 asprintf(&cmd2, "md5sum " DATADIR "spdy-draft.txt"); 260 asprintf(&cmd2, "md5sum " DATA_DIR "spdy-draft.txt");
261 261
262 gettimeofday(&tv1, NULL); 262 gettimeofday(&tv1, NULL);
263 md5(cmd1,md5_sum1); 263 md5(cmd1,md5_sum1);
@@ -268,7 +268,7 @@ childproc()
268 printf("original file md5: %s\n", md5_sum2); 268 printf("original file md5: %s\n", md5_sum2);
269 ret = strcmp(md5_sum1, md5_sum2); 269 ret = strcmp(md5_sum1, md5_sum2);
270 270
271 if(0 == ret && 0 == stat(DATADIR "spdy-draft.txt", &st)) 271 if(0 == ret && 0 == stat(DATA_DIR "spdy-draft.txt", &st))
272 { 272 {
273 usecs = (uint64_t)1000000 * (uint64_t)(tv2.tv_sec - tv1.tv_sec) + tv2.tv_usec - tv1.tv_usec; 273 usecs = (uint64_t)1000000 * (uint64_t)(tv2.tv_sec - tv1.tv_sec) + tv2.tv_usec - tv1.tv_usec;
274 printf("%i bytes read in %i usecs\n", st.st_size, usecs); 274 printf("%i bytes read in %i usecs\n", st.st_size, usecs);