FreeRDP
TestFreeRDPRegion.c File Reference
#include <winpr/crt.h>
#include <winpr/print.h>
#include <freerdp/codec/region.h>

Typedefs

typedef int(* TestFunction) (void)
 

Functions

static BOOL compareRectangles (const RECTANGLE_16 *src1, const RECTANGLE_16 *src2, int nb)
 
static int test_basic (void)
 
static int test_r1_r3 (void)
 
static int test_r9_r10 (void)
 
static int test_r1_r5 (void)
 
static int test_r1_r6 (void)
 
static int test_r1_r2_r4 (void)
 
static int test_r1_r7_r8 (void)
 
static int test_r1_r2_r3_r4 (void)
 
static int test_from_weston (void)
 
static int test_r1_inter_r3 (void)
 
static int test_r1_r3_inter_r11 (void)
 
static int test_norbert_case (void)
 
static int test_norbert2_case (void)
 
static int test_empty_rectangle (void)
 
int TestFreeRDPRegion (int argc, char *argv[])
 

Variables

static struct UnitaryTest tests []
 

Typedef Documentation

typedef int(* TestFunction) (void)

Function Documentation

static BOOL compareRectangles ( const RECTANGLE_16 *  src1,
const RECTANGLE_16 *  src2,
int  nb 
)
static

FreeRDP: A Remote Desktop Protocol Implementation

Copyright 2014 Thincast Technologies GmbH Copyright 2014 Hardening conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the caller graph for this function:

static int test_basic ( void  )
static

Here is the call graph for this function:

static int test_empty_rectangle ( void  )
static

Here is the call graph for this function:

static int test_from_weston ( void  )
static

Here is the call graph for this function:

static int test_norbert2_case ( void  )
static

Here is the call graph for this function:

static int test_norbert_case ( void  )
static

Here is the call graph for this function:

static int test_r1_inter_r3 ( void  )
static

Here is the call graph for this function:

static int test_r1_r2_r3_r4 ( void  )
static

Here is the call graph for this function:

static int test_r1_r2_r4 ( void  )
static

Here is the call graph for this function:

static int test_r1_r3 ( void  )
static

Here is the call graph for this function:

static int test_r1_r3_inter_r11 ( void  )
static

Here is the call graph for this function:

static int test_r1_r5 ( void  )
static

Here is the call graph for this function:

static int test_r1_r6 ( void  )
static

Here is the call graph for this function:

static int test_r1_r7_r8 ( void  )
static

Here is the call graph for this function:

static int test_r9_r10 ( void  )
static

Here is the call graph for this function:

int TestFreeRDPRegion ( int  argc,
char *  argv[] 
)

Here is the caller graph for this function:

Variable Documentation

struct UnitaryTest tests[]
static
Initial value:
=
{
{"Basic trivial tests", test_basic},
{"R1+R3 and R3+R1", test_r1_r3},
{"R1+R5", test_r1_r5},
{"R1+R6", test_r1_r6},
{"R9+R10", test_r9_r10},
{"R1+R2+R4", test_r1_r2_r4},
{"R1+R7+R8 in many orders", test_r1_r7_r8},
{"R1+R2+R3+R4", test_r1_r2_r3_r4},
{"data from weston", test_from_weston},
{"R1 & R3", test_r1_inter_r3},
{"(R1+R3)&R11 (band merge)", test_r1_r3_inter_r11},
{"norbert's case", test_norbert_case},
{"norbert's case 2", test_norbert2_case},
{"empty rectangle case", test_empty_rectangle},
}
static int test_r1_r5(void)
Definition: TestFreeRDPRegion.c:202
static int test_norbert2_case(void)
Definition: TestFreeRDPRegion.c:754
static int test_r1_r7_r8(void)
Definition: TestFreeRDPRegion.c:343
static int test_r1_r2_r4(void)
Definition: TestFreeRDPRegion.c:289
static int test_r1_inter_r3(void)
Definition: TestFreeRDPRegion.c:569
static int test_basic(void)
Definition: TestFreeRDPRegion.c:47
static int test_empty_rectangle(void)
Definition: TestFreeRDPRegion.c:824
static int test_from_weston(void)
Definition: TestFreeRDPRegion.c:512
static int test_r9_r10(void)
Definition: TestFreeRDPRegion.c:155
static int test_norbert_case(void)
Definition: TestFreeRDPRegion.c:676
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
static int test_r1_r3(void)
Definition: TestFreeRDPRegion.c:95
static int test_r1_r2_r3_r4(void)
Definition: TestFreeRDPRegion.c:427
static int test_r1_r3_inter_r11(void)
Definition: TestFreeRDPRegion.c:616
static int test_r1_r6(void)
Definition: TestFreeRDPRegion.c:248