~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to tests/ut_selfcompositing/ut_selfcompositing.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20130723194704-0o18p2ao0x9sa1zx
Tags: upstream-0.99.0+git20130615+97e8335
ImportĀ upstreamĀ versionĀ 0.99.0+git20130615+97e8335

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * This file is part of Maliit framework *
2
 
 *
3
 
 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4
 
 * All rights reserved.
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
8
 
 * This library is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Lesser General Public
10
 
 * License version 2.1 as published by the Free Software Foundation
11
 
 * and appearing in the file LICENSE.LGPL included in the packaging
12
 
 * of this file.
13
 
 */
14
 
 
15
 
#include "ut_selfcompositing.h"
16
 
#include "mimxapplication.h"
17
 
#include "mimremotewindow.h"
18
 
#include "gui-utils.h"
19
 
 
20
 
#if defined(Q_WS_X11)
21
 
#include <QX11Info>
22
 
#endif
23
 
 
24
 
namespace
25
 
{
26
 
}
27
 
 
28
 
void Ut_SelfCompositing::initTestCase()
29
 
{
30
 
    static char *argv[1] = { (char *) "Ut_SelfCompositing" };
31
 
    static int argc = 1;
32
 
 
33
 
    // Enforcing raster GS to make test reliable:
34
 
    QApplication::setGraphicsSystem("raster");
35
 
 
36
 
    xOptions.selfComposited = true;
37
 
 
38
 
    app = new MImXApplication(argc, argv, xOptions);
39
 
    serverLogic = app->serverLogic();
40
 
}
41
 
 
42
 
void Ut_SelfCompositing::cleanupTestCase()
43
 
{
44
 
    delete app;
45
 
}
46
 
 
47
 
void Ut_SelfCompositing::init()
48
 
{}
49
 
 
50
 
void Ut_SelfCompositing::cleanup()
51
 
{}
52
 
 
53
 
QTEST_APPLESS_MAIN(Ut_SelfCompositing)