AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Functions | Variables
TaskThreadTest.cpp File Reference
#include <gtest/gtest.h>
#include "AVSCommon/Utils/Logger/ThreadMoniker.h"
#include "AVSCommon/Utils/Threading/TaskThread.h"
#include "AVSCommon/Utils/WaitEvent.h"
Include dependency graph for TaskThreadTest.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::threading
 
 alexaClientSDK::avsCommon::utils::threading::test
 

Functions

 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_waitForNothing)
 Test that wait will return if no job has ever started. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_startFailsDueToEmptyFunction)
 Test that start will fail if function is empty. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_simpleJob)
 Test that start will trigger the provided job and thread will exit once the job is done and return false. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_sequenceJobs)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_startNewJob)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, testTimer_startFailDueTooManyThreads)
 Test that start will fail if called multiple times while waiting for a job to start. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, DISABLED_test_moniker)
 Test that threads related to this task thread will always have specified moniker. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST (TaskThreadTest, test_monikerDifferentObjects)
 Test that threads from different TaskThreads will have different monikers. More...
 

Variables

const std::chrono::milliseconds alexaClientSDK::avsCommon::utils::threading::test::MY_WAIT_TIMEOUT {100}
 Timeout used while waiting for synchronization events. More...
 
const auto alexaClientSDK::avsCommon::utils::threading::test::THREAD_MONIKER = "1a1"
 Default thread moniker to use in tests. More...
 
const auto alexaClientSDK::avsCommon::utils::threading::test::THREAD_MONIKER2 = "1a2"
 Another thread moniker to use in 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