The Power in your Hands
Search Site:
About
Features
Documentation
Download
Community
Main
Classes
Namespaces
Modules
include
Pt
Unit
TextProtocol.h
1
/*
2
* This library is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU Lesser General Public
4
* License as published by the Free Software Foundation; either
5
* version 2.1 of the License, or (at your option) any later version.
6
*
7
* As a special exception, you may use this file as part of a free
8
* software library without restriction. Specifically, if other files
9
* instantiate templates or use macros or inline functions from this
10
* file, or you compile this file and link it with other files to
11
* produce an executable, this file does not by itself cause the
12
* resulting executable to be covered by the GNU General Public
13
* License. This exception does not however invalidate any other
14
* reasons why the executable file might be covered by the GNU Library
15
* General Public License.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public
23
* License along with this library; if not, write to the Free Software
24
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25
*/
26
#ifndef PT_UNIT_TEXTPROTOCOL_H
27
#define PT_UNIT_TEXTPROTOCOL_H
28
29
#include <Pt/Unit/Api.h>
30
#include <Pt/Unit/TestSuite.h>
31
32
33
namespace
Pt {
34
35
namespace
Unit {
36
42
class
PT_UNIT_API
TextProtocol
:
public
Pt::Unit::TestProtocol
43
{
44
public
:
45
48
TextProtocol
(
const
std::string& path)
49
: _path(path)
50
{
51
}
52
58
virtual
void
run(
Pt::Unit::TestSuite
& suite);
59
60
private
:
61
std::string _path;
62
};
63
64
}
// namespace Unit
65
66
}
// namespace Pt
67
68
69
#endif // PT_UNIT_TEXTPROTOCOL_H
Pt::Unit::TestSuite
Protocol and data driven testing.
Definition:
TestSuite.h:76
Pt::Unit::TextProtocol
Implements a simple text protocol.
Definition:
TextProtocol.h:42
Pt::Unit::TextProtocol::TextProtocol
TextProtocol(const std::string &path)
Construct with test protocol file name.
Definition:
TextProtocol.h:48
Pt::Unit::TestProtocol
Protocol for test suites.
Definition:
TestProtocol.h:51