20
20
#include < kinesis_video_streamer/ros_stream_subscription_installer.h>
21
21
#include < kinesis_video_streamer/streamer.h>
22
22
23
- using namespace std ;
24
23
using namespace com ::amazonaws::kinesis::video;
25
24
using namespace Aws ;
26
25
using namespace Aws ::Client;
@@ -91,13 +90,13 @@ struct MockStreamDefinitionProvider : public StreamDefinitionProvider
91
90
return data_->get_codec_private_data_return_value ;
92
91
}
93
92
94
- unique_ptr<StreamDefinition> GetStreamDefinition (const ParameterPath & prefix,
93
+ std:: unique_ptr<StreamDefinition> GetStreamDefinition (const ParameterPath & prefix,
95
94
const ParameterReaderInterface & reader,
96
95
const PBYTE codec_private_data,
97
96
uint32_t codec_private_data_size) const override
98
97
{
99
98
data_->get_stream_definition_call_count ++;
100
- return unique_ptr<StreamDefinition>(data_->get_stream_definition_return_value );
99
+ return std:: unique_ptr<StreamDefinition>(data_->get_stream_definition_return_value );
101
100
}
102
101
};
103
102
@@ -124,7 +123,7 @@ class TestParameterReader : public ParameterReaderInterface
124
123
public:
125
124
TestParameterReader () { TestParameterReader (" " ); }
126
125
127
- TestParameterReader (string test_prefix)
126
+ TestParameterReader (std:: string test_prefix)
128
127
{
129
128
int_map_ = {
130
129
{test_prefix + " retention_period" , 2 },
@@ -155,8 +154,8 @@ class TestParameterReader : public ParameterReaderInterface
155
154
};
156
155
}
157
156
158
- TestParameterReader (map<string, int > int_map, map<string, bool > bool_map,
159
- map<string, string> string_map, map<string, map<string, string>> map_map)
157
+ TestParameterReader (std:: map<std:: string, int > int_map, std:: map<std:: string, bool > bool_map,
158
+ std:: map<std:: string, std:: string> string_map, std:: map<std:: string, std:: map<std:: string, std:: string>> map_map)
160
159
: int_map_(int_map), bool_map_(bool_map), string_map_(string_map), map_map_(map_map)
161
160
{
162
161
}
@@ -181,7 +180,7 @@ class TestParameterReader : public ParameterReaderInterface
181
180
return AWS_ERR_NOT_FOUND;
182
181
}
183
182
184
- AwsError ReadParam (const ParameterPath & param_path, string & out) const
183
+ AwsError ReadParam (const ParameterPath & param_path, std:: string & out) const
185
184
{
186
185
std::string name = FormatParameterPath (param_path);
187
186
if (string_map_.count (name) > 0 ) {
@@ -196,7 +195,7 @@ class TestParameterReader : public ParameterReaderInterface
196
195
return AWS_ERR_EMPTY;
197
196
}
198
197
199
- AwsError ReadParam (const ParameterPath & param_path, map<string, string> & out) const
198
+ AwsError ReadParam (const ParameterPath & param_path, std:: map<std:: string, std:: string> & out) const
200
199
{
201
200
std::string name = FormatParameterPath (param_path);
202
201
if (map_map_.count (name) > 0 ) {
@@ -216,10 +215,10 @@ class TestParameterReader : public ParameterReaderInterface
216
215
return AWS_ERR_EMPTY;
217
216
}
218
217
219
- map<string, int > int_map_;
220
- map<string, bool > bool_map_;
221
- map<string, string> string_map_;
222
- map<string, map<string, string>> map_map_;
218
+ std:: map<std:: string, int > int_map_;
219
+ std:: map<std:: string, bool > bool_map_;
220
+ std:: map<std:: string, std:: string> string_map_;
221
+ std:: map<std:: string, std:: map<std:: string, std:: string>> map_map_;
223
222
224
223
private:
225
224
std::string FormatParameterPath (const ParameterPath & param_path) const
@@ -243,10 +242,10 @@ struct MockStreamManager : public KinesisStreamManagerInterface
243
242
}
244
243
245
244
KinesisManagerStatus InitializeVideoProducer (
246
- std::string region, unique_ptr<DeviceInfoProvider> device_info_provider,
247
- unique_ptr<ClientCallbackProvider> client_callback_provider,
248
- unique_ptr<StreamCallbackProvider> stream_callback_provider,
249
- unique_ptr<CredentialProvider> credential_provider,
245
+ std::string region, std:: unique_ptr<DeviceInfoProvider> device_info_provider,
246
+ std:: unique_ptr<ClientCallbackProvider> client_callback_provider,
247
+ std:: unique_ptr<StreamCallbackProvider> stream_callback_provider,
248
+ std:: unique_ptr<CredentialProvider> credential_provider,
250
249
VideoProducerFactory video_producer_factory) override
251
250
{
252
251
data_->initialize_video_producer_call_count ++;
@@ -261,7 +260,7 @@ struct MockStreamManager : public KinesisStreamManagerInterface
261
260
}
262
261
263
262
KinesisManagerStatus InitializeVideoStream (
264
- unique_ptr<StreamDefinition> stream_definition) override
263
+ std:: unique_ptr<StreamDefinition> stream_definition) override
265
264
{
266
265
data_->initialize_video_stream_call_count ++;
267
266
return data_->initialize_video_stream_return_value ;
0 commit comments