Files
mariadb-connector-cpp/test/framework/test_suite.h
Lawrin Novitsky ffb3ba5776 CONCPP-59,60 Windows package issues, Exception crash fix, and more
Added missing headers to msi. Headers now installed into include/mariadb
ALl headers have been renamed from .h to .hpp
ConnCpp.hpp renamed to conncpp.hpp(all small letters)
All headers but conncpp.hpp, have been moved to conncpp subdirectory in
include, and in the msi

All exception classes have got explicit (exported from dll on Windows) copyconstructor
decluration, and definition of those constructors in the connector
library. And to stay on the safe side, all other constructors and
destructors definitions have been moved to library side.
Fixed the error, that few exception methods were declared as
dllimported, and defined in the header at the same time.
2021-02-04 14:15:58 +01:00

88 lines
2.3 KiB
C++

/*
* Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with certain software (including
* but not limited to OpenSSL) that is licensed under separate terms,
* as designated in a particular file or component or in included license
* documentation. The authors of MySQL hereby grant you an
* additional permission to link the program and your derivative works
* with the separately licensed software that they have included with
* MySQL.
*
* Without limiting anything contained in the foregoing, this file,
* which is part of MySQL Connector/C++, is also subject to the
* Universal FOSS Exception, version 1.0, a copy of which can be found at
* http://oss.oracle.com/licenses/universal-foss-exception.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License, version 2.0, for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TESTSUITE_H_
#define __TESTSUITE_H_
#include <vector>
#include "../common/ccppTypes.h"
#include "../common/stringutils.h"
#include "start_options.h"
#include "conncpp/Exception.hpp"
#include "test_case.h"
#include "test_listener.h"
namespace testsuite
{
class TestSuite : public Test, virtual public Private::TestContainer
{
private:
typedef std::vector<Private::TestContainer::StorableTest *> testsList;
typedef testsList::iterator testsList_it;
testsList testCases;
String suiteName;
protected:
static int TestsWillRunCount( const String & suiteName, const testsList & tl );
public:
TestSuite(const String& name="Unnamed Test Suite");
~TestSuite();
virtual void setUp()
{
}
virtual void tearDown()
{
}
const String & name() const;
virtual void RegisterTestCase(Test * test);
void runTest();
};
} // namespace testsuite
#endif // __TESTSUITE_H_