#include <openssl/stack.h>#include <limits.h>#include <algorithm>#include <memory>#include <utility>#include <vector>#include <gtest/gtest.h>#include <openssl/mem.h>
Go to the source code of this file.
Classes | |
| struct | ShallowStackDeleter |
Typedefs | |
| using | ShallowStack = std::unique_ptr< STACK_OF(TEST_INT), ShallowStackDeleter > |
| using | TEST_INT = int |
Functions | |
| static int | compare (const TEST_INT **a, const TEST_INT **b) |
| static int | compare_reverse (const TEST_INT **a, const TEST_INT **b) |
| static void | ExpectStackEquals (const STACK_OF(TEST_INT) *sk, const std::vector< int > &vec) |
| TEST (StackTest, Basic) | |
| TEST (StackTest, BigStack) | |
| TEST (StackTest, BinarySearch) | |
| TEST (StackTest, FindFirst) | |
| TEST (StackTest, Sorted) | |
| static void | TEST_INT_free (TEST_INT *x) |
| BSSL_NAMESPACE_BEGIN static BSSL_NAMESPACE_END bssl::UniquePtr< TEST_INT > | TEST_INT_new (int x) |
Variables | |
| static uint64_t | g_compare_count = 0 |
| static const int | kNull = INT_MIN |
| using ShallowStack = std::unique_ptr<STACK_OF(TEST_INT), ShallowStackDeleter> |
Definition at line 54 of file stack_test.cc.
Definition at line 30 of file stack_test.cc.
Definition at line 214 of file stack_test.cc.
Definition at line 225 of file stack_test.cc.
|
static |
Definition at line 60 of file stack_test.cc.
| TEST | ( | StackTest | , |
| Basic | |||
| ) |
Definition at line 81 of file stack_test.cc.
| TEST | ( | StackTest | , |
| BigStack | |||
| ) |
Definition at line 197 of file stack_test.cc.
| TEST | ( | StackTest | , |
| BinarySearch | |||
| ) |
Definition at line 354 of file stack_test.cc.
| TEST | ( | StackTest | , |
| FindFirst | |||
| ) |
Definition at line 316 of file stack_test.cc.
| TEST | ( | StackTest | , |
| Sorted | |||
| ) |
Definition at line 229 of file stack_test.cc.
|
static |
Definition at line 32 of file stack_test.cc.
|
static |
Definition at line 38 of file stack_test.cc.
|
static |
Definition at line 212 of file stack_test.cc.
Definition at line 58 of file stack_test.cc.