@@ -84,7 +84,7 @@ Matcher<v2::MutateRowsRequest::Entry> MatchEntry(std::string const& row_key) {
8484}
8585
8686// Individual entry pairs are: {index, StatusCode}
87- absl ::optional<v2::MutateRowsResponse> MakeResponse (
87+ std ::optional<v2::MutateRowsResponse> MakeResponse (
8888 std::vector<std::pair<int , grpc::StatusCode>> const & entries) {
8989 v2::MutateRowsResponse resp;
9090 for (auto entry : entries) {
@@ -227,8 +227,7 @@ TEST_F(AsyncBulkApplyTest, Success) {
227227 MakeResponse ({{1 , grpc::StatusCode::OK }}));
228228 })
229229 .WillOnce ([] {
230- return make_ready_future (
231- absl::optional<v2::MutateRowsResponse>{});
230+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
232231 });
233232 EXPECT_CALL (*stream, Finish).WillOnce ([] {
234233 return make_ready_future (Status{});
@@ -299,8 +298,7 @@ TEST_F(AsyncBulkApplyTest, PartialStreamIsRetried) {
299298 MakeResponse ({{0 , grpc::StatusCode::OK }}));
300299 })
301300 .WillOnce ([] {
302- return make_ready_future (
303- absl::optional<v2::MutateRowsResponse>{});
301+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
304302 });
305303 EXPECT_CALL (*stream, Finish).WillOnce ([] {
306304 return make_ready_future (Status{});
@@ -323,8 +321,7 @@ TEST_F(AsyncBulkApplyTest, PartialStreamIsRetried) {
323321 MakeResponse ({{0 , grpc::StatusCode::OK }}));
324322 })
325323 .WillOnce ([] {
326- return make_ready_future (
327- absl::optional<v2::MutateRowsResponse>{});
324+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
328325 });
329326 EXPECT_CALL (*stream, Finish).WillOnce ([] {
330327 return make_ready_future (Status{});
@@ -403,8 +400,7 @@ TEST_F(AsyncBulkApplyTest, IdempotentMutationPolicy) {
403400 {3 , grpc::StatusCode::UNAVAILABLE }}));
404401 })
405402 .WillOnce ([] {
406- return make_ready_future (
407- absl::optional<v2::MutateRowsResponse>{});
403+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
408404 });
409405 EXPECT_CALL (*stream, Finish).WillOnce ([] {
410406 return make_ready_future (Status{});
@@ -428,8 +424,7 @@ TEST_F(AsyncBulkApplyTest, IdempotentMutationPolicy) {
428424 MakeResponse ({{0 , grpc::StatusCode::OK }}));
429425 })
430426 .WillOnce ([] {
431- return make_ready_future (
432- absl::optional<v2::MutateRowsResponse>{});
427+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
433428 });
434429 EXPECT_CALL (*stream, Finish).WillOnce ([] {
435430 return make_ready_future (Status{});
@@ -559,7 +554,7 @@ TEST_F(AsyncBulkApplyTest, RetryInfoHeeded) {
559554 .WillOnce (Return (ByMove (
560555 make_ready_future (MakeResponse ({{0 , grpc::StatusCode::OK }})))))
561556 .WillOnce (Return (ByMove (
562- make_ready_future (absl ::optional<v2::MutateRowsResponse>()))));
557+ make_ready_future (std ::optional<v2::MutateRowsResponse>()))));
563558 EXPECT_CALL (*stream, Finish)
564559 .WillOnce (Return (make_ready_future (Status ())));
565560 return stream;
@@ -687,7 +682,7 @@ TEST_F(AsyncBulkApplyTest, TimerError) {
687682
688683TEST_F (AsyncBulkApplyTest, CancelAfterSuccess) {
689684 bigtable::BulkMutation mut (IdempotentMutation (" r0" ));
690- promise<absl ::optional<v2::MutateRowsResponse>> p;
685+ promise<std ::optional<v2::MutateRowsResponse>> p;
691686
692687#ifdef GOOGLE_CLOUD_CPP_BIGTABLE_WITH_OTEL_METRICS
693688 auto mock_metric = std::make_unique<MockMetric>();
@@ -754,7 +749,7 @@ TEST_F(AsyncBulkApplyTest, CancelAfterSuccess) {
754749 actual.cancel ();
755750 // Proceed with the rest of the stream. In this test, there are no more
756751 // responses to be read. The client call should succeed.
757- p.set_value (absl ::optional<v2::MutateRowsResponse>{});
752+ p.set_value (std ::optional<v2::MutateRowsResponse>{});
758753 CheckFailedMutations (actual.get (), {});
759754}
760755
@@ -763,7 +758,7 @@ TEST_F(AsyncBulkApplyTest, CancelMidStream) {
763758 {Status (StatusCode::kCancelled , " User cancelled" ), 2 }};
764759 bigtable::BulkMutation mut (IdempotentMutation (" r0" ), IdempotentMutation (" r1" ),
765760 IdempotentMutation (" r2" ));
766- promise<absl ::optional<v2::MutateRowsResponse>> p;
761+ promise<std ::optional<v2::MutateRowsResponse>> p;
767762
768763#ifdef GOOGLE_CLOUD_CPP_BIGTABLE_WITH_OTEL_METRICS
769764 auto mock_metric = std::make_unique<MockMetric>();
@@ -806,7 +801,7 @@ TEST_F(AsyncBulkApplyTest, CancelMidStream) {
806801 .WillOnce ([&p] { return p.get_future (); });
807802 EXPECT_CALL (*stream, Cancel);
808803 EXPECT_CALL (*stream, Read).WillOnce ([] {
809- return make_ready_future (absl ::optional<v2::MutateRowsResponse>{});
804+ return make_ready_future (std ::optional<v2::MutateRowsResponse>{});
810805 });
811806 EXPECT_CALL (*stream, Finish).WillOnce ([] {
812807 return make_ready_future (
@@ -924,8 +919,7 @@ TEST_F(AsyncBulkApplyTest, RetriesOkStreamWithFailedMutations) {
924919 MakeResponse ({{0 , grpc::StatusCode::UNAVAILABLE }}));
925920 })
926921 .WillOnce ([] {
927- return make_ready_future (
928- absl::optional<v2::MutateRowsResponse>{});
922+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
929923 });
930924 EXPECT_CALL (*stream, Finish).WillOnce ([] {
931925 return make_ready_future (Status ());
@@ -993,7 +987,7 @@ TEST_F(AsyncBulkApplyTest, Throttling) {
993987 });
994988 EXPECT_CALL (*limiter, Update);
995989 EXPECT_CALL (*stream, Read).WillOnce ([] {
996- return make_ready_future (absl ::optional<v2::MutateRowsResponse>{});
990+ return make_ready_future (std ::optional<v2::MutateRowsResponse>{});
997991 });
998992 EXPECT_CALL (*stream, Finish).WillOnce ([] {
999993 return make_ready_future (Status ());
@@ -1029,8 +1023,7 @@ TEST_F(AsyncBulkApplyTest, ThrottlingBeforeEachRetry) {
10291023 MakeResponse ({{0 , grpc::StatusCode::UNAVAILABLE }}));
10301024 })
10311025 .WillOnce ([] {
1032- return make_ready_future (
1033- absl::optional<v2::MutateRowsResponse>{});
1026+ return make_ready_future (std::optional<v2::MutateRowsResponse>{});
10341027 });
10351028 EXPECT_CALL (*stream, Finish).WillOnce ([] {
10361029 return make_ready_future (Status ());
0 commit comments