~psusi/ubuntu/natty/upower/sleep

« back to all changes in this revision

Viewing changes to src/egg-test.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-07-12 14:43:12 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100712144312-mk9w8zlsw2cztdb7
Tags: 0.9.5-1
* New upstream release:
  - Dynamic testing for enough hibernate swap. (LP: #599352)
  - Port UPower to libusb1 to avoid unfixable crashes. (LP: #522827)
* debian/rules: Build a PO template during package build, for translation
  systems. (LP: #538321)
* debian/control: Switch libusb-dev build dependency to libusb-1.0-0-dev,
  and add libimobiledevice-dev to support the new backend.
* debian/control: Bump Standards-Version to 3.9.0; no changes necessary.
* Drop transitional devicekit-power-doc package. It's been in testing long
  enough, and we do not want to carry it into the squeeze release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com>
4
 
 *
5
 
 * Licensed under the GNU General Public License Version 2
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
10
 
 * (at your option) any later version.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
 
 */
21
 
 
22
 
#ifndef __EGG_TEST_H
23
 
#define __EGG_TEST_H
24
 
 
25
 
#include <glib.h>
26
 
#include <string.h>
27
 
 
28
 
typedef struct EggTest EggTest;
29
 
 
30
 
gboolean         egg_test_start                 (EggTest *test, const gchar *name);
31
 
void             egg_test_end                   (EggTest *test);
32
 
void             egg_test_title                 (EggTest *test, const gchar *format, ...);
33
 
void             egg_test_title_assert          (EggTest *test, const gchar *text, gboolean value);
34
 
void             egg_test_assert                (EggTest *test, gboolean value);
35
 
void             egg_test_success               (EggTest *test, const gchar *format, ...);
36
 
void             egg_test_failed                (EggTest *test, const gchar *format, ...) G_GNUC_NORETURN;
37
 
EggTest         *egg_test_init                  (void);
38
 
gint             egg_test_finish                (EggTest *test);
39
 
guint            egg_test_elapsed               (EggTest *test);
40
 
void             egg_test_loop_quit             (EggTest *test);
41
 
void             egg_test_loop_wait             (EggTest *test, guint timeout);
42
 
void             egg_test_loop_check            (EggTest *test);
43
 
void             egg_test_set_user_data         (EggTest *test, gpointer user_data);
44
 
gpointer         egg_test_get_user_data         (EggTest *test);
45
 
gchar           *egg_test_get_data_file         (const gchar *filename);
46
 
 
47
 
#endif  /* __EGG_TEST_H */
48