Home
last modified time | relevance | path

Searched refs:random_data (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/tests/unit/
Duncrypt_test.cpp171 std::string random_data; in TEST_F() local
172 random_data.reserve(sizeof(bootloader_message)); in TEST_F()
173 generate_n(back_inserter(random_data), sizeof(bootloader_message), []() { return rand() % 128; }); in TEST_F()
176 memcpy(&boot, random_data.c_str(), random_data.size()); in TEST_F()
180 VerifyBootloaderMessage(random_data); in TEST_F()
/bootable/deprecated-ota/tests/unit/host/
Dimgdiff_test.cpp199 std::string random_data; in TEST() local
200 random_data.reserve(4096); in TEST()
201 generate_n(back_inserter(random_data), 4096, []() { return rand() % 256; }); in TEST()
208 const std::string src_content = random_data; in TEST()
218 const std::string tgt_content = random_data + "extra contents"; in TEST()
292 std::string random_data; in TEST() local
293 random_data.reserve(4096); in TEST()
294 generate_n(back_inserter(random_data), 4096, []() { return rand() % 256; }); in TEST()
301 const std::string src_content = random_data; in TEST()
311 const std::string tgt_content = random_data + "abcdefg"; in TEST()
[all …]