Home
last modified time | relevance | path

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

/bootable/recovery/tests/unit/
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()
Dfuse_provider_test.cpp102 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()
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()
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()
Dupdater_test.cpp61 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()
Dinstall_test.cpp105 std::vector<std::string> expected = { in TEST() local
111 ASSERT_EQ(expected, read_partition_list); in TEST()
/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/host/
Dupdate_simulator_test.cpp79 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/
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.
230 The commands are expected to be run from `$ANDROID_BUILD_TOP`.
/bootable/recovery/
DREADME.md54 this file has expected contents.
/bootable/recovery/updater/
Dblockimg.cpp653 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()