summaryrefslogtreecommitdiff
path: root/tests/libebook/test-ebook-get-static-capabilities.c
blob: d225e04facb1ecd92baa4ae459f1cb6f8644966e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

#include <stdlib.h>
#include <libebook/e-book.h>

#include "ebook-test-utils.h"

gint
main (gint argc, gchar **argv)
{
	EBook *book;
	const gchar *caps;

	g_type_init ();

	/*
	 * Setup
	 */
	book = ebook_test_utils_book_new_temp (NULL);
	ebook_test_utils_book_open (book, FALSE);

	/*
	 * Sync version
	 */
	caps = ebook_test_utils_book_get_static_capabilities (book);

	test_print ("successfully retrieved static capabilities: '%s'\n", caps);

	ebook_test_utils_book_remove (book);

	return 0;
}