#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include "gtest/gtest.h"
#include <malloc.h>
Go to the source code of this file.
|
| namespace | cryptonote |
| | Holds cryptonote related classes and helpers.
|
◆ TEST()
| TEST |
( |
slowmem | , |
|
|
Success | ) |
Definition at line 109 of file slow_memmem.cpp.
110{
111 size_t n;
112 for (n=0;n<
sizeof(
T)/
sizeof(
T[0]);++n) {
113#ifdef VERBOSE
114 printf("%3zu: ",n);
115 fflush(stdout);
116#endif
125#ifdef VERBOSE
126 if (
res!=
T[n].
res) printf(
"failed (got %zu, expected %zu)",
res,
T[n].
res);
else printf(
"ok");
127 printf("\n");
128#endif
129 }
130}
#define ASSERT_EQ(val1, val2)
void * memcpy(void *a, const void *b, size_t c)
size_t slow_memmem(const void *start_buff, size_t buflen, const void *pat, size_t patlen)
◆ buf
◆ buflen
◆ pat
◆ patlen
◆ res