/bootable/recovery/tests/unit/ |
D | bootloader_message_test.cpp | 67 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST() local 68 ASSERT_EQ(expected, std::string(boot.recovery)); in TEST() 107 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST() local 108 ASSERT_GE(expected.size(), sizeof(boot.recovery)); in TEST() 112 ASSERT_EQ(expected.substr(0, sizeof(boot.recovery) - 1), std::string(boot.recovery)); in TEST()
|
D | edify_test.cpp | 24 static void expect(const std::string& expr_str, const char* expected) { in expect() argument 35 if (expected == nullptr) { in expect() 38 EXPECT_STREQ(expected, result.c_str()); in expect()
|
D | fuse_provider_test.cpp | 102 std::string expected = content.substr(16384, 4096) + content.substr(24576, 15904); in TEST() local 103 ASSERT_EQ(std::vector<uint8_t>(expected.begin(), expected.end()), result); in TEST()
|
D | applypatch_test.cpp | 259 std::vector<std::string> expected = { "last_log", "last_log.1" }; in TEST_F() local 260 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F() 274 std::vector<std::string> expected = { "last_log.1" }; in TEST_F() local 275 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F() 288 std::vector<std::string> expected = { "block.map", "command", "last_install" }; in TEST_F() local 289 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F()
|
D | screen_ui_test.cpp | 145 int expected = (i + 1) % 5; in TEST_F() local 146 ASSERT_EQ(expected, menu.selection()); in TEST_F() 157 int expected = (9 - i) % 5; in TEST_F() local 158 ASSERT_EQ(expected, menu.selection()); in TEST_F() 174 int expected = std::min(i + 1, 4); in TEST_F() local 175 ASSERT_EQ(expected, menu.selection()); in TEST_F() 186 int expected = std::max(3 - i, 0); in TEST_F() local 187 ASSERT_EQ(expected, menu.selection()); in TEST_F()
|
D | uncrypt_test.cpp | 153 void VerifyBootloaderMessage(const std::string& expected) { in VerifyBootloaderMessage() argument 159 ASSERT_EQ(expected, std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in VerifyBootloaderMessage()
|
D | verifier_test.cpp | 52 int expected) { in VerifyFile() argument 57 ASSERT_EQ(expected, verify_file(package.get(), keys)); in VerifyFile()
|
D | updater_test.cpp | 61 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code, in expect() argument 73 if (expected == nullptr) { in expect() 77 ASSERT_STREQ(expected, result.c_str()); in expect() 87 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code) { in expect() argument 89 expect(expected, expr_str, cause_code, &updater); in expect()
|
D | install_test.cpp | 105 std::vector<std::string> expected = { in TEST() local 111 ASSERT_EQ(expected, read_partition_list); in TEST()
|
/bootable/recovery/minadbd/ |
D | minadbd_services_test.cpp | 69 std::vector<uint8_t> expected(kMinadbdMessageSize, '\0'); in ReadAndCheckCommandMessage() local 70 memcpy(expected.data(), kMinadbdCommandPrefix, strlen(kMinadbdCommandPrefix)); in ReadAndCheckCommandMessage() 71 memcpy(expected.data() + strlen(kMinadbdCommandPrefix), &expected_command, in ReadAndCheckCommandMessage() 73 ASSERT_EQ(expected, received); in ReadAndCheckCommandMessage()
|
/bootable/recovery/tests/unit/host/ |
D | update_simulator_test.cpp | 79 static void RunSimulation(std::string_view src_tf, std::string_view ota_package, bool expected) { in RunSimulation() argument 100 ASSERT_EQ(expected, updater.RunUpdate()); in RunSimulation() 186 std::vector<std::vector<string>> expected = { in TEST_F() local 195 EXPECT_EQ(expected, transformed); in TEST_F()
|
/bootable/recovery/updater_sample/ |
D | README.md | 27 In real-life update system the config files expected to be served from a server 33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`. 159 The commands are expected to be run from `$ANDROID_BUILD_TOP` and for demo 175 This directory is expected to be read-only, unless explicitly remounted. 230 The commands are expected to be run from `$ANDROID_BUILD_TOP`.
|
/bootable/recovery/ |
D | README.md | 54 this file has expected contents.
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 653 static int VerifyBlocks(const std::string& expected, const std::vector<uint8_t>& buffer, in VerifyBlocks() argument 662 if (hexdigest != expected) { in VerifyBlocks() 664 LOG(ERROR) << "failed to verify blocks (expected " << expected << ", read " << hexdigest in VerifyBlocks()
|