Skip to content

Commit b50b804

Browse files
committed
Fix all cpplint issues
1 parent 198a201 commit b50b804

File tree

8 files changed

+27
-2
lines changed

8 files changed

+27
-2
lines changed

test/integ/authentication.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include <curl/curl.h>
3434
#include <memory>
35+
#include <string>
3536

3637
#include "./httpserver.hpp"
3738
#include "./littletest.hpp"

test/integ/basic.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919
*/
2020

2121
#include <curl/curl.h>
22+
#include <cstdio>
2223
#include <cstring>
24+
#include <iostream>
2325
#include <map>
2426
#include <memory>
2527
#include <numeric>
2628
#include <sstream>
2729
#include <string>
30+
#include <utility>
31+
#include <vector>
2832

2933
#include "./httpserver.hpp"
3034
#include "httpserver/string_utilities.hpp"

test/integ/deferred.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
#include <signal.h>
3535
#include <unistd.h>
3636

37+
#include <cstdio>
3738
#include <cstring>
3839
#include <memory>
40+
#include <string>
3941

4042
#include "./httpserver.hpp"
4143
#include "./littletest.hpp"

test/integ/file_upload.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
#include <sys/stat.h>
2323
#include <cassert>
2424
#include <cstddef>
25+
#include <cstdio>
2526
#include <fstream>
26-
#include <memory>
2727
#include <map>
28+
#include <memory>
2829
#include <random>
2930
#include <sstream>
3031
#include <string>
3132
#include <tuple>
33+
#include <utility>
34+
#include <vector>
3235

3336
#include "./httpserver.hpp"
3437
#include "httpserver/string_utilities.hpp"

test/integ/ws_start_stop.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <pthread.h>
3535
#include <unistd.h>
3636
#include <memory>
37+
#include <string>
3738

3839
#include "./httpserver.hpp"
3940
#include "./littletest.hpp"
@@ -509,7 +510,11 @@ void* start_ws_blocking(void* par) {
509510
httpserver::webserver* ws = (httpserver::webserver*) par;
510511
ok_resource ok;
511512
if (!ws->register_resource("base", &ok)) return PTHREAD_CANCELED;
512-
try { ws->start(true); } catch (...) { return PTHREAD_CANCELED; }
513+
try {
514+
ws->start(true);
515+
} catch (...) {
516+
return PTHREAD_CANCELED;
517+
}
513518

514519
return nullptr;
515520
}

test/unit/http_endpoint_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
#include "httpserver/details/http_endpoint.hpp"
2222

23+
#include <iostream>
24+
#include <string>
25+
#include <vector>
26+
2327
#include "./littletest.hpp"
2428

2529
using httpserver::details::http_endpoint;

test/unit/http_utils_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
#include <sys/stat.h>
3434
#include <cstdio>
35+
#include <iostream>
36+
#include <map>
37+
#include <string>
38+
#include <vector>
3539

3640
#include "./littletest.hpp"
3741

test/unit/string_utilities_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "httpserver/string_utilities.hpp"
2222

2323
#include <cstdio>
24+
#include <string>
25+
#include <vector>
2426

2527
#include "./littletest.hpp"
2628

0 commit comments

Comments
 (0)