Lines Matching refs:StatusCode

28 TEST(StatusCode, InsertionOperator) {  in TEST()  argument
29 const absl::StatusCode code = absl::StatusCode::kUnknown; in TEST()
38 absl::StatusCode code;
46 {absl::StatusCode::kCancelled, absl::CancelledError, absl::IsCancelled},
47 {absl::StatusCode::kUnknown, absl::UnknownError, absl::IsUnknown},
48 {absl::StatusCode::kInvalidArgument, absl::InvalidArgumentError,
50 {absl::StatusCode::kDeadlineExceeded, absl::DeadlineExceededError,
52 {absl::StatusCode::kNotFound, absl::NotFoundError, absl::IsNotFound},
53 {absl::StatusCode::kAlreadyExists, absl::AlreadyExistsError,
55 {absl::StatusCode::kPermissionDenied, absl::PermissionDeniedError,
57 {absl::StatusCode::kResourceExhausted, absl::ResourceExhaustedError,
59 {absl::StatusCode::kFailedPrecondition, absl::FailedPreconditionError,
61 {absl::StatusCode::kAborted, absl::AbortedError, absl::IsAborted},
62 {absl::StatusCode::kOutOfRange, absl::OutOfRangeError, absl::IsOutOfRange},
63 {absl::StatusCode::kUnimplemented, absl::UnimplementedError,
65 {absl::StatusCode::kInternal, absl::InternalError, absl::IsInternal},
66 {absl::StatusCode::kUnavailable, absl::UnavailableError,
68 {absl::StatusCode::kDataLoss, absl::DataLossError, absl::IsDataLoss},
69 {absl::StatusCode::kUnauthenticated, absl::UnauthenticatedError,
103 EXPECT_EQ(absl::StatusCode::kOk, status.code()); in TEST()
110 EXPECT_EQ(absl::StatusCode::kOk, status.code()); in TEST()
116 absl::Status status(absl::StatusCode::kCancelled, ""); in TEST()
118 EXPECT_EQ(absl::StatusCode::kCancelled, status.code()); in TEST()
122 absl::Status status(absl::StatusCode::kInternal, "message"); in TEST()
124 EXPECT_EQ(absl::StatusCode::kInternal, status.code()); in TEST()
131 absl::Status status(static_cast<absl::StatusCode>(kRawCode), ""); in TEST()
132 EXPECT_EQ(absl::StatusCode::kUnknown, status.code()); in TEST()
155 absl::Status bad_status(absl::StatusCode::kInternal, "fail"); in TEST()
174 absl::Status bad_status(absl::StatusCode::kInternal, "fail"); in TEST()
194 absl::Status bad_status1(absl::StatusCode::kInternal, "fail"); in TEST()
199 absl::Status bad_status2(absl::StatusCode::kInternal, "fail"); in TEST()
208 absl::Status payload_status(absl::StatusCode::kInternal, ""); in TEST()
212 absl::Status empty_status(absl::StatusCode::kInternal, ""); in TEST()
237 absl::Status bad_status(absl::StatusCode::kInternal, "fail"); in TEST()
260 scratch.emplace_back(absl::StatusCode::kInternal, "fail"); in TEST()
273 absl::Status s(absl::StatusCode::kInternal, "fail"); in TEST()
291 absl::Status base(absl::StatusCode::kInvalidArgument, "fail"); in TEST()
299 absl::Status base(absl::StatusCode::kInvalidArgument, "fail"); in TEST()
320 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
325 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
340 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
345 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
353 const absl::Status status_orig(absl::StatusCode::kInvalidArgument, "message"); in TEST()
367 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
369 absl::Status(absl::StatusCode::kInvalidArgument, "message")); in TEST()
373 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
389 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
390 assignee = absl::Status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
394 absl::Status status(absl::StatusCode::kInvalidArgument, "message"); in TEST()
406 const absl::Status a(absl::StatusCode::kCancelled, "message"); in TEST()
409 const absl::Status b(absl::StatusCode::kInternal, "other message"); in TEST()
447 const absl::Status no_payload(absl::StatusCode::kAlreadyExists, "no payload"); in TEST()
448 absl::Status with_payload(absl::StatusCode::kInternal, "with payload"); in TEST()