version_test.cpp
Go to the documentation of this file.
1 #include <string>
2 
3 #include <gtest/gtest.h>
4 
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 }
TEST(VersionTest, TestWebSocketVersion)
Definition: version_test.cpp:7
int main(int argc, char **argv)
const char * WebSocketUserAgent()


foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22