Searched refs:status_or_foo (Results 1 – 4 of 4) sorted by relevance
/external/libtextclassifier/abseil-cpp/absl/status/ |
D | statusor_test.cc | 439 absl::StatusOr<Foo> status_or_foo(10); in TEST() local 440 status_or_foo.emplace(20); in TEST() 441 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST() 442 status_or_foo = absl::InvalidArgumentError("msg"); in TEST() 443 EXPECT_FALSE(status_or_foo.ok()); in TEST() 444 EXPECT_EQ(status_or_foo.status().code(), absl::StatusCode::kInvalidArgument); in TEST() 445 EXPECT_EQ(status_or_foo.status().message(), "msg"); in TEST() 446 status_or_foo.emplace(20); in TEST() 447 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST()
|
/external/openscreen/third_party/abseil/src/absl/status/ |
D | statusor_test.cc | 450 absl::StatusOr<Foo> status_or_foo(10); in TEST() local 451 status_or_foo.emplace(20); in TEST() 452 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST() 453 status_or_foo = absl::InvalidArgumentError("msg"); in TEST() 454 EXPECT_FALSE(status_or_foo.ok()); in TEST() 455 EXPECT_EQ(status_or_foo.status().code(), absl::StatusCode::kInvalidArgument); in TEST() 456 EXPECT_EQ(status_or_foo.status().message(), "msg"); in TEST() 457 status_or_foo.emplace(20); in TEST() 458 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/status/ |
D | statusor_test.cc | 439 absl::StatusOr<Foo> status_or_foo(10); in TEST() local 440 status_or_foo.emplace(20); in TEST() 441 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST() 442 status_or_foo = absl::InvalidArgumentError("msg"); in TEST() 443 EXPECT_FALSE(status_or_foo.ok()); in TEST() 444 EXPECT_EQ(status_or_foo.status().code(), absl::StatusCode::kInvalidArgument); in TEST() 445 EXPECT_EQ(status_or_foo.status().message(), "msg"); in TEST() 446 status_or_foo.emplace(20); in TEST() 447 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST()
|
/external/angle/third_party/abseil-cpp/absl/status/ |
D | statusor_test.cc | 450 absl::StatusOr<Foo> status_or_foo(10); in TEST() local 451 status_or_foo.emplace(20); in TEST() 452 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST() 453 status_or_foo = absl::InvalidArgumentError("msg"); in TEST() 454 EXPECT_FALSE(status_or_foo.ok()); in TEST() 455 EXPECT_EQ(status_or_foo.status().code(), absl::StatusCode::kInvalidArgument); in TEST() 456 EXPECT_EQ(status_or_foo.status().message(), "msg"); in TEST() 457 status_or_foo.emplace(20); in TEST() 458 EXPECT_THAT(status_or_foo, IsOkAndHolds(Field(&Foo::x, 20))); in TEST()
|