summaryrefslogtreecommitdiff
path: root/test/http/http_connection_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/http/http_connection_test.cpp')
-rw-r--r--test/http/http_connection_test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/http/http_connection_test.cpp b/test/http/http_connection_test.cpp
index caf50c8a62..393e209b8a 100644
--- a/test/http/http_connection_test.cpp
+++ b/test/http/http_connection_test.cpp
@@ -23,7 +23,7 @@ namespace crow
struct FakeHandler
{
static void
- handleUpgrade(Request& /*req*/,
+ handleUpgrade(const std::shared_ptr<Request>& /*req*/,
const std::shared_ptr<bmcweb::AsyncResp>& /*asyncResp*/,
boost::beast::test::stream&& /*adaptor*/)
{
@@ -31,16 +31,16 @@ struct FakeHandler
EXPECT_FALSE(true);
}
- void handle(Request& req,
+ void handle(const std::shared_ptr<Request>& req,
const std::shared_ptr<bmcweb::AsyncResp>& /*asyncResp*/)
{
- EXPECT_EQ(req.method(), boost::beast::http::verb::get);
- EXPECT_EQ(req.target(), "/");
- EXPECT_EQ(req.getHeaderValue(boost::beast::http::field::host),
+ EXPECT_EQ(req->method(), boost::beast::http::verb::get);
+ EXPECT_EQ(req->target(), "/");
+ EXPECT_EQ(req->getHeaderValue(boost::beast::http::field::host),
"openbmc_project.xyz");
- EXPECT_FALSE(req.keepAlive());
- EXPECT_EQ(req.version(), 11);
- EXPECT_EQ(req.body(), "");
+ EXPECT_FALSE(req->keepAlive());
+ EXPECT_EQ(req->version(), 11);
+ EXPECT_EQ(req->body(), "");
called = true;
}