Classes | Functions | Variables
ros1_foxglove_bridge/tests/smoke_test.cpp File Reference
#include <chrono>
#include <future>
#include <thread>
#include <boost/filesystem.hpp>
#include <gtest/gtest.h>
#include <ros/ros.h>
#include <std_msgs/builtin_string.h>
#include <std_srvs/SetBool.h>
#include <websocketpp/config/asio_client.hpp>
#include <foxglove_bridge/test/test_client.hpp>
#include <foxglove_bridge/websocket_client.hpp>
Include dependency graph for ros1_foxglove_bridge/tests/smoke_test.cpp:

Go to the source code of this file.

Classes

class  ParameterTest
 
class  ServiceTest
 

Functions

int main (int argc, char **argv)
 
 TEST (FetchAssetTest, fetchExistingAsset)
 
 TEST (FetchAssetTest, fetchNonExistingAsset)
 
 TEST (SmokeTest, testConnection)
 
 TEST (SmokeTest, testPublishing)
 
 TEST (SmokeTest, testSubscription)
 
 TEST (SmokeTest, testSubscriptionParallel)
 
 TEST_F (ParameterTest, testGetAllParams)
 
 TEST_F (ParameterTest, testGetNonExistingParameters)
 
 TEST_F (ParameterTest, testGetParameters)
 
 TEST_F (ParameterTest, testGetParametersParallel)
 
 TEST_F (ParameterTest, testParameterSubscription)
 
 TEST_F (ParameterTest, testSetParameters)
 
 TEST_F (ParameterTest, testSetParametersWithReqId)
 
 TEST_F (ParameterTest, testUnsetParameter)
 
 TEST_F (ServiceTest, testCallServiceParallel)
 

Variables

constexpr auto DEFAULT_TIMEOUT = std::chrono::seconds(8)
 
constexpr uint8_t HELLO_WORLD_BINARY []
 
constexpr auto ONE_SECOND = std::chrono::seconds(1)
 
constexpr char URI [] = "ws://localhost:9876"
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 425 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [1/6]

TEST ( FetchAssetTest  ,
fetchExistingAsset   
)

Definition at line 378 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [2/6]

TEST ( FetchAssetTest  ,
fetchNonExistingAsset   
)

Definition at line 407 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [3/6]

TEST ( SmokeTest  ,
testConnection   
)

Definition at line 68 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [4/6]

TEST ( SmokeTest  ,
testPublishing   
)

Definition at line 144 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [5/6]

TEST ( SmokeTest  ,
testSubscription   
)

Definition at line 73 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST() [6/6]

TEST ( SmokeTest  ,
testSubscriptionParallel   
)

Definition at line 104 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [1/9]

TEST_F ( ParameterTest  ,
testGetAllParams   
)

Definition at line 175 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [2/9]

TEST_F ( ParameterTest  ,
testGetNonExistingParameters   
)

Definition at line 185 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [3/9]

TEST_F ( ParameterTest  ,
testGetParameters   
)

Definition at line 196 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [4/9]

TEST_F ( ParameterTest  ,
testGetParametersParallel   
)

Definition at line 305 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [5/9]

TEST_F ( ParameterTest  ,
testParameterSubscription   
)

Definition at line 287 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [6/9]

TEST_F ( ParameterTest  ,
testSetParameters   
)

Definition at line 222 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [7/9]

TEST_F ( ParameterTest  ,
testSetParametersWithReqId   
)

Definition at line 258 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [8/9]

TEST_F ( ParameterTest  ,
testUnsetParameter   
)

Definition at line 273 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ TEST_F() [9/9]

TEST_F ( ServiceTest  ,
testCallServiceParallel   
)

Definition at line 338 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

Variable Documentation

◆ DEFAULT_TIMEOUT

constexpr auto DEFAULT_TIMEOUT = std::chrono::seconds(8)
constexpr

Definition at line 22 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ HELLO_WORLD_BINARY

constexpr uint8_t HELLO_WORLD_BINARY[]
constexpr
Initial value:
= {11, 0, 0, 0, 104, 101, 108, 108,
111, 32, 119, 111, 114, 108, 100}

Definition at line 18 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ ONE_SECOND

constexpr auto ONE_SECOND = std::chrono::seconds(1)
constexpr

Definition at line 21 of file ros1_foxglove_bridge/tests/smoke_test.cpp.

◆ URI

constexpr char URI[] = "ws://localhost:9876"
constexpr

Definition at line 15 of file ros1_foxglove_bridge/tests/smoke_test.cpp.



foxglove_bridge
Author(s): Foxglove
autogenerated on Wed Mar 5 2025 03:34:31