Files
openappsec/components/include/mock/mock_nginx_attachment.h
Daniel-Eisenberg e7b6e51b31 Jan 06 2026 dev (#387)
* sync code

* update code to support brotli

* update code to support brotli

* update code to support brotli

* sync code

* fix findBrotli

* sync code

* sync code

* sync code

* sync code

---------

Co-authored-by: Ned Wright <nedwright@proton.me>
Co-authored-by: Daniel Eisenberg <danielei@checkpoint.com>
2026-01-13 17:17:52 +02:00

25 lines
647 B
C++
Executable File

#ifndef __MOCK_NGINX_ATTACHMENT_H__
#define __MOCK_NGINX_ATTACHMENT_H__
#include "nginx_attachment.h"
class MockNginxAttachment:
public Singleton::Provide<I_StaticResourcesHandler>::From<MockProvider<I_StaticResourcesHandler>>
{
public:
MOCK_METHOD3(
registerStaticResource,
bool(const std::string &static_resource_name,
const std::string &static_resource_path,
bool overwrite_if_exists
)
);
MOCK_METHOD2(
registerStaticResourceByContent,
bool(const std::string &resource_name, const std::string &file_content)
);
};
#endif // __MOCK_NGINX_ATTACHMENT_H__