]> git.0d.be Git - empathy.git/commitdiff
fake the profile and the CM for tests
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:54:05 +0000 (07:54 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:54:05 +0000 (07:54 +0000)
svn path=/trunk/; revision=1549

tests/Makefile.am
tests/check-empathy-chatroom.c
tests/test.manager [new file with mode: 0644]
tests/test.profile [new file with mode: 0644]

index 6134aa142cab65dbd10faa12c52d230e28f1ceed..ccf6c8f1da5751cb8accc59fcac34118a5e6c165 100644 (file)
@@ -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
index fca2f128670f28da70908278caed7b9ad191827b..1e426b5520a0ad20104f5f329c7410191efecf5b 100644 (file)
@@ -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 (file)
index 0000000..8a49c32
--- /dev/null
@@ -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 (file)
index 0000000..20e552a
--- /dev/null
@@ -0,0 +1,4 @@
+[Profile]
+Manager = test
+Protocol = test
+DisplayName = test