peripherals
1.4.2
RoadNarrows Robotics Hardware Peripherals Package
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ut-keyboard.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Package: Peripherals
4
//
5
/*! \file
6
*
7
* \ingroup periphs_ut
8
*
9
* \brief Unit test for libhid keyboard controller
10
*
11
* \author Daniel Packard (daniel@roadnarrows.com)
12
*
13
* \copyright
14
* \h_copy 2013-2017. RoadNarrows LLC.\n
15
* http://www.roadnarrows.com\n
16
* All Rights Reserved
17
*/
18
//
19
// Redistribution and use in source and binary forms, with or without
20
// modification, are permitted provided that the following conditions are met:
21
//
22
// 1. Redistributions of source code must retain the above copyright notice,
23
// this list of conditions and the following disclaimer.
24
//
25
// 2. Redistributions in binary form must reproduce the above copyright notice,
26
// this list of conditions and the following disclaimer in the documentation
27
// and/or other materials provided with the distribution.
28
//
29
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38
// POSSIBILITY OF SUCH DAMAGE.
39
//
40
// The views and conclusions contained in the software and documentation are
41
// those of the authors and should not be interpreted as representing official
42
// policies, either expressed or implied, of the FreeBSD Project.
43
44
#include <iostream>
45
#include <string>
46
47
#include <gtest/gtest.h>
48
49
using namespace
std
;
50
51
static
const
float
EPSILON = 0.0001;
52
/*!
53
* \ingroup periphs_ut
54
* \defgroup periphs_ut_libhid_keyboard
55
* \brief Fine-grained testing of keyboard library.
56
* \{
57
*/
58
59
/*!
60
* \}
61
*/
std
sw
libhid
ut
ut-keyboard.cxx
Generated on Fri Aug 10 2018 13:55:33 for peripherals by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com