Bladeren bron

* Added missing mock method 'MHD_lookup_connection_value'

master
bergmann 6 jaren geleden
bovenliggende
commit
478fb0ba13
2 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. +10
    -0
      test/helper/libmicrohttpd_mock.cpp
  2. +6
    -0
      test/helper/libmicrohttpd_mock.h

+ 10
- 0
test/helper/libmicrohttpd_mock.cpp Bestand weergeven

@@ -146,4 +146,14 @@ extern "C"
: MHD_NO;
}

const char * MHD_lookup_connection_value(
struct MHD_Connection * connection,
enum MHD_ValueKind kind,
const char * key)
{
return libmicrohttpd_mock::instance
? libmicrohttpd_mock::instance->MHD_lookup_connection_value(connection, kind, key)
: nullptr;
}

}

+ 6
- 0
test/helper/libmicrohttpd_mock.h Bestand weergeven

@@ -95,6 +95,12 @@ public:
const char * post_data,
size_t post_data_len));

MOCK_METHOD3(
MHD_lookup_connection_value,
const char * (struct MHD_Connection * connection,
enum MHD_ValueKind kind,
const char * key));

public:
inline libmicrohttpd_mock()
{


Laden…
Annuleren
Opslaan