mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
64 lines
1.7 KiB
C++
64 lines
1.7 KiB
C++
// ======================================================================
|
|
// \title Util/test/ut/TokenBucketTester.hpp
|
|
// \author vwong
|
|
// \brief hpp file for TokenBucket test harness implementation class
|
|
//
|
|
// \copyright
|
|
//
|
|
// Copyright (C) 2009-2020 California Institute of Technology.
|
|
//
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
// ======================================================================
|
|
|
|
#ifndef TOKENBUCKETTESTER_HPP
|
|
#define TOKENBUCKETTESTER_HPP
|
|
|
|
#include <Fw/FPrimeBasicTypes.hpp>
|
|
#include "Utils/TokenBucket.hpp"
|
|
#include "gtest/gtest.h"
|
|
|
|
namespace Utils {
|
|
|
|
class TokenBucketTester {
|
|
// ----------------------------------------------------------------------
|
|
// Construction and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
public:
|
|
//! Construct object TokenBucketTester
|
|
//!
|
|
TokenBucketTester();
|
|
|
|
//! Destroy object TokenBucketTester
|
|
//!
|
|
~TokenBucketTester();
|
|
|
|
public:
|
|
// ----------------------------------------------------------------------
|
|
// Tests
|
|
// ----------------------------------------------------------------------
|
|
|
|
void testTriggering();
|
|
void testReconfiguring();
|
|
void testInitialSettings();
|
|
|
|
private:
|
|
// ----------------------------------------------------------------------
|
|
// Helper methods
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Initialize components
|
|
//!
|
|
void initComponents();
|
|
|
|
private:
|
|
// ----------------------------------------------------------------------
|
|
// Variables
|
|
// ----------------------------------------------------------------------
|
|
};
|
|
|
|
} // end namespace Utils
|
|
|
|
#endif
|