YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeJoypad_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7#include <yarp/os/Network.h>
11
12#include <catch2/catch_amalgamated.hpp>
13#include <harness.h>
14
15using namespace yarp::dev;
16using namespace yarp::sig;
17using namespace yarp::os;
18
19TEST_CASE("dev::fakeJoypad", "[yarp::dev]")
20{
21 YARP_REQUIRE_PLUGIN("fakeJoypad", "device");
22
23 Network::setLocalMode(true);
24
25 SECTION("Checking fakeJoypad device")
26 {
28 IJoypadController* ijoy = nullptr;
29
31 {
33 cfg.put("device", "fakeJoypad");
35 REQUIRE(fakedev.view(ijoy));
36 }
37
38 //execute tests
40
41 //"Close all polydrivers and check"
43 }
44
45 Network::setLocalMode(false);
46}
A container for a device driver.
Definition PolyDriver.h:23
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A class for storing options and configuration information.
Definition Property.h:33
TEST_CASE("dev::fakeJoypad", "[yarp::dev]")
void exec_iJoypadController_test_1(yarp::dev::IJoypadController *iJoy)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.