Skip to content

Commit

Permalink
MINIFICPP-2243 - Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdebreceni committed Jul 9, 2024
1 parent d484af3 commit 4e91dbe
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 228 deletions.
2 changes: 1 addition & 1 deletion extensions/civetweb/processors/ListenHTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class MgConnectionInputStream : public io::InputStream {

class MgConnectionOutputStream : public io::OutputStream {
public:
MgConnectionOutputStream(struct mg_connection* conn): conn_(conn) {}
explicit MgConnectionOutputStream(struct mg_connection* conn): conn_(conn) {}

size_t write(const uint8_t *value, size_t len) override {
const auto mg_write_return = mg_write(conn_, reinterpret_cast<const void*>(value), len);
Expand Down
5 changes: 4 additions & 1 deletion extensions/civetweb/tests/ListenHTTPTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ class ListenHTTPTestsFixture {
check_response_body(client);
}

void test_connect(const std::vector<HttpResponseExpectations>& response_expectations = {HttpResponseExpectations{}}, std::size_t expected_commited_requests = 1, std::unique_ptr<minifi::http::HTTPClient> client_to_use = {}) {
void test_connect(
const std::vector<HttpResponseExpectations>& response_expectations = {HttpResponseExpectations{}},
std::size_t expected_commited_requests = 1,
std::unique_ptr<minifi::http::HTTPClient> client_to_use = {}) {
if (client_to_use) {
REQUIRE(response_expectations.size() == 1);
}
Expand Down
Loading

0 comments on commit 4e91dbe

Please sign in to comment.