@@ -104,7 +104,7 @@ TEST_F(ApiLookupClientImplTest, LookupApi) {
104104 SCOPED_TRACE (" Fetch from cache [CacheOnly] negative" );
105105 EXPECT_CALL (*cache_, Get (cache_key, _))
106106 .Times (1 )
107- .WillOnce (Return (boost ::any ()));
107+ .WillOnce (Return (olp::porting ::any ()));
108108
109109 client::CancellationContext context;
110110 client::ApiLookupClientImpl client (catalog_hrn, settings_);
@@ -154,7 +154,7 @@ TEST_F(ApiLookupClientImplTest, LookupApi) {
154154 .WillRepeatedly (Return (true ));
155155 EXPECT_CALL (*cache_, Get (cache_key, _))
156156 .Times (1 )
157- .WillOnce (Return (boost ::any ()));
157+ .WillOnce (Return (olp::porting ::any ()));
158158
159159 client::CancellationContext context;
160160 client::ApiLookupClientImpl client (catalog_hrn, settings_);
@@ -183,7 +183,9 @@ TEST_F(ApiLookupClientImplTest, LookupApi) {
183183 EXPECT_CALL (*cache_, Put (_, _, _, expiry))
184184 .Times (3 )
185185 .WillRepeatedly (Return (true ));
186- EXPECT_CALL (*cache_, Get (_, _)).Times (1 ).WillOnce (Return (boost::any ()));
186+ EXPECT_CALL (*cache_, Get (_, _))
187+ .Times (1 )
188+ .WillOnce (Return (olp::porting::any ()));
187189
188190 client::CancellationContext context;
189191 client::ApiLookupClientImpl client (catalog_hrn, settings_);
@@ -368,7 +370,9 @@ TEST_F(ApiLookupClientImplTest, LookupApi) {
368370 olp::http::HttpStatusCode::OK),
369371 kResponseLookupResource ));
370372
371- EXPECT_CALL (*cache_, Get (_, _)).Times (1 ).WillOnce (Return (boost::any ()));
373+ EXPECT_CALL (*cache_, Get (_, _))
374+ .Times (1 )
375+ .WillOnce (Return (olp::porting::any ()));
372376
373377 // Response contains three services that are cached independently.
374378 EXPECT_CALL (*cache_, Put (_, _, _, _)).Times (3 );
@@ -569,7 +573,7 @@ TEST_F(ApiLookupClientImplTest, LookupApiAsync) {
569573 SCOPED_TRACE (" Fetch from cache [CacheOnly] negative" );
570574 EXPECT_CALL (*cache_, Get (cache_key, _))
571575 .Times (1 )
572- .WillOnce (Return (boost ::any ()));
576+ .WillOnce (Return (olp::porting ::any ()));
573577
574578 std::promise<client::ApiLookupClient::LookupApiResponse> promise;
575579 auto future = promise.get_future ();
@@ -631,7 +635,7 @@ TEST_F(ApiLookupClientImplTest, LookupApiAsync) {
631635 .WillRepeatedly (Return (true ));
632636 EXPECT_CALL (*cache_, Get (cache_key, _))
633637 .Times (1 )
634- .WillOnce (Return (boost ::any ()));
638+ .WillOnce (Return (olp::porting ::any ()));
635639
636640 std::promise<client::ApiLookupClient::LookupApiResponse> promise;
637641 auto future = promise.get_future ();
@@ -665,7 +669,9 @@ TEST_F(ApiLookupClientImplTest, LookupApiAsync) {
665669 EXPECT_CALL (*cache_, Put (_, _, _, expiry))
666670 .Times (3 )
667671 .WillRepeatedly (Return (true ));
668- EXPECT_CALL (*cache_, Get (_, _)).Times (1 ).WillOnce (Return (boost::any ()));
672+ EXPECT_CALL (*cache_, Get (_, _))
673+ .Times (1 )
674+ .WillOnce (Return (olp::porting::any ()));
669675
670676 std::promise<client::ApiLookupClient::LookupApiResponse> promise;
671677 auto future = promise.get_future ();
@@ -803,7 +809,9 @@ TEST_F(ApiLookupClientImplTest, LookupApiAsync) {
803809 olp::http::HttpStatusCode::OK),
804810 kResponseLookupResource ));
805811
806- EXPECT_CALL (*cache_, Get (_, _)).Times (1 ).WillOnce (Return (boost::any ()));
812+ EXPECT_CALL (*cache_, Get (_, _))
813+ .Times (1 )
814+ .WillOnce (Return (olp::porting::any ()));
807815
808816 // Response contains three services that are cached independently.
809817 EXPECT_CALL (*cache_, Put (_, _, _, _)).Times (3 );
0 commit comments