Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 12 of 12) sorted by relevance

/bootable/recovery/tests/component/
Dbootloader_message_test.cpp67 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()
Dedify_test.cpp24 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()
Duncrypt_test.cpp153 void VerifyBootloaderMessage(const std::string& expected) { in VerifyBootloaderMessage() argument
159 ASSERT_EQ(expected, std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in VerifyBootloaderMessage()
Dverifier_test.cpp52 int expected) { in VerifyFile() argument
57 ASSERT_EQ(expected, verify_file(package.get(), keys)); in VerifyFile()
Dinstall_test.cpp127 std::vector<std::string> expected = { in TEST() local
133 ASSERT_EQ(expected, read_partition_list); in TEST()
Dupdater_test.cpp62 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code, in expect() argument
74 if (expected == nullptr) { in expect()
78 ASSERT_STREQ(expected, result.c_str()); in expect()
/bootable/recovery/minadbd/
Dminadbd_services_test.cpp69 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/
Dapplypatch_test.cpp259 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()
Dscreen_ui_test.cpp145 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()
/bootable/recovery/updater_sample/
DREADME.md27 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.
228 The commands are expected to be run from `$ANDROID_BUILD_TOP`.
/bootable/recovery/
DREADME.md42 this file has expected contents.
/bootable/recovery/updater/
Dblockimg.cpp648 static int VerifyBlocks(const std::string& expected, const std::vector<uint8_t>& buffer, in VerifyBlocks() argument
657 if (hexdigest != expected) { in VerifyBlocks()
659 LOG(ERROR) << "failed to verify blocks (expected " << expected << ", read " << hexdigest in VerifyBlocks()