MCPcopy Create free account
hub / github.com/3rdparty/libprocess / main

Function main

src/tests/ssl_client.cpp:103–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103int main(int argc, char** argv)
104{
105 // Load all the client flags.
106 Try<flags::Warnings> load = SSLClientTest::flags.load("", argc, argv);
107 if (load.isError()) {
108 EXIT(EXIT_FAILURE) << "Failed to load flags: " << load.error();
109 }
110
111 if (SSLClientTest::flags.help) {
112 cout << SSLClientTest::flags.usage() << endl;
113 return EXIT_SUCCESS;
114 }
115
116 // Log any flag warnings.
117 foreach (const flags::Warning& warning, load->warnings) {
118 cout << warning.message << endl;
119 }
120
121 process::initialize();
122
123 openssl::initialize();
124
125 // Initialize Google Mock/Test.
126 testing::InitGoogleMock(&argc, argv);
127
128 // Add the libprocess test event listeners.
129 ::testing::TestEventListeners& listeners =
130 ::testing::UnitTest::GetInstance()->listeners();
131
132 listeners.Append(process::ClockTestEventListener::instance());
133 listeners.Append(process::FilterTestEventListener::instance());
134
135 return RUN_ALL_TESTS();
136}
137
138
139TEST_F(SSLClientTest, client)

Callers

nothing calls this directly

Calls 1

initializeFunction · 0.50

Tested by

no test coverage detected