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
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::sig;
18using namespace yarp::os;
19
20TEST_CASE("dev::fakeJoypad", "[yarp::dev]")
21{
22 YARP_REQUIRE_PLUGIN("fakeJoypad", "device");
23
24 Network::setLocalMode(true);
25
26 SECTION("Checking fakeJoypad device")
27 {
29 IJoypadController* ijoy = nullptr;
30
32 {
34 cfg.put("device", "fakeJoypad");
37
38 REQUIRE(fakedev.view(ijoy));
39 }
40
41 //execute tests
43
44 //"Close all polydrivers and check"
46 }
47
48 Network::setLocalMode(false);
49}
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_params_test(yarp::dev::PolyDriver *pdrv)
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.
Definition OSTestMsg.cpp:13