overte-Armored-Dragon/tests/shared/src/MovingPercentileTests.h
2016-12-28 18:09:31 -08:00

34 lines
787 B
C++

//
// MovingPercentileTests.h
// tests/shared/src
//
// Created by Yixin Wang on 6/4/2014
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_MovingPercentileTests_h
#define hifi_MovingPercentileTests_h
#include <QtTest/QtTest>
class MovingPercentileTests : public QObject {
Q_OBJECT
private slots:
// Tests
void testRunningMin ();
void testRunningMax ();
void testRunningMedian ();
private:
// Utilities and helper functions
int64_t random();
void testRunningMinForN (int n);
void testRunningMaxForN (int n);
void testRunningMedianForN (int n);
};
#endif // hifi_MovingPercentileTests_h