summaryrefslogtreecommitdiff
path: root/tests/context_tests.h
blob: 1a6907cfec9b6bb7abba534d9d4812559e702bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CONTEXT_TESTS_H
#define CONTEXT_TESTS_H

#include <glib.h>
#include "webvicontext.h"

typedef struct {
  WebviCtx handle;
  struct WebviContext *context;
} ContextFixture;

void context_fixture_setup(ContextFixture *fixture,
                           gconstpointer test_data);
void context_fixture_teardown(ContextFixture *fixture,
                              gconstpointer test_data);

void test_context_create(void);
void test_context_template_path(ContextFixture *fixture,
                                gconstpointer test_data);
void test_context_request_processing(ContextFixture *fixture,
                                     gconstpointer test_data);

#endif // CONTEXT_TESTS_H