Searched refs:expect (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/tests/component/ |
D | edify_test.cpp | 24 static void expect(const std::string& expr_str, const char* expected) { in expect() function 50 expect("a", "a"); in TEST_F() 51 expect("\"a\"", "a"); in TEST_F() 52 expect("\"\\x61\"", "a"); in TEST_F() 53 expect("# this is a comment\n" in TEST_F() 61 expect("a; b; c", "c"); in TEST_F() 66 expect("a + b", "ab"); in TEST_F() 67 expect("a + \n \"b\"", "ab"); in TEST_F() 68 expect("a + b +\nc\n", "abc"); in TEST_F() 71 expect("concat(a, b)", "ab"); in TEST_F() [all …]
|
D | updater_test.cpp | 62 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code, in expect() function 131 expect(result.c_str(), script, cause_code, &updater_info); in RunBlockImageUpdate() 205 expect(android::base::GetProperty("ro.product.device", "").c_str(), in TEST_F() 209 expect(android::base::GetProperty("ro.build.fingerprint", "").c_str(), in TEST_F() 214 expect(nullptr, "getprop()", kArgsParsingFailure); in TEST_F() 215 expect(nullptr, "getprop(\"arg1\", \"arg2\")", kArgsParsingFailure); in TEST_F() 220 expect(nullptr, "patch_partition_check()", kArgsParsingFailure); in TEST_F() 237 expect(nullptr, "patch_partition_check(\"" + source.ToString() + "\")", kArgsParsingFailure); in TEST_F() 238 expect(nullptr, "patch_partition_check(\"" + target.ToString() + "\")", kArgsParsingFailure); in TEST_F() 243 expect("t", cmd, kNoCause); in TEST_F() [all …]
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/ |
D | UpdateConfigTest.java | 96 thrown.expect(RuntimeException.class); in getUpdatePackageFile_throwsErrorIfStreaming() 109 thrown.expect(RuntimeException.class); in getUpdatePackageFile_throwsErrorIfNotAFile()
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecsTest.java | 96 thrown.expect(IOException.class); in forNonStreaming_IOException()
|