| 101 | |
| 102 | |
| 103 | int 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 | |
| 139 | TEST_F(SSLClientTest, client) |
nothing calls this directly
no test coverage detected