homescreenapp/hshomescreenclientplugin/tsrc/t_hshomescreenclientplugin/src/t_hshomescreenclientplugin.cpp
equal
deleted
inserted
replaced
107 } |
107 } |
108 |
108 |
109 // --------------------------------------------------------------------------- |
109 // --------------------------------------------------------------------------- |
110 // --------------------------------------------------------------------------- |
110 // --------------------------------------------------------------------------- |
111 // |
111 // |
|
112 void HsHomescreenClientPluginTest::testSetWallpaper2() |
|
113 { |
|
114 HsHomescreenClient *client = new HsHomescreenClient; |
|
115 |
|
116 QSignalSpy requestFinishedSpy(client, SIGNAL(requestFinished())); |
|
117 |
|
118 bool result = client->setWallpaper("wallpaper", "wallpaper"); |
|
119 |
|
120 // but emit correct signals |
|
121 connect(this, SIGNAL(onRequestCompletedTest(QVariant)), client, SLOT(onRequestCompleted(QVariant))); |
|
122 emit onRequestCompletedTest(true); |
|
123 |
|
124 QVERIFY(requestFinishedSpy.count()); |
|
125 QVERIFY(client->mRequestResult); |
|
126 |
|
127 delete client; |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------------------------- |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
112 void HsHomescreenClientPluginTest::testOnRequestError() |
133 void HsHomescreenClientPluginTest::testOnRequestError() |
113 { |
134 { |
114 HsHomescreenClient *client = new HsHomescreenClient; |
135 HsHomescreenClient *client = new HsHomescreenClient; |
115 |
136 |
116 QSignalSpy requestFinishedSpy(client, SIGNAL(requestFinished())); |
137 QSignalSpy requestFinishedSpy(client, SIGNAL(requestFinished())); |