Searched refs:error_or (Results 1 – 4 of 4) sorted by relevance
/external/openscreen/util/json/ |
D | json_serialization_unittest.cc | 16 void AssertError(ErrorOr<Value> error_or, Error::Code code) { in AssertError() argument 17 EXPECT_EQ(error_or.error().code(), code); in AssertError()
|
/external/libtextclassifier/native/utils/base/ |
D | statusor_test.cc | 56 StatusOr<Foo> error_or(Status::UNKNOWN); in TEST() local 57 EXPECT_FALSE(error_or.ok()); in TEST() 58 EXPECT_EQ(error_or.status().CanonicalCode(), StatusCode::UNKNOWN); in TEST()
|
/external/cronet/base/types/ |
D | expected_unittest.cc | 629 EXPECT_EQ(ex.error_or(123), 123); in TEST() 632 EXPECT_EQ(unex.error_or(123), 0); in TEST() 637 EXPECT_EQ(std::move(ex).error_or(123).value, 123); in TEST() 640 EXPECT_EQ(std::move(unex).error_or(123).value, 0); in TEST() 1113 EXPECT_EQ(ex.error_or(123), 123); in TEST() 1116 EXPECT_EQ(unex.error_or(123), 0); in TEST() 1121 EXPECT_EQ(std::move(ex).error_or(123).value, 123); in TEST() 1124 EXPECT_EQ(std::move(unex).error_or(123).value, 0); in TEST()
|
D | expected.h | 443 constexpr E error_or(G&& e) const& noexcept { in error_or() function 452 constexpr E error_or(G&& e) && noexcept { in error_or() function 754 constexpr E error_or(G&& e) const& noexcept { in error_or() function 763 constexpr E error_or(G&& e) && noexcept { in error_or() function
|