pw_status: Replace Status::Ok() with OkStatus()
- Mark Status::Ok() and StatusWithSize::Ok() as deprecated.
- Replace Status::Ok() with OkStatus().
- Replace StatusWithSize::Ok() with StatusWithSize().
Change-Id: If7192282446bf6d7f90990bb0b4f1b1b89a9228a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/29003
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
diff --git a/pw_rpc/client_test.cc b/pw_rpc/client_test.cc
index 3174cfc..9249877 100644
--- a/pw_rpc/client_test.cc
+++ b/pw_rpc/client_test.cc
@@ -49,7 +49,7 @@
TestClientCall call(
&context.channel(), context.kServiceId, context.kMethodId);
- EXPECT_EQ(context.SendResponse(Status::Ok(), {}), Status::Ok());
+ EXPECT_EQ(context.SendResponse(OkStatus(), {}), OkStatus());
EXPECT_TRUE(call.invoked());
}
@@ -57,7 +57,7 @@
TEST(Client, ProcessPacket_SendsClientErrorOnUnregisteredCall) {
ClientContextForTest context;
- EXPECT_EQ(context.SendResponse(Status::OK, {}), Status::NotFound());
+ EXPECT_EQ(context.SendResponse(OkStatus(), {}), Status::NotFound());
ASSERT_EQ(context.output().packet_count(), 1u);
const Packet& packet = context.output().sent_packet();