Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
b
c
d
e
f
i
m
n
o
p
s
t
v
w
Functions
Variables
Typedefs
Enumerations
Enumerator
b
c
f
i
m
o
s
t
v
w
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
c
d
e
f
g
i
n
o
p
r
s
u
v
~
Variables
a
b
c
d
e
f
h
i
m
n
p
r
s
t
v
w
x
y
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
a
b
c
g
m
s
t
Functions
m
t
Macros
tests
test_create.cpp
Go to the documentation of this file.
1
31
#include "
create/create.h
"
32
#include "
create/types.h
"
33
34
#include "gtest/gtest.h"
35
36
TEST
(CreateTest, ConstructorSingleParam)
37
{
38
create::Create
create_default;
39
40
create::Create
create_1(
create::RobotModel::CREATE_1
);
41
42
create::Create
create_2(
create::RobotModel::CREATE_2
);
43
44
create::Create
create_roomba_400(
create::RobotModel::ROOMBA_400
);
45
}
46
47
// TEST(CreateTest, ConstructorMultiParam)
48
// {
49
// TODO(jacobperron): Document exception thrown and consider defining custom exception
50
// create::Create create(std::string("/dev/ttyUSB0"), 11520);
51
// }
52
53
TEST
(CreateTest, Connected)
54
{
55
create::Create
create
;
56
// Nothing to be connected to
57
EXPECT_FALSE(
create
.connected());
58
}
59
60
TEST
(CreateTest, Disconnect)
61
{
62
create::Create
create
;
63
// Even though not connected, this should not crash
64
create
.disconnect();
65
}
TEST
TEST(CreateTest, ConstructorSingleParam)
Definition:
test_create.cpp:36
types.h
create::Create
Definition:
create.h:49
create::RobotModel::CREATE_2
static RobotModel CREATE_2
Compatible with Create 2 or Roomba 600 series and greater.
Definition:
types.h:73
create.h
create::RobotModel::CREATE_1
static RobotModel CREATE_1
Compatible with Create 1 or Roomba 500 series.
Definition:
types.h:68
create::RobotModel::ROOMBA_400
static RobotModel ROOMBA_400
Compatible with Roomba 400 series and earlier.
Definition:
types.h:63
create
Definition:
create.h:48
libcreate
Author(s): Jacob Perron
autogenerated on Wed May 24 2023 02:24:57