AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockDigest.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_MOCKDIGEST_H_
17 #define ACSDK_CRYPTOINTERFACES_TEST_MOCKDIGEST_H_
18 
21 
22 namespace alexaClientSDK {
23 namespace cryptoInterfaces {
24 namespace test {
25 
29 class MockDigest : public DigestInterface {
30 public:
32  MOCK_NOEXCEPT_METHOD2(process, bool(const DataBlock::const_iterator, const DataBlock::const_iterator));
33  MOCK_NOEXCEPT_METHOD1(processByte, bool(unsigned char));
34  MOCK_NOEXCEPT_METHOD1(processUInt8, bool(uint8_t));
35  MOCK_NOEXCEPT_METHOD1(processUInt16, bool(uint16_t));
36  MOCK_NOEXCEPT_METHOD1(processUInt32, bool(uint32_t));
37  MOCK_NOEXCEPT_METHOD1(processUInt64, bool(uint64_t));
41 };
42 
43 } // namespace test
44 } // namespace cryptoInterfaces
45 } // namespace alexaClientSDK
46 
47 #endif // ACSDK_CRYPTOINTERFACES_TEST_MOCKDIGEST_H_
MOCK_NOEXCEPT_METHOD2(process, bool(const DataBlock::const_iterator, const DataBlock::const_iterator))
virtual bool finalize(DataBlock &dataOut) noexcept=0
Finishes digest computation and produces the result.
virtual bool processString(const std::string &value) noexcept=0
Updates digest with string value.
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual bool reset() noexcept=0
Resets the digest.
virtual bool processUInt32(uint32_t value) noexcept=0
Updates digest with uint32_t integer value.
virtual bool process(const DataBlock &dataIn) noexcept=0
Updates digest with a data block.
virtual bool processUInt16(uint16_t value) noexcept=0
Updates digest with uint16_t integer value.
MOCK_NOEXCEPT_METHOD1(process, bool(const DataBlock &))
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Digest computation interface.
Definition: DigestInterface.h:52
virtual bool processUInt64(uint64_t value) noexcept=0
Updates digest with uint64_t integer value.
std::vector< unsigned char > DataBlock
Data block type. This type represents a byte array.
Definition: DigestInterface.h:56
virtual bool processByte(unsigned char value) noexcept=0
Updates digest with a byte value.
virtual bool processUInt8(uint8_t value) noexcept=0
Updates digest with uint8_t value.

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