aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test12.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2000-05-02 07:51:27 +0800
committernobody <nobody@localhost>2000-05-02 07:51:27 +0800
commit7882fd81661586ecf3a33e725fef29d7c6657dc9 (patch)
tree02764133d670788239da089583f787e455be8439 /tests/test12.c
parent46a917144878351adb2db43ab27179a271a03d7d (diff)
downloadgsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar.gz
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar.bz2
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar.lz
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar.xz
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.tar.zst
gsoc2013-evolution-7882fd81661586ecf3a33e725fef29d7c6657dc9.zip
This commit was manufactured by cvs2svn to create tag 'GTKHTML_0_2'.GTKHTML_0_2
svn path=/tags/GTKHTML_0_2/; revision=2738
Diffstat (limited to 'tests/test12.c')
-rw-r--r--tests/test12.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/tests/test12.c b/tests/test12.c
deleted file mode 100644
index 223eb980a8..0000000000
--- a/tests/test12.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-
-#include <stdio.h>
-
-#include "camel.h"
-#include "camel-nntp-store.h"
-#include "camel-session.h"
-#include "camel-exception.h"
-
-static char*
-authenticator (char *prompt, gboolean secret, CamelService *service, char *item,
- CamelException *ex)
-{
-}
-
-static void
-print_name(gpointer data, gpointer foo)
-{
- printf ("%s\n", (char*)data);
-}
-
-int
-main (int argc, char **argv)
-{
- CamelSession *session;
- CamelException *ex;
- CamelStore *store;
- CamelFolder *n_p_m_a;
- GList *groups;
- const gchar *news_url = "news://news.mozilla.org";
-
- gtk_init (&argc, &argv);
- camel_init ();
- ex = camel_exception_new ();
-
- g_assert (camel_provider_register_as_module ("/usr/local/lib/evolution/camel-providers/0.0.1/libcamelnntp.so"));
-
- session = camel_session_new (authenticator);
- store = camel_session_get_store (session, news_url, ex);
-
- g_assert (store);
-
- camel_nntp_store_subscribe_group (store, "netscape.public.mozilla.announce");
-
- printf ("subscribed groups on %s\n", news_url);
-
- groups = camel_nntp_store_list_subscribed_groups (store);
-
- g_list_foreach(groups, print_name, NULL);
-
- n_p_m_a = camel_store_get_folder (store, "netscape.public.mozilla.announce", ex);
-
- camel_folder_open(n_p_m_a, FOLDER_OPEN_READ, ex);
-
- camel_folder_close(n_p_m_a, FALSE, ex);
-}