1//
2// WebSocketTest.h
3//
4// Definition of the WebSocketTest class.
5//
6// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef WebSocketTest_INCLUDED
14#define WebSocketTest_INCLUDED
15
16
17#include "Poco/Net/Net.h"
18#include "Poco/CppUnit/TestCase.h"
19
20
21class WebSocketTest: public CppUnit::TestCase
22{
23public:
24 WebSocketTest(const std::string& name);
25 ~WebSocketTest();
26
27 void testWebSocket();
28 void testWebSocketLarge();
29 void testWebSocketLargeInOneFrame();
30
31 void setUp();
32 void tearDown();
33
34 static CppUnit::Test* suite();
35
36private:
37 void testOneLargeFrame(int msgSize);
38};
39
40
41#endif // WebSocketTest_INCLUDED
42