~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

« back to all changes in this revision

Viewing changes to tests/unit/argument/tst_argument.cpp

  • Committer: Tarmac
  • Author(s): Loïc Molinari
  • Date: 2016-09-12 16:04:18 UTC
  • mfrom: (2090.1.7 uitk-test)
  • Revision ID: tarmac-20160912160418-3murc3kypk2jwamk
Fixed, cleaned up and standardised header inclusions.

Apart from the clean up and the readability improvements, this fixes a bunch of broken private header inclusions (#include "foo_p.h" in private headers instead of "private/foo_p.h" or better <Project/private/foo_p.h>), now all the private headers of the UITK can be included by the users withour compilation issues. It also removes a bunch of direct includes from sources and a few INCLUDEPATHs hacks.

See the CODING file for more details.

Approved by ubuntu-sdk-build-bot, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Author: Florian Boucault <florian.boucault@canonical.com>
17
17
 */
18
18
 
 
19
#include <QtCore/QString>
 
20
#include <QtTest/QTest>
19
21
#define protected public
20
22
#include <UbuntuToolkit/private/ucargument_p.h>
21
23
#undef protected
22
24
 
23
 
#include <QtCore/QString>
24
 
#include <QtTest/QTest>
25
 
 
26
25
UT_USE_NAMESPACE
27
26
 
28
27
class tst_UCArgument : public QObject