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

« back to all changes in this revision

Viewing changes to libgeis/geis_test_api.h

  • 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 geis_test_api.h
 
3
 * @brief internal interface of the GEIS test API
 
4
 *
 
5
 * This header exposes the GEIS internal test API for use in the GEIS test
 
6
 * suite.
 
7
 */
 
8
 
 
9
/*
 
10
 * Copyright 2012 Canonical Ltd.
 
11
 *
 
12
 * This library is free software; you can redistribute it and/or modify it under
 
13
 * the terms of the GNU Lesser General Public License as published by the Free
 
14
 * Software Foundation; either version 3 of the License, or (at your option) any
 
15
 * later version.
 
16
 *
 
17
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
18
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
19
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
20
 * details.
 
21
 *
 
22
 * You should have received a copy of the GNU General Public License
 
23
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
24
 */
 
25
#ifndef GEIS_TEST_API_H_
 
26
#define GEIS_TEST_API_H_
 
27
 
 
28
/**
 
29
 * Back end to use in unit testing.
 
30
 */
 
31
#define GEIS_INIT_MOCK_BACKEND    "com.canonical.oif.backend.mock"
 
32
 
 
33
/**
 
34
 * Causes device messages to be discarded from back end.
 
35
 *
 
36
 * Argument is of tyep GeisBoolean.  GEIS_TRUE means device messages will be
 
37
 * discarded, GEIS_FALSE means messages will not be discarded.
 
38
 *
 
39
 * This cofiguration option is intended to be used with various device-related
 
40
 * integration and unit tests.
 
41
 */
 
42
#define GEIS_CONFIG_DISCARD_DEVICE_MESSAGES "com.canonical.oif.discard.device"
 
43
 
 
44
#endif /* GEIS_TEST_API_H_ */