~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

Viewing changes to tests/modules/ApplicationManager/application_manager_test.cpp

  • Committer: CI bot
  • Author(s): Gerry Boland, Robert Carr, Michał Sawicz
  • Date: 2014-12-03 10:06:40 UTC
  • mfrom: (250.4.74 origin/cmake)
  • Revision ID: ps-jenkins@lists.canonical.com-20141203100640-wlk4i71g0cwl3r5r
Port qmake->cmake to enable sbuild usage for crosscompiling. 
Approved by: Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <condition_variable>
20
20
#include <QSignalSpy>
21
21
 
22
 
#include <applicationscreenshotprovider.h>
 
22
#include <Unity/Application/applicationscreenshotprovider.h>
23
23
 
24
24
 #include "mock_surface.h"
25
25
 #include "qtmir_test.h"
158
158
    applicationManager.authorizeSession(secondProcId, authed);
159
159
    applicationManager.onProcessStarting(dialer_app_id);
160
160
 
161
 
    EXPECT_EQ(false,authed);
 
161
    EXPECT_FALSE(authed);
162
162
    EXPECT_EQ(app,applicationManager.findApplication(dialer_app_id));
163
163
}
164
164
 
481
481
    applicationManager.setSuspended(true);
482
482
 
483
483
    EXPECT_EQ(Application::Suspended, the_app->state());
484
 
    EXPECT_EQ(false, the_app->focused());
 
484
    EXPECT_FALSE(the_app->focused());
485
485
 
486
486
    applicationManager.setSuspended(false);
487
487
 
522
522
 
523
523
    // And given that the AppManager is suspended now, this should go to suspended too
524
524
    EXPECT_EQ(Application::Suspended, the_app->state());
525
 
    EXPECT_EQ(false, the_app->focused());
 
525
    EXPECT_FALSE(the_app->focused());
526
526
 
527
527
    applicationManager.setSuspended(false);
528
528