]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/testEventLoop.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / tests / testEventLoop.h
CommitLineData
4e0938ef 1/*
f70aedc4 2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
4e0938ef
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
a553a5a3 8
9#ifndef SQUID_SRC_TEST_EVENTLOOP_H
10#define SQUID_SRC_TEST_EVENTLOOP_H
11
0cde91ae 12#include "compat/cppunit.h"
a553a5a3 13
14/*
15 * test the EventLoop implementation
16 */
17
18class testEventLoop : public CPPUNIT_NS::TestFixture
19{
20 CPPUNIT_TEST_SUITE( testEventLoop );
21 CPPUNIT_TEST( testCreate );
22 CPPUNIT_TEST( testRunOnce );
8ff3fa2e 23 CPPUNIT_TEST( testEngineTimeout );
c37b16eb 24 CPPUNIT_TEST( testEngineErrors );
8ff3fa2e 25 CPPUNIT_TEST( testSetTimeService );
bef81ea5 26 CPPUNIT_TEST( testSetPrimaryEngine );
a553a5a3 27 CPPUNIT_TEST_SUITE_END();
28
a553a5a3 29protected:
30 void testCreate();
31 void testRunOnce();
c37b16eb
AJ
32 void testEngineTimeout();
33 void testEngineErrors();
8ff3fa2e 34 void testSetTimeService();
bef81ea5 35 void testSetPrimaryEngine();
8ff3fa2e 36 /* TODO:
37 * test that engine which errors a couple of times, then returns 0, then
38 * errors 10 times in a row triggers a fail on the 10th time around
39 */
a553a5a3 40};
41
42#endif
43