curl-fuzzer C++ reference
Loading...
Searching...
No Matches
proto_fuzzer::CurlGlobalLifecycle Class Referencefinal

Own the proto runtime's one curl global initialization. More...

#include <curl_global_lifecycle.h>

Public Types

using CleanupFunction = void (*)()
 Process-exit cleanup callback, injectable for lifecycle regression tests.

Public Member Functions

 CurlGlobalLifecycle (CleanupFunction cleanup=nullptr) noexcept
 Initialize curl and its allocation hooks for this process.
bool initialized () const noexcept
void FinalizeForProcessExit () noexcept
 Release this object's references after the fuzz engine has stopped.

Friends

void FinalizeRegisteredCurlGlobalLifecyclesForExit ()
 Finalize all registered process lifecycles before static destruction.

Detailed Description

Own the proto runtime's one curl global initialization.

Definition at line 16 of file curl_global_lifecycle.h.

Constructor & Destructor Documentation

◆ CurlGlobalLifecycle()

proto_fuzzer::CurlGlobalLifecycle::CurlGlobalLifecycle ( CleanupFunction cleanup = nullptr)
explicitnoexcept

Initialize curl and its allocation hooks for this process.

Parameters
cleanupOptional cleanup callback used by focused lifecycle tests.

Definition at line 26 of file curl_global_lifecycle.cc.

Member Function Documentation

◆ initialized()

bool proto_fuzzer::CurlGlobalLifecycle::initialized ( ) const
inlinenoexcept
Returns
Whether this object owns a successful curl initialization.

Definition at line 30 of file curl_global_lifecycle.h.


The documentation for this class was generated from the following files: