Flutter Engine
The Flutter Engine
|
#include "src/base/SkRandom.h"
#include "src/base/SkTSort.h"
#include "tests/Test.h"
#include <cstdlib>
#include <cstring>
#include <string>
Go to the source code of this file.
Functions | |
static int | compare_int (const void *a, const void *b) |
static void | rand_array (SkRandom &rand, int array[], int n) |
static void | check_sort (skiatest::Reporter *reporter, const char label[], const int array[], const int reference[], int n) |
DEF_TEST (Sort, reporter) | |
|
static |
Definition at line 28 of file SortTest.cpp.
|
static |
Definition at line 17 of file SortTest.cpp.
DEF_TEST | ( | Sort | , |
reporter | |||
) |
An array of random numbers to be sorted.
The reference sort of the random numbers.
The random numbers are copied into this array, sorted by an SkSort, then this array is compared against the reference sort.
Definition at line 38 of file SortTest.cpp.
Definition at line 22 of file SortTest.cpp.