mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
clangformat
This commit is contained in:
parent
e12fe4cbbb
commit
f7b9501662
12
test/test.cc
12
test/test.cc
@ -1200,8 +1200,8 @@ TEST(BindServerTest, BindAndListenSeparatelySSL) {
|
|||||||
|
|
||||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
TEST(BindServerTest, BindAndListenSeparatelySSLEncryptedKey) {
|
TEST(BindServerTest, BindAndListenSeparatelySSLEncryptedKey) {
|
||||||
SSLServer svr(SERVER_ENCRYPTED_CERT_FILE, SERVER_ENCRYPTED_PRIVATE_KEY_FILE, nullptr,
|
SSLServer svr(SERVER_ENCRYPTED_CERT_FILE, SERVER_ENCRYPTED_PRIVATE_KEY_FILE,
|
||||||
nullptr, SERVER_ENCRYPTED_PRIVATE_KEY_PASS);
|
nullptr, nullptr, SERVER_ENCRYPTED_PRIVATE_KEY_PASS);
|
||||||
int port = svr.bind_to_any_port("0.0.0.0");
|
int port = svr.bind_to_any_port("0.0.0.0");
|
||||||
ASSERT_TRUE(svr.is_valid());
|
ASSERT_TRUE(svr.is_valid());
|
||||||
ASSERT_TRUE(port > 0);
|
ASSERT_TRUE(port > 0);
|
||||||
@ -1684,10 +1684,10 @@ protected:
|
|||||||
res.set_content("empty-no-content-type", "text/plain");
|
res.set_content("empty-no-content-type", "text/plain");
|
||||||
})
|
})
|
||||||
.Post("/post-large",
|
.Post("/post-large",
|
||||||
[&](const Request &req, Response &res) {
|
[&](const Request &req, Response &res) {
|
||||||
EXPECT_EQ(req.body, LARGE_DATA);
|
EXPECT_EQ(req.body, LARGE_DATA);
|
||||||
res.set_content(req.body, "text/plain");
|
res.set_content(req.body, "text/plain");
|
||||||
})
|
})
|
||||||
.Put("/empty-no-content-type",
|
.Put("/empty-no-content-type",
|
||||||
[&](const Request &req, Response &res) {
|
[&](const Request &req, Response &res) {
|
||||||
EXPECT_EQ(req.body, "");
|
EXPECT_EQ(req.body, "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user