parameter_reader_mock.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 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 
16 #ifndef LEX_COMMON_TEST__PARAMETER_READER_MOCK_H_
17 #define LEX_COMMON_TEST__PARAMETER_READER_MOCK_H_
18 
19 #include <gmock/gmock.h>
20 
22 
23 #include <map>
24 #include <vector>
25 #include <string>
26 
27 
28 namespace Aws
29 {
30 namespace Client
31 {
32 
33 class ParameterReaderMock : public Aws::Client::ParameterReaderInterface
34 {
35 public:
37  const ParameterPath &, std::vector<std::string>&));
39  const ParameterPath &, double &));
41  const ParameterPath &, int &));
43  const ParameterPath &, bool &));
45  const ParameterPath &, Aws::String &));
47  const ParameterPath &, std::string &));
49  const ParameterPath &, std::map<std::string, std::string>&));
50 };
51 
52 extern const ParameterPath user_id_key;
53 extern const ParameterPath bot_name_key;
54 extern const ParameterPath bot_alias_key;
55 
65 void SetupMockReader(
66  AwsError user_id_error,
67  AwsError bot_name_error,
68  AwsError bot_alias_error,
69  ParameterReaderMock & mock_reader);
70 
71 } // namespace Client
72 } // namespace Aws
73 
74 #endif // LEX_COMMON_TEST__PARAMETER_READER_MOCK_H_
void SetupMockReader(AwsError user_id_error, AwsError bot_name_error, AwsError bot_alias_error, ParameterReaderMock &mock_reader)
const ParameterPath bot_alias_key
virtual AwsError ReadParam(const ParameterPath &param_path, std::vector< std::string > &out) const =0
MOCK_CONST_METHOD2(ReadParam, Aws::AwsError(const ParameterPath &, std::vector< std::string > &))
const ParameterPath user_id_key
const ParameterPath bot_name_key


lex_common
Author(s): AWS RoboMaker
autogenerated on Sat Mar 6 2021 03:43:24