56 bool same = (time_sec == expected_seconds);
57 fprintf(stderr,
"is %d us same as %d seconds? %s\n",
58 (
int)time_usec, expected_seconds,
66 snprintf(msg,
sizeof(msg),
"about %d seconds should have passed", seconds);
85 data.progress.t_nslookup = 0;
86 data.progress.t_connect = 0;
87 data.progress.t_appconnect = 0;
88 data.progress.t_pretransfer = 0;
89 data.progress.t_starttransfer = 0;
90 data.progress.t_redirect = 0;
104 data.progress.t_redirect =
data.progress.t_starttransfer + 1;
static int usec_magnitude
void Curl_pgrsTime(struct Curl_easy *data, timerid timer)
static bool unit_setup(void)
static void fake_t_startsingle_time(struct Curl_easy *data, struct curltime fake_now, int seconds_offset)
#define fail_unless(expr, msg)
static void unit_stop(void)
static void expect_timer_seconds(struct Curl_easy *data, int seconds)
struct curltime t_startsingle
static bool usec_matches_seconds(time_t time_usec, int expected_seconds)