[Bug 20035] Avatar cache reference implementation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 17 18:20:39 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=20035

--- Comment #21 from Xavier Claessens <xclaesse at gmail.com> 2010-05-17 09:20:38 PDT ---
(In reply to comment #20)
> prepare_avatar_requirements_cb
> 
> Shouldn't you use g_assert_no_error rather than ignoring errors?

It is done when the main_loop returns, that's how it's done in other tests too.

> We stopped using MYASSERT in new tests. Jut use g_assert, g_assert_cmpuint,
> etc.

Ok, fixed.

> create_contact_with_fake_avatar (ContactsConnection *service_conn,
>                                  TpConnection *client_conn,
>                                  const gchar *id)
> args should be 4 spaces aligned

fixed

>   MYASSERT_SAME_STRING (tp_contact_get_avatar_mimetype (contact),
> avatar_mimetype);
> this line is too long.

fixed

>   MYASSERT (avatar_retrieved_called == TRUE, "");
> juse use "g_assert (avatar_retrieved_called)"

fixed

>   g_setenv ("XDG_CACHE_HOME", "/tmp", TRUE);
> use g_get_tmp_dir()
> Shouldn't we create a subdirectory in /tmp to be sure to not have name clashes
> if files already exist?

fixed

> +avatar_data_new (GArray *data, const gchar *mimetype, const gchar *token)
> 
> +void contacts_connection_change_avatar_data (ContactsConnection *self,
> 
> +my_request_avatars (TpSvcConnectionInterfaceAvatars *avatars,
> +                    const GArray *contacts,
> style is wrong

fixed

> Did you valgrind the test?

I have no idea how you can make any sence out of the spammed logs... I don't
see anything really bad, but we are missing so much suppressions...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list