Skip to content

Commit 8ecafdf

Browse files
committed
Use std::optional is available instead of boost::optional
Relates-To: NLAM-23 Signed-off-by: sopov <ext-alexander.sopov@here.com>
1 parent 25dd9ad commit 8ecafdf

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

tests/functional/olp-cpp-sdk-dataservice-read/VersionedLayerClientGetDataTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ TEST_F(VersionedLayerClientGetDataTest,
220220
mock_server_client_->MockGetResponse(kLayer, data_handle, tile_data);
221221
}
222222

223-
read::VersionedLayerClient client(kHrn, kLayer, olp::porting::none, *settings_);
223+
read::VersionedLayerClient client(kHrn, kLayer, olp::porting::none,
224+
*settings_);
224225

225226
std::promise<read::DataResponse> promise;
226227
std::future<read::DataResponse> future = promise.get_future();

tests/integration/olp-cpp-sdk-dataservice-read/VersionedLayerClientPrefetchPartitionsTest.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ std::vector<std::string> GeneratePartitionIds(size_t partitions_count) {
6363

6464
TEST_F(VersionedLayerClientPrefetchPartitionsTest, PrefetchPartitions) {
6565
auto partitions_count = 3u;
66-
auto client =
67-
read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
66+
auto client = read::VersionedLayerClient(kCatalogHrn, kLayer,
67+
olp::porting::none, settings_);
6868
auto partitions = GeneratePartitionIds(partitions_count);
6969
auto partitions_response =
7070
ReadDefaultResponses::GeneratePartitionsResponse(partitions_count);
@@ -164,8 +164,7 @@ TEST_F(VersionedLayerClientPrefetchPartitionsTest, PrefetchPartitions) {
164164

165165
TEST_F(VersionedLayerClientPrefetchPartitionsTest, PrefetchPartitionsFails) {
166166
auto partitions_count = 3u;
167-
auto client =
168-
read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
167+
auto client = read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
169168
auto partitions = GeneratePartitionIds(partitions_count);
170169
auto partitions_response =
171170
ReadDefaultResponses::GeneratePartitionsResponse(partitions_count);
@@ -293,8 +292,8 @@ TEST_F(VersionedLayerClientPrefetchPartitionsTest, PrefetchBatchFails) {
293292

294293
TEST_F(VersionedLayerClientPrefetchPartitionsTest, PrefetchPartitionsCancel) {
295294
auto partitions_count = 1u;
296-
auto client =
297-
read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
295+
auto client = read::VersionedLayerClient(kCatalogHrn, kLayer,
296+
olp::porting::none, settings_);
298297
auto partitions = GeneratePartitionIds(partitions_count);
299298
auto partitions_response =
300299
ReadDefaultResponses::GeneratePartitionsResponse(partitions_count);
@@ -326,8 +325,7 @@ TEST_F(VersionedLayerClientPrefetchPartitionsTest, CheckPriority) {
326325
// this priority should be less than priority, but greater than LOW
327326
auto finish_task_priority = 200u;
328327
auto partitions_count = 3u;
329-
auto client =
330-
read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
328+
auto client = read::VersionedLayerClient(kCatalogHrn, kLayer, olp::porting::none, settings_);
331329
auto partitions = GeneratePartitionIds(partitions_count);
332330
auto partitions_response =
333331
ReadDefaultResponses::GeneratePartitionsResponse(partitions_count);

tests/utils/mock-server-client/Expectation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ struct Expectation {
3636
struct RequestMatcher {
3737
olp::porting::optional<std::string> path = olp::porting::none;
3838
olp::porting::optional<std::string> method = olp::porting::none;
39-
olp::porting::optional<std::vector<QueryStringParameter>> query_string_parameters =
40-
olp::porting::none;
39+
olp::porting::optional<std::vector<QueryStringParameter>>
40+
query_string_parameters = olp::porting::none;
4141
};
4242

4343
struct ResponseDelay {

0 commit comments

Comments
 (0)