YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeChatBotDevice_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
6#include <yarp/os/Network.h>
9#include <yarp/dev/IChatBot.h>
11
12#include <catch2/catch_amalgamated.hpp>
13#include <harness.h>
14
15using namespace yarp::dev;
16using namespace yarp::os;
17
18TEST_CASE("dev::fakeChatBotDeviceTest", "[yarp::dev]")
19{
20 YARP_REQUIRE_PLUGIN("fakeChatBotDevice", "device");
21
22 Network::setLocalMode(true);
23
24 SECTION("Checking fakeChatBotdevice")
25 {
27 IChatBot* iChatBot = nullptr;
28
30 {
32 chatBot_cfg.put("device", "fakeChatBotDevice");
35 }
36
37 //execute tests
39
40 //"Close all polydrivers and check"
42 }
43
44 Network::setLocalMode(false);
45}
IChatBot interface.
Definition IChatBot.h:26
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::fakeChatBotDeviceTest", "[yarp::dev]")
void exec_iChatBot_test_1(yarp::dev::IChatBot *ichatbot)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.