cloudwatch_logs_client_mock.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 #pragma once
16 
17 #include <gmock/gmock.h>
18 #include <aws/core/Aws.h>
19 #include <aws/core/utils/Outcome.h>
20 #include <aws/core/client/AWSClient.h>
21 #include <aws/logs/CloudWatchLogsClient.h>
22 #include <aws/logs/model/CreateLogGroupRequest.h>
23 #include <aws/logs/model/DescribeLogGroupsRequest.h>
24 #include <aws/logs/model/CreateLogStreamRequest.h>
25 #include <aws/logs/model/DescribeLogStreamsRequest.h>
26 
27 
28 
29 class CloudWatchLogsClientMock : public Aws::CloudWatchLogs::CloudWatchLogsClient
30 {
31 public:
33  PutLogEvents,
34  Aws::CloudWatchLogs::Model::PutLogEventsOutcome(
35  const Aws::CloudWatchLogs::Model::PutLogEventsRequest & request));
37  CreateLogGroup,
38  Aws::CloudWatchLogs::Model::CreateLogGroupOutcome(
39  const Aws::CloudWatchLogs::Model::CreateLogGroupRequest & request));
41  DescribeLogGroups,
42  Aws::CloudWatchLogs::Model::DescribeLogGroupsOutcome(
43  const Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest & request));
45  CreateLogStream,
46  Aws::CloudWatchLogs::Model::CreateLogStreamOutcome(
47  const Aws::CloudWatchLogs::Model::CreateLogStreamRequest & request));
49  DescribeLogStreams,
50  Aws::CloudWatchLogs::Model::DescribeLogStreamsOutcome(
51  const Aws::CloudWatchLogs::Model::DescribeLogStreamsRequest & request));
52 };
53 
MOCK_CONST_METHOD1(PutLogEvents, Aws::CloudWatchLogs::Model::PutLogEventsOutcome(const Aws::CloudWatchLogs::Model::PutLogEventsRequest &request))


cloudwatch_logs_common
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:24