AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockCryptoCodec.h
Go to the documentation of this file.
1 /*
2  * Copyright 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 ACSDK_CRYPTOINTERFACES_TEST_MOCKCRYPTOCODEC_H_
17 #define ACSDK_CRYPTOINTERFACES_TEST_MOCKCRYPTOCODEC_H_
18 
21 
22 namespace alexaClientSDK {
23 namespace cryptoInterfaces {
24 namespace test {
25 
30 public:
31  MOCK_NOEXCEPT_METHOD2(_init, bool(const Key&, const IV&));
32  MOCK_NOEXCEPT_METHOD1(_processAAD, bool(const DataBlock&));
33  MOCK_NOEXCEPT_METHOD2(_processAAD, bool(const DataBlock::const_iterator&, const DataBlock::const_iterator&));
34  MOCK_NOEXCEPT_METHOD2(_process, bool(const DataBlock&, DataBlock&));
36  _process,
37  bool(const DataBlock::const_iterator&, const DataBlock::const_iterator&, DataBlock&));
38  MOCK_NOEXCEPT_METHOD1(_finalize, bool(DataBlock&));
39  MOCK_NOEXCEPT_METHOD1(_getTag, bool(Tag&));
40  MOCK_NOEXCEPT_METHOD1(_setTag, bool(const Tag&));
41 };
42 
43 } // namespace test
44 } // namespace cryptoInterfaces
45 } // namespace alexaClientSDK
46 
47 #endif // ACSDK_CRYPTOINTERFACES_TEST_MOCKCRYPTOCODEC_H_
MOCK_NOEXCEPT_METHOD2(_init, bool(const Key &, const IV &))
std::vector< unsigned char > Key
Key type. This type contains key bytes.
Definition: CryptoCodecInterface.h:164
Definition: AmdMetricWrapperTest.cpp:24
std::vector< unsigned char > Tag
Tag vector type. Tag is used with AEAD mode of operation like with Galois/Counter mode...
Definition: CryptoCodecInterface.h:173
MOCK_NOEXCEPT_METHOD3(_process, bool(const DataBlock::const_iterator &, const DataBlock::const_iterator &, DataBlock &))
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Crypto codec (cipher) interface.
Definition: CryptoCodecInterface.h:156
std::vector< unsigned char > IV
Initialization vector type. Initialization vector contains data to initialize codec state before encr...
Definition: CryptoCodecInterface.h:169
std::vector< unsigned char > DataBlock
Data block type. This type represents a byte array.
Definition: CryptoCodecInterface.h:160
MOCK_NOEXCEPT_METHOD1(_processAAD, bool(const DataBlock &))

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0