udapted vi.po
[rhythmbox.git] / tests / test-utils.h
blob8161ddb4a0dfaa4e7ca27a2028d1e231b8670c86
2 #include "rhythmdb.h"
4 #ifndef __TEST_UTILS_H
5 #define __TEST_UTILS_H
7 #ifndef fail_if
8 #define fail_if(expr, ...) fail_unless(!(expr), "Failure '"#expr"' occured")
9 #endif
11 /* yes. really. */
12 extern RhythmDB *db;
14 void start_test_case (void);
15 void end_step (void);
16 void end_test_case (void);
18 void set_waiting_signal (GObject *o, const char *name);
19 void wait_for_signal (void);
21 void test_rhythmdb_setup (void);
22 void test_rhythmdb_shutdown (void);
24 void set_entry_string (RhythmDB *db, RhythmDBEntry *entry, RhythmDBPropType prop, const char *value);
25 void set_entry_ulong (RhythmDB *db, RhythmDBEntry *entry, RhythmDBPropType prop, gulong value);
26 void set_entry_hidden (RhythmDB *db, RhythmDBEntry *entry, gboolean hidden);
28 #endif /* __TEST_UTILS_H */