foxglove_bridge_base
tests
version_test.cpp
Go to the documentation of this file.
1
#include <string>
2
3
#include <gtest/gtest.h>
4
5
#include <
foxglove_bridge/foxglove_bridge.hpp
>
6
7
TEST
(VersionTest, TestWebSocketVersion) {
8
// ex: "WebSocket++/0.8.1"
9
const
std::string version =
foxglove::WebSocketUserAgent
();
10
EXPECT_EQ(version.substr(0, 14),
"WebSocket++/0."
);
11
}
12
13
int
main
(
int
argc,
char
** argv) {
14
testing::InitGoogleTest(&argc, argv);
15
return
RUN_ALL_TESTS();
16
}
main
int main(int argc, char **argv)
Definition:
version_test.cpp:13
TEST
TEST(VersionTest, TestWebSocketVersion)
Definition:
version_test.cpp:7
foxglove::WebSocketUserAgent
const char * WebSocketUserAgent()
Definition:
foxglove_bridge.cpp:7
foxglove_bridge.hpp
foxglove_bridge
Author(s): Foxglove
autogenerated on Tue May 20 2025 02:34:26