mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-25 12:14:41 +00:00
Declare set_file_content_provider for the split build
FileContentProviderStaysWithinFile, added in e374966, calls
detail::set_file_content_provider, which split.py moves into httplib.cc,
so test_split did not compile. Declare it in the test, as the other tests
that call into detail:: already do.
This commit is contained in:
1 parent
fc0e8230ba
commit
b917676861
1 file changed
+9
@@ -12354,6 +12354,15 @@ TEST(ResponseContentSourceTest, LastContentSetterWins) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Forward declaration (see the base64_encode note).
|
||||||
|
namespace httplib {
|
||||||
|
namespace detail {
|
||||||
|
void set_file_content_provider(Response &res, const std::shared_ptr<mmap> &m,
|
||||||
|
const std::string &content_type,
|
||||||
|
EncodingType encoding);
|
||||||
|
} // namespace detail
|
||||||
|
} // namespace httplib
|
||||||
|
|
||||||
TEST(ResponseContentSourceTest, FileContentProviderStaysWithinFile) {
|
TEST(ResponseContentSourceTest, FileContentProviderStaysWithinFile) {
|
||||||
auto mm = std::make_shared<detail::mmap>("./www/dir/test.html");
|
auto mm = std::make_shared<detail::mmap>("./www/dir/test.html");
|
||||||
ASSERT_TRUE(mm->is_open());
|
ASSERT_TRUE(mm->is_open());
|
||||||
|
|||||||
Reference in new issue
Block a user