| 122 | #ifdef USE_SSL_SOCKET |
| 123 | protected: |
| 124 | void SetUp() override |
| 125 | { |
| 126 | // We must run the parent's `SetUp` first so that we `chdir` into the test |
| 127 | // directory before SSL helpers like `key_path()` are called. |
| 128 | SSLTemporaryDirectoryTest::SetUp(); |
| 129 | |
| 130 | if (GetParam() == "SSL") { |
| 131 | generate_keys_and_certs(); |
| 132 | set_environment_variables({ |
| 133 | {"LIBPROCESS_SSL_ENABLED", "true"}, |
| 134 | {"LIBPROCESS_SSL_KEY_FILE", key_path()}, |
| 135 | {"LIBPROCESS_SSL_CERT_FILE", certificate_path()}}); |
| 136 | } else { |
| 137 | set_environment_variables({}); |
| 138 | } |
| 139 | |
| 140 | process::reinitialize( |
| 141 | None(), |
| 142 | READWRITE_HTTP_AUTHENTICATION_REALM, |
| 143 | READONLY_HTTP_AUTHENTICATION_REALM); |
| 144 | } |
| 145 | |
| 146 | public: |
| 147 | static void TearDownTestCase() |
nothing calls this directly
no test coverage detected