AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
SharedAVSSettingProtocolTest.cpp File Reference
#include <memory>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/SDKInterfaces/MockAVSConnectionManager.h>
#include <AVSCommon/Utils/Metrics/MockMetricRecorder.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include <Settings/SharedAVSSettingProtocol.h>
#include <Settings/SettingEventMetadata.h>
#include <Settings/SettingObserverInterface.h>
#include "Settings/MockSettingEventSender.h"
#include "Settings/MockDeviceSettingStorage.h"
Include dependency graph for SharedAVSSettingProtocolTest.cpp:

Classes

class  alexaClientSDK::settings::test::MockCallbacks
 
class  alexaClientSDK::settings::test::SharedAVSSettingProtocolTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::settings
 
 alexaClientSDK::settings::test
 

Functions

 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_nullEventSender)
 Test create with null event sender. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_nullStorage)
 Test create with null storage. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_restoreValueNotAvailable)
 Test restore when value is not available in the database. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_restoreValueNotAvailableCloudAuthoritative)
 Test restore when value is not available in the database for a setting that use cloud authoritative default value. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_restoreSynchronized)
 Test restore when the value is available and synchronized. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequest)
 Test success flow for AVS request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestSetFailed)
 Test set value failed for AVS request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestStoreFailed)
 Test store value failed. Revert should be called and AVS notified of previous value. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_AVSChangeRequestSendEventFailed)
 Test send event failed for avs request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_localRequest)
 Test success flow for local request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_localRequestSetFailed)
 Test set value failed during local request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_localRequestStoreFailed)
 Test store value to database failed for local request. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_localRequestSendEventFailed)
 Test send changed event failed for local request. In this case, we should not update the database with SYNCHRONIZED. More...
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_localChangeSettingOfflineSynchronization)
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_avsChangeSettingOfflineSynchronization)
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_multipleAVSChanges)
 
 alexaClientSDK::settings::test::TEST_F (SharedAVSSettingProtocolTest, test_multipleLocalChanges)
 

Variables

static const std::string alexaClientSDK::settings::test::DB_VALUE = R"("db-value")"
 Constant representing a valid database value. More...
 
static const std::string alexaClientSDK::settings::test::DEFAULT_VALUE = R"("default-value")"
 Constant representing a default value. More...
 
static const std::string alexaClientSDK::settings::test::NEW_VALUE = R"("new-value")"
 Constant representing a valid new value. More...
 
static const std::string alexaClientSDK::settings::test::INVALID_VALUE = ""
 Empty string used to represent invalid value by the protocol. More...
 
static const std::string alexaClientSDK::settings::test::key = METADATA.eventNamespace + "::" + METADATA.settingName
 The database key to be used by the protocol given the METADATA object. More...
 
static const auto alexaClientSDK::settings::test::TEST_TIMEOUT = std::chrono::seconds(5)
 The timeout used throughout the tests. More...
 

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