QGIS API Documentation 3.43.0-Master (c67cf405802)
qgstestutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstestutils.h
3 ---------------------
4 begin : January 2018
5 copyright : (C) 2018 by Nyall Dawson
6 email : nyall.dawson@gmail.com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSTESTUTILS_H
17#define QGSTESTUTILS_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
21#include "qgsfeaturerequest.h"
22
24
26
27// Used only for utilities required for the QGIS Python unit tests - not stable or public API
28class CORE_EXPORT QgsTestUtils
29{
30 public:
31
38 static bool testProviderIteratorThreadSafety( QgsVectorDataProvider *provider, const QgsFeatureRequest &request = QgsFeatureRequest() );
39
45 static bool compareDomElements( const QDomElement &element1, const QDomElement &element2 );
46
47};
48
50#endif //QGSTESTUTILS_H
Wraps a request for features to a vector layer (or directly its vector data provider).
Base class for vector data providers.