Searched hist:"5575 efb61318a29b810b841390dce5b80cbeacfb" (Results 1 – 2 of 2) sorted by relevance
/openbmc/bmcweb/test/http/ |
H A D | http_body_test.cpp | diff 5575efb61318a29b810b841390dce5b80cbeacfb Tue Jan 30 11:25:03 CST 2024 Ed Tanous <ed@tanous.net> Create TemporaryFileHandle class
TemporaryFileHandle class is used to create temp files in the filesystem, and hold a handle to them until the class goes out of scope, at which time they can be removed. It replaces makeFile(), which was not RAII safe if an exception gets thrown, and could potentially leave files in the filesystem if the tests fail.
Tested: Unit tests pass
Change-Id: I03eb0d342a6cd7b78115a8c42be9175f30c4ccd0 Signed-off-by: Ed Tanous <ed@tanous.net>
|
H A D | http_response_test.cpp | diff 5575efb61318a29b810b841390dce5b80cbeacfb Tue Jan 30 11:25:03 CST 2024 Ed Tanous <ed@tanous.net> Create TemporaryFileHandle class
TemporaryFileHandle class is used to create temp files in the filesystem, and hold a handle to them until the class goes out of scope, at which time they can be removed. It replaces makeFile(), which was not RAII safe if an exception gets thrown, and could potentially leave files in the filesystem if the tests fail.
Tested: Unit tests pass
Change-Id: I03eb0d342a6cd7b78115a8c42be9175f30c4ccd0 Signed-off-by: Ed Tanous <ed@tanous.net>
|