diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:54:05 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:54:05 +0800 |
commit | 861c07c7e33e1a0145d9a46fa98e5b50e0cee19b (patch) | |
tree | e924e38044a7a97f476a31cf6eabba020b2529a3 | |
parent | f0762d3d556c168c9ec1d85d69cf10cdf2fef97a (diff) | |
download | gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar.gz gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar.bz2 gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar.lz gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar.xz gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.tar.zst gsoc2013-empathy-861c07c7e33e1a0145d9a46fa98e5b50e0cee19b.zip |
fake the profile and the CM for tests
svn path=/trunk/; revision=1549
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/check-empathy-chatroom.c | 3 | ||||
-rw-r--r-- | tests/test.manager | 5 | ||||
-rw-r--r-- | tests/test.profile | 4 |
4 files changed, 13 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6134aa142..ccf6c8f1d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -51,4 +51,6 @@ check_main_CFLAGS = \ @CHECK_CFLAGS@ \ $(AM_CFLAGS) -TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ +TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \ + MC_PROFILE_DIR=@abs_top_srcdir@/tests \ + MC_MANAGER_DIR=@abs_top_srcdir@/tests diff --git a/tests/check-empathy-chatroom.c b/tests/check-empathy-chatroom.c index fca2f1286..1e426b552 100644 --- a/tests/check-empathy-chatroom.c +++ b/tests/check-empathy-chatroom.c @@ -15,8 +15,7 @@ create_chatroom (void) McAccount *account; EmpathyChatroom *chatroom; - /* FIXME: we should fake the profile */ - profile = mc_profile_lookup ("jabber"); + profile = mc_profile_lookup ("test"); account = mc_account_create (profile); chatroom = empathy_chatroom_new (account); fail_if (chatroom == NULL); diff --git a/tests/test.manager b/tests/test.manager new file mode 100644 index 000000000..8a49c3267 --- /dev/null +++ b/tests/test.manager @@ -0,0 +1,5 @@ +[ConnectionManager] +BusName=org.freedesktop.Telepathy.ConnectionManager.test +ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/test + +[Protocol test] diff --git a/tests/test.profile b/tests/test.profile new file mode 100644 index 000000000..20e552a1a --- /dev/null +++ b/tests/test.profile @@ -0,0 +1,4 @@ +[Profile] +Manager = test +Protocol = test +DisplayName = test |