Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers randlibtest.cpp Source File

randlibtest.cpp

00001 /*
00002  * Copyright (c) 2016 ARM. All rights reserved.
00003  */
00004 #include "CppUTest/TestHarness.h"
00005 #include "test_randlib.h"
00006 
00007 TEST_GROUP(randLIB)
00008 {
00009     void setup()
00010     {
00011     }
00012 
00013     void teardown()
00014     {
00015     }
00016 };
00017 
00018 TEST(randLIB, test_randLIB_seed_random)
00019 {
00020     CHECK(test_randLIB_seed_random());
00021 }
00022 
00023 TEST(randLIB, test_randLIB_get_8bit)
00024 {
00025     CHECK(test_randLIB_get_8bit());
00026 }
00027 
00028 TEST(randLIB, test_randLIB_get_16bit)
00029 {
00030     CHECK(test_randLIB_get_16bit());
00031 }
00032 
00033 TEST(randLIB, test_randLIB_get_32bit)
00034 {
00035     CHECK(test_randLIB_get_32bit());
00036 }
00037 
00038 TEST(randLIB, test_randLIB_get_64bit)
00039 {
00040     CHECK(test_randLIB_get_64bit());
00041 }
00042 
00043 TEST(randLIB, test_randLIB_get_n_bytes_random)
00044 {
00045     CHECK(test_randLIB_get_n_bytes_random());
00046 }
00047 
00048 TEST(randLIB, test_randLIB_get_random_in_range)
00049 {
00050     CHECK(test_randLIB_get_random_in_range());
00051 }
00052 
00053 TEST(randLIB, test_randLIB_randomise_base)
00054 {
00055     CHECK(test_randLIB_randomise_base());
00056 }