AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
VisualActivityTrackerTest.cpp File Reference
#include <chrono>
#include <future>
#include <memory>
#include <thread>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/SDKInterfaces/FocusManagerInterface.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include "AFML/VisualActivityTracker.h"
Include dependency graph for VisualActivityTrackerTest.cpp:

Classes

class  alexaClientSDK::afml::test::VisualActivityTrackerTest
 Test harness for VisualActivityTrackerTest class. More...
 

Namespaces

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

Functions

static std::chrono::milliseconds alexaClientSDK::afml::test::MY_WAIT_TIMEOUT (1000)
 Plenty of time for a test to complete. More...
 
static const std::string alexaClientSDK::afml::test::NAMESPACE_AUDIO_ACTIVITY_TRACKER ("VisualActivityTracker")
 Namespace for AudioActivityTracke. More...
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_noActivityUpdate)
 Test if there's no activity updates, VisualActivityTracker will return an empty context. More...
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_emptyActivityUpdate)
 Test if there's an empty vector of activity updates, VisualActivityTracker will return an empty context. More...
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_oneIdleChannel)
 Test if there's an activityUpdate for one idle channel, VisualActivityTracker will return an empty context. More...
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_oneActiveChannel)
 Test if there's an activityUpdate for one active channel, context will be reported correctly. More...
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_invalidChannelActivityUpdate)
 
 alexaClientSDK::afml::test::TEST_F (VisualActivityTrackerTest, test_validChannelTwoActivityUpdates)
 

Variables

static const NamespaceAndName alexaClientSDK::afml::test::NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"}
 The NamespaceAndName to send to the ContextManager. More...
 
static const unsigned int alexaClientSDK::afml::test::PROVIDE_STATE_TOKEN_TEST {1}
 Provide State Token for testing. More...
 
static const std::string alexaClientSDK::afml::test::VISUAL_CHANNEL_NAME {"Visual"}
 The default Visual Channel name. More...
 
static const std::string alexaClientSDK::afml::test::VISUAL_INTERFACE_NAME {"TempateRuntime"}
 The default Visual Interface name. More...
 
static unsigned int alexaClientSDK::afml::test::VISUAL_CHANNEL_PRIORITY {100}
 The default Visual Channel priority. More...
 
static const std::string alexaClientSDK::afml::test::INVALID_CHANNEL_NAME {"Invalid"}
 The default Invalid Channel name. More...
 
static unsigned int alexaClientSDK::afml::test::INVALID_CHANNEL_PRIORITY {300}
 The default Channel priority for the invalid channel. More...
 
static const std::chrono::milliseconds alexaClientSDK::afml::test::SHORT_TIMEOUT_MS = std::chrono::milliseconds(5)
 Timeout to sleep before asking for provideState(). 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