diff --git a/aws/kinesis/core/test/shard_map_test.cc b/aws/kinesis/core/test/shard_map_test.cc index 8f4d40a8..cd1e0a61 100644 --- a/aws/kinesis/core/test/shard_map_test.cc +++ b/aws/kinesis/core/test/shard_map_test.cc @@ -44,7 +44,7 @@ void pop(const std::list* q) { class MockKinesisClient : public Aws::Kinesis::KinesisClient { public: - MockKinesisClient( + MockKinesisClient ( std::list outcomes_list_shards, std::function callback_list_shards = []{}) : Aws::Kinesis::KinesisClient(kEmptyCreds, fake_client_cfg()), @@ -56,7 +56,7 @@ class MockKinesisClient : public Aws::Kinesis::KinesisClient { const Aws::Kinesis::Model::ListShardsRequest& request, const Aws::Kinesis::ListShardsResponseReceivedHandler& handler, const std::shared_ptr& context - = nullptr) const override { + = nullptr) const { executor_->schedule([=] { if (outcomes_list_shards_.size() == 0) { diff --git a/aws/metrics/test/metrics_manager_test.cc b/aws/metrics/test/metrics_manager_test.cc index 6592ded5..0ac19d56 100644 --- a/aws/metrics/test/metrics_manager_test.cc +++ b/aws/metrics/test/metrics_manager_test.cc @@ -55,7 +55,7 @@ class MockCloudWatchClient : public Aws::CloudWatch::CloudWatchClient { const Aws::CloudWatch::Model::PutMetricDataRequest& request, const Aws::CloudWatch::PutMetricDataResponseReceivedHandler& handler, const std::shared_ptr& context - = nullptr) const override { + = nullptr) const { push(&requests_, request); executor_->submit([=] { if (num_failures_ <= 0) {