mirror of
https://github.com/openappsec/attachment.git
synced 2025-11-16 17:31:54 +03:00
Istio support (#30)
* adding istio files * fix the envoy CMakList file * fix the envoy CMakList file * adding the .mod file * adding the webhook injector image * adding istio files * adding istio files * fix the envoy CMakList file * fix the envoy CMakList file * adding the .mod file * adding the webhook injector image * adding istio files * pulling from dev * fix the envoy CMakList file * adding istio files * fix missing header * fix wrong name of library * fix envoy CMakeLists * remove cloud guard names * remove cloud guard names * adding istio files * adding istio files * [JIRA] INXT-44274: test agent image * add Daniel fixes * remove zlib library * remove nano attachment ut
This commit is contained in:
72
attachments/nano_attachment/include/mock_nano_compression.h
Executable file
72
attachments/nano_attachment/include/mock_nano_compression.h
Executable file
@@ -0,0 +1,72 @@
|
||||
#ifndef __MOCK_NANO_COMPRESSION_H__
|
||||
#define __MOCK_NANO_COMPRESSION_H__
|
||||
|
||||
#include "cmock.h"
|
||||
#include "nano_attachment_common.h"
|
||||
|
||||
extern "C" {
|
||||
#include "nano_compression.h"
|
||||
}
|
||||
|
||||
class NanoCompressionMocker : public CMockMocker<NanoCompressionMocker>
|
||||
{
|
||||
public:
|
||||
MOCK_METHOD3(
|
||||
nano_compress_body,
|
||||
HttpBody*(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
|
||||
MOCK_METHOD3(
|
||||
nano_decompress_body,
|
||||
HttpBody*(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
|
||||
MOCK_METHOD3(
|
||||
nano_free_compressed_body,
|
||||
void(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
CMOCK_MOCK_FUNCTION3(
|
||||
NanoCompressionMocker,
|
||||
nano_compress_body,
|
||||
HttpBody*(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
|
||||
CMOCK_MOCK_FUNCTION3(
|
||||
NanoCompressionMocker,
|
||||
nano_decompress_body,
|
||||
HttpBody*(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
|
||||
CMOCK_MOCK_FUNCTION3(
|
||||
NanoCompressionMocker,
|
||||
nano_free_compressed_body,
|
||||
void(
|
||||
NanoAttachment *attachment,
|
||||
HttpBody *bodies,
|
||||
HttpSessionData *session_data_p
|
||||
)
|
||||
);
|
||||
|
||||
#endif // __MOCK_NANO_COMPRESSION_H__
|
||||
Reference in New Issue
Block a user