~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to testsuite/geis1/check_gesture_types.c

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file check_gesture_types.c
 
3
 * @brief Unit tests for GEIS v1 gesture types
 
4
 *
 
5
 * Copyright 2011 Canonical Ltd.
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or modify it under
 
8
 * the terms of the GNU Lesser General Public License as published by the Free
 
9
 * Software Foundation; either version 3 of the License, or (at your option) any
 
10
 * later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
14
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
15
 * details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 
19
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
20
 */
 
21
#include <check.h>
 
22
 
 
23
#include <geis/geis.h>
 
24
 
 
25
 
 
26
START_TEST(gesture_types)
 
27
{
 
28
  GeisInteger geis_type;
 
29
  GeisString  geis_type_name;
 
30
 
 
31
  geis_type = GEIS_GESTURE_PRIMITIVE_DRAG;
 
32
  geis_type = GEIS_GESTURE_PRIMITIVE_PINCH;
 
33
  geis_type = GEIS_GESTURE_PRIMITIVE_ROTATE;
 
34
  geis_type = GEIS_GESTURE_PRIMITIVE_TAP;
 
35
  geis_type = GEIS_GESTURE_PRIMITIVE_TOUCH;
 
36
 
 
37
  geis_type_name = GEIS_GESTURE_TYPE_DRAG1;
 
38
  geis_type_name = GEIS_GESTURE_TYPE_DRAG2;
 
39
  geis_type_name = GEIS_GESTURE_TYPE_DRAG3;
 
40
  geis_type_name = GEIS_GESTURE_TYPE_DRAG4;
 
41
  geis_type_name = GEIS_GESTURE_TYPE_DRAG5;
 
42
  geis_type_name = GEIS_GESTURE_TYPE_PINCH1;
 
43
  geis_type_name = GEIS_GESTURE_TYPE_PINCH2;
 
44
  geis_type_name = GEIS_GESTURE_TYPE_PINCH3;
 
45
  geis_type_name = GEIS_GESTURE_TYPE_PINCH4;
 
46
  geis_type_name = GEIS_GESTURE_TYPE_PINCH5;
 
47
  geis_type_name = GEIS_GESTURE_TYPE_ROTATE1;
 
48
  geis_type_name = GEIS_GESTURE_TYPE_ROTATE2;
 
49
  geis_type_name = GEIS_GESTURE_TYPE_ROTATE3;
 
50
  geis_type_name = GEIS_GESTURE_TYPE_ROTATE4;
 
51
  geis_type_name = GEIS_GESTURE_TYPE_ROTATE5;
 
52
  geis_type_name = GEIS_GESTURE_TYPE_TAP1;
 
53
  geis_type_name = GEIS_GESTURE_TYPE_TAP2;
 
54
  geis_type_name = GEIS_GESTURE_TYPE_TAP3;
 
55
  geis_type_name = GEIS_GESTURE_TYPE_TAP4;
 
56
  geis_type_name = GEIS_GESTURE_TYPE_TAP5;
 
57
  geis_type_name = GEIS_GESTURE_TYPE_TOUCH1;
 
58
  geis_type_name = GEIS_GESTURE_TYPE_TOUCH2;
 
59
  geis_type_name = GEIS_GESTURE_TYPE_TOUCH3;
 
60
  geis_type_name = GEIS_GESTURE_TYPE_TOUCH4;
 
61
  geis_type_name = GEIS_GESTURE_TYPE_TOUCH5;
 
62
}
 
63
END_TEST
 
64
 
 
65
Suite *
 
66
geis1_gesture_types_new()
 
67
{
 
68
  Suite *s = suite_create("geis1_gesture_types");
 
69
  TCase *test;
 
70
 
 
71
  test = tcase_create("gesture_types");
 
72
  tcase_add_test(test, gesture_types);
 
73
  suite_add_tcase(s, test);
 
74
 
 
75
  return s;
 
76
}
 
77