Home
last modified time | relevance | path

Searched refs:result2 (Results 1 – 5 of 5) sorted by relevance

/system/libbase/
Dresult_test.cpp141 Result<std::string> result2 = result.error(); in TEST() local
143 ASSERT_FALSE(result2.ok()); in TEST()
144 ASSERT_FALSE(result2.has_value()); in TEST()
146 EXPECT_EQ(0, result2.error().code()); in TEST()
147 EXPECT_EQ(error_text, result2.error().message()); in TEST()
157 Result<std::string> result2 = Error() << result.error(); in TEST() local
159 ASSERT_FALSE(result2.ok()); in TEST()
160 ASSERT_FALSE(result2.has_value()); in TEST()
162 EXPECT_EQ(0, result2.error().code()); in TEST()
163 EXPECT_EQ(error_text, result2.error().message()); in TEST()
[all …]
Dexpected_test.cpp766 auto result2 = test("test2"); in TEST() local
767 ASSERT_TRUE(result2.ok()); in TEST()
768 EXPECT_EQ("test2test22", result2->string); in TEST()
/system/core/init/
Dsubcontext_test.cpp124 auto result2 = subcontext.Execute(std::vector<std::string>{"generate_sane_error"}); in TEST() local
125 ASSERT_FALSE(result2.ok()); in TEST()
126 EXPECT_EQ("Sane error!", result2.error().message()); in TEST()
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp233 Stats result2 = {}; in TEST_F() local
234 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F()
235 expectStatsEqual(value2, result2); in TEST_F()
280 Stats result2 = {}; in TEST_F() local
281 ASSERT_EQ(0, bpfGetIfaceStatsInternal(IFACE_NAME2, &result2, mFakeIfaceStatsMap, in TEST_F()
283 expectStatsEqual(value2, result2); in TEST_F()
/system/keymaster/tests/
Dandroid_keymaster_test.cpp4358 auto result2 = keymaster.GetHmacSharingParameters(); in TEST_F() local
4359 EXPECT_EQ(KM_ERROR_OK, result2.error); in TEST_F()
4360 paramsVec.push_back(std::move(result2.params)); in TEST_F()