Lines Matching refs:data

46 static void fake_t_startsingle_time(struct Curl_easy *data,  in fake_t_startsingle_time()  argument
50 Curl_pgrsTime(data, TIMER_STARTSINGLE); in fake_t_startsingle_time()
51 data->progress.t_startsingle.tv_sec = fake_now.tv_sec + seconds_offset; in fake_t_startsingle_time()
52 data->progress.t_startsingle.tv_usec = fake_now.tv_usec; in fake_t_startsingle_time()
65 static void expect_timer_seconds(struct Curl_easy *data, int seconds) in expect_timer_seconds() argument
69 fail_unless(usec_matches_seconds(data->progress.t_nslookup, seconds), msg); in expect_timer_seconds()
70 fail_unless(usec_matches_seconds(data->progress.t_connect, seconds), msg); in expect_timer_seconds()
71 fail_unless(usec_matches_seconds(data->progress.t_appconnect, seconds), msg); in expect_timer_seconds()
72 fail_unless(usec_matches_seconds(data->progress.t_pretransfer, seconds), in expect_timer_seconds()
74 fail_unless(usec_matches_seconds(data->progress.t_starttransfer, seconds), in expect_timer_seconds()
84 struct Curl_easy data; variable
87 data.progress.t_nslookup = 0;
88 data.progress.t_connect = 0;
89 data.progress.t_appconnect = 0;
90 data.progress.t_pretransfer = 0;
91 data.progress.t_starttransfer = 0;
92 data.progress.t_redirect = 0;
93 data.progress.start.tv_sec = now.tv_sec - 2;
94 data.progress.start.tv_usec = now.tv_usec;
95 fake_t_startsingle_time(&data, now, -2);
97 Curl_pgrsTime(&data, TIMER_NAMELOOKUP);
98 Curl_pgrsTime(&data, TIMER_CONNECT);
99 Curl_pgrsTime(&data, TIMER_APPCONNECT);
100 Curl_pgrsTime(&data, TIMER_PRETRANSFER);
101 Curl_pgrsTime(&data, TIMER_STARTTRANSFER);
103 expect_timer_seconds(&data, 2);
106 data.progress.t_redirect = data.progress.t_starttransfer + 1;
107 fake_t_startsingle_time(&data, now, -1);
109 Curl_pgrsTime(&data, TIMER_NAMELOOKUP);
110 Curl_pgrsTime(&data, TIMER_CONNECT);
111 Curl_pgrsTime(&data, TIMER_APPCONNECT);
112 Curl_pgrsTime(&data, TIMER_PRETRANSFER);
115 Curl_pgrsTime(&data, TIMER_STARTTRANSFER);
116 Curl_pgrsTime(&data, TIMER_STARTTRANSFER);
118 expect_timer_seconds(&data, 3);