diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-10-04 00:18:22 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-10-04 10:30:17 +0100 |
commit | a6762e29ab0ffb275e907fe927c7fe96e3b1dfc8 (patch) | |
tree | 2b30eb2aaa547e31b2f8f2b1fc3c27fc964a455f /gdata/tests/youtube.c | |
parent | fc13dc995e8afc12e154f384554cbf613da76e48 (diff) | |
download | libgdata-a6762e29ab0ffb275e907fe927c7fe96e3b1dfc8.tar.gz |
core: Use gint64 timestamps instead of GTimeVals
This means we no longer have to register GTimeVal with the GType system, and
everything is generally neater because we never used GTimeVal's microsecond
precision anyway.
Diffstat (limited to 'gdata/tests/youtube.c')
-rw-r--r-- | gdata/tests/youtube.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gdata/tests/youtube.c b/gdata/tests/youtube.c index b2d2ae39..d86a852f 100644 --- a/gdata/tests/youtube.c +++ b/gdata/tests/youtube.c @@ -375,7 +375,7 @@ static void test_parsing_yt_recorded (void) { GDataYouTubeVideo *video; - GTimeVal recorded; + gint64 recorded; gchar *xml; GError *error = NULL; @@ -408,13 +408,12 @@ test_parsing_yt_recorded (void) g_clear_error (&error); /* Test the recorded date */ - gdata_youtube_video_get_recorded (video, &recorded); - g_assert_cmpint (recorded.tv_sec, ==, 1059868800); - g_assert_cmpint (recorded.tv_usec, ==, 0); + recorded = gdata_youtube_video_get_recorded (video); + g_assert_cmpint (recorded, ==, 1059868800); /* Update the state and see if the XML's written out OK */ - recorded.tv_sec = 1128229200; - gdata_youtube_video_set_recorded (video, &recorded); + recorded = 1128229200; + gdata_youtube_video_set_recorded (video, recorded); /* Check the XML */ xml = gdata_parsable_get_xml (GDATA_PARSABLE (video)); |