Debian Codegraph @

tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This file is part of lomiri-online-accounts-ui
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include <Accounts/Account>
22 #include <Accounts/Manager>
23 #include <QDebug>
24 #include <QDir>
25 #include <QDomDocument>
26 #include <QDomElement>
27 #include <QFile>
28 #include <QProcess>
29 #include <QRegularExpression>
30 #include <QSignalSpy>
31 #include <QTest>
32 #include <QTextStream>
33 #include <SignOn/Identity>
34 #include <SignOn/IdentityInfo>
35 #include <libqtdbusmock/DBusMock.h>
36 #include "fake_signond.h"cxx . . $ `<file>/tests/click-hooks/online-accounts-hooks2/fake_signond.h`/
37
38 #define TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! TMP_DIRcxx . . $ `<built-in>:484:9`! "/hooks-test2"
39
40 // map file name -> contents
41 typedef QHashcxx . . $ QHash#<QStringcxx . . $ QString#,QStringcxx . . $ QString#> FileDatacxx . . $ FileData#;
42
43 class OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#: public QObjectcxx . . $ QObject#
44 {
45 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
46
47 public:
48 OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#OnlineAccountsHooksTest(49f6e7a06ebc5aa8).();
49
50 private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
51 void initTestCasecxx . . $ OnlineAccountsHooksTest#initTestCase(49f6e7a06ebc5aa8).();
52 void cleanupcxx . . $ OnlineAccountsHooksTest#cleanup(49f6e7a06ebc5aa8).() {
53 if (!QTestcxx . . $ QTest/::currentTestFailedcxx . . $ QTest/currentTestFailed(c9857a73d68e59ba).()) {
54 clearHooksDircxx . . $ OnlineAccountsHooksTest#clearHooksDir(49f6e7a06ebc5aa8).();
55 clearInstallDircxx . . $ OnlineAccountsHooksTest#clearInstallDir(49f6e7a06ebc5aa8).();
56 clearPackageDircxx . . $ OnlineAccountsHooksTest#clearPackageDir(49f6e7a06ebc5aa8).();
57 }
58 }
59 void testNoFilescxx . . $ OnlineAccountsHooksTest#testNoFiles(49f6e7a06ebc5aa8).();
60 void testValidHooks_datacxx . . $ OnlineAccountsHooksTest#testValidHooks_data(49f6e7a06ebc5aa8).();
61 void testValidHookscxx . . $ OnlineAccountsHooksTest#testValidHooks(49f6e7a06ebc5aa8).();
62 void testRemovalcxx . . $ OnlineAccountsHooksTest#testRemoval(49f6e7a06ebc5aa8).();
63 void testRemovalWithAclcxx . . $ OnlineAccountsHooksTest#testRemovalWithAcl(49f6e7a06ebc5aa8).();
64 void testTimestampRemovalcxx . . $ OnlineAccountsHooksTest#testTimestampRemoval(49f6e7a06ebc5aa8).();
65
66 private:
67 void clearHooksDircxx . . $ OnlineAccountsHooksTest#clearHooksDir(49f6e7a06ebc5aa8).();
68 void clearInstallDircxx . . $ OnlineAccountsHooksTest#clearInstallDir(49f6e7a06ebc5aa8).();
69 void clearPackageDircxx . . $ OnlineAccountsHooksTest#clearPackageDir(49f6e7a06ebc5aa8).();
70 bool runHookProcesscxx . . $ OnlineAccountsHooksTest#runHookProcess(c9857a73d68e59ba).();
71 bool runXmlDiffcxx . . $ OnlineAccountsHooksTest#runXmlDiff(edf9e4f73813982f).(const QStringcxx . . $ QString# &generated, const QStringcxx . . $ QString# &expected);
72 void writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name, const QStringcxx . . $ QString# &contents);
73 void writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name, const QStringcxx . . $ QString# &contents);
74 void writePackageFilecxx . . $ OnlineAccountsHooksTest#writePackageFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name,
75 const QStringcxx . . $ QString# &contents = QStringcxx . . $ QString#QString(ced63f7c635d850d).());
76 QStringListcxx . . $ QStringList# findGeneratedFilescxx . . $ OnlineAccountsHooksTest#findGeneratedFiles(e1dbd5c4feadc8f5).() const;
77
78 private:
79 QtDBusTestcxx . . $ QtDBusTest/::DBusTestRunnercxx . . $ QtDBusTest/DBusTestRunner# m_dbuscxx . . $ OnlineAccountsHooksTest#m_dbus.;
80 QtDBusMockcxx . . $ QtDBusMock/::DBusMockcxx . . $ QtDBusMock/DBusMock# m_mockcxx . . $ OnlineAccountsHooksTest#m_mock.;
81 FakeSignondcxx . . $ FakeSignond# m_signondcxx . . $ OnlineAccountsHooksTest#m_signond.;
82 QByteArraycxx . . $ QByteArray# m_busAddresscxx . . $ OnlineAccountsHooksTest#m_busAddress.;
83 QDircxx . . $ QDir# m_testDircxx . . $ OnlineAccountsHooksTest#m_testDir.;
84 QDircxx . . $ QDir# m_hooksDircxx . . $ OnlineAccountsHooksTest#m_hooksDir.;
85 QDircxx . . $ QDir# m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir.;
86 QDircxx . . $ QDir# m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir.;
87 };
88
89 OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#OnlineAccountsHooksTest(49f6e7a06ebc5aa8).():
90 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(0),
91 m_dbuscxx . . $ OnlineAccountsHooksTest#m_dbus.(),
92 m_mockcxx . . $ OnlineAccountsHooksTest#m_mock.(m_dbuscxx . . $ OnlineAccountsHooksTest#m_dbus.),
93 m_signondcxx . . $ OnlineAccountsHooksTest#m_signond.(&m_mockcxx . . $ OnlineAccountsHooksTest#m_mock.),
94 m_testDircxx . . $ OnlineAccountsHooksTest#m_testDir.(TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`!),
95 m_hooksDircxx . . $ OnlineAccountsHooksTest#m_hooksDir.(TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/lomiri-online-accounts-hooks2"),
96 m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir.(TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/accounts"),
97 m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir.(TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package")
98 {
99 m_busAddresscxx . . $ OnlineAccountsHooksTest#m_busAddress. =cxx . . $ QByteArray#`operator=`(c3d647c78c52d790). qgetenvcxx . . $ qgetenv(531409eeffcde449).("DBUS_SESSION_BUS_ADDRESS");
100 }
101
102 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::clearHooksDircxx . . $ OnlineAccountsHooksTest#clearHooksDir(49f6e7a06ebc5aa8).()
103 {
104 m_hooksDircxx . . $ OnlineAccountsHooksTest#m_hooksDir..removeRecursivelycxx . . $ QDir#removeRecursively(c9857a73d68e59ba).();
105 m_hooksDircxx . . $ OnlineAccountsHooksTest#m_hooksDir..mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).("."cxx . . $ QString#QString(85c52e162fed56f9).);
106 }
107
108 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::clearInstallDircxx . . $ OnlineAccountsHooksTest#clearInstallDir(49f6e7a06ebc5aa8).()
109 {
110 m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir..removeRecursivelycxx . . $ QDir#removeRecursively(c9857a73d68e59ba).();
111 m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir..mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).("."cxx . . $ QString#QString(85c52e162fed56f9).);
112 }
113
114 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::clearPackageDircxx . . $ OnlineAccountsHooksTest#clearPackageDir(49f6e7a06ebc5aa8).()
115 {
116 m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..removeRecursivelycxx . . $ QDir#removeRecursively(c9857a73d68e59ba).();
117 m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).("."cxx . . $ QString#QString(85c52e162fed56f9).);
118 }
119
120 bool OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::runHookProcesscxx . . $ OnlineAccountsHooksTest#runHookProcess(c9857a73d68e59ba).()
121 {
122 QProcesscxx . . $ QProcess# processcxx . . $ QProcess#QProcess(749de1b6ae65bddd).;
123 process.setProcessChannelModecxx . . $ QProcess#setProcessChannelMode(325e95cd0c77e646).(QProcesscxx . . $ QProcess#::ForwardedChannelscxx . . $ QProcess#ForwardedChannels.);
124 process.startcxx . . $ QProcess#start(8f4bc4a0c00c3d3f).(HOOK_PROCESScxx . . $ `<built-in>:476:9`!);
125 if (!process.waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).()) return false;
126
127 return process.exitCodecxx . . $ QProcess#exitCode(455f465bc33b4cdf).() == EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!;
128 }
129
130 bool OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::runXmlDiffcxx . . $ OnlineAccountsHooksTest#runXmlDiff(edf9e4f73813982f).(const QStringcxx . . $ QString# &generated,
131 const QStringcxx . . $ QString# &expected)
132 {
133 QProcesscxx . . $ QProcess# processcxx . . $ QProcess#QProcess(749de1b6ae65bddd).;
134 process.setProcessChannelModecxx . . $ QProcess#setProcessChannelMode(325e95cd0c77e646).(QProcesscxx . . $ QProcess#::ForwardedChannelscxx . . $ QProcess#ForwardedChannels.);
135 QStringListcxx . . $ QStringList# argscxx . . $ QStringList#QStringList(ced63f7c635d850d).;
136 args.appendcxx . . $ QList#append(77d9f17553126ecb).(generated);
137 args.appendcxx . . $ QList#append(77d9f17553126ecb).(expected);
138 process.startcxx . . $ QProcess#start(5e315ba9c811784d).("xmldiff"cxx . . $ QString#QString(85c52e162fed56f9)., args);
139 if (!process.waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).()) return false;
140
141 int exitCode = process.exitCodecxx . . $ QProcess#exitCode(455f465bc33b4cdf).();
142 if (exitCode != EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!) {
143 process.startcxx . . $ QProcess#start(5e315ba9c811784d).("cat"cxx . . $ QString#QString(85c52e162fed56f9)., args);
144 process.waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).();
145 }
146 return exitCode == EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!;
147 }
148
149 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name,
150 const QStringcxx . . $ QString# &contents)
151 {
152 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(m_hooksDircxx . . $ OnlineAccountsHooksTest#m_hooksDir..filePathcxx . . $ QDir#filePath(5555d9024dcf93fb).(name));
153 if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QIODevice#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QIODevicecxx . . $ QIODevice#::Textcxx . . $ QIODevice#Text.)) {
154 qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Could not write file" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). name;
155 return;
156 }
157
158 file.writecxx . . $ QIODevice#write(4ee2750a0be83987).(contents.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).());
159 }
160
161 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name,
162 const QStringcxx . . $ QString# &contents)
163 {
164 QFileInfocxx . . $ QFileInfo# fileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(name);
165 m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir..mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).(fileInfo.pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).());
166 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir..filePathcxx . . $ QDir#filePath(5555d9024dcf93fb).(name));
167 if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QIODevice#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QIODevicecxx . . $ QIODevice#::Textcxx . . $ QIODevice#Text.)) {
168 qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Could not write file" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). name;
169 return;
170 }
171
172 file.writecxx . . $ QIODevice#write(4ee2750a0be83987).(contents.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).());
173 }
174
175 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::writePackageFilecxx . . $ OnlineAccountsHooksTest#writePackageFile(c1427772cd1877b0).(const QStringcxx . . $ QString# &name,
176 const QStringcxx . . $ QString# &contents)
177 {
178 QFileInfocxx . . $ QFileInfo# fileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(name);
179 m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).(fileInfo.pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).());
180 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..filePathcxx . . $ QDir#filePath(5555d9024dcf93fb).(name));
181 if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QIODevice#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QIODevicecxx . . $ QIODevice#::Textcxx . . $ QIODevice#Text.)) {
182 qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Could not write file" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). name;
183 return;
184 }
185
186 file.writecxx . . $ QIODevice#write(4ee2750a0be83987).(contents.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).());
187 }
188
189 static QStringListcxx . . $ QStringList# findFilescxx . . $ findFiles(cae1d9a946e79a97).(const QDircxx . . $ QDir# &dir)
190 {
191 QStringListcxx . . $ QStringList# files = dir.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::Filescxx . . $ QDir#Files.);
192
193 QStringListcxx . . $ QStringList# dirs = dir.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QDir#::Dirscxx . . $ QDir#Dirs. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.);
194 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(const QString &d, dirs) {
195 QStringListcxx . . $ QStringList# dirFiles = findFilescxx . . $ findFiles(cae1d9a946e79a97).(QDircxx . . $ QDir#QDir(3520e46b33348bf6).(dir.filePathcxx . . $ QDir#filePath(5555d9024dcf93fb).(d)));
196 Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(const QString &file, dirFiles) {
197 files.appendcxx . . $ QList#append(77d9f17553126ecb).(dir.relativeFilePathcxx . . $ QDir#relativeFilePath(5555d9024dcf93fb).(d +cxx . . $ operator+(3d22f08efddf8107). "/" +cxx . . $ operator+(fab9b4f80031f353). file));
198 }
199 }
200
201 return files;
202 }
203
204 QStringListcxx . . $ QStringList# OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::findGeneratedFilescxx . . $ OnlineAccountsHooksTest#findGeneratedFiles(e1dbd5c4feadc8f5).() const
205 {
206 return findFilescxx . . $ findFiles(cae1d9a946e79a97).(m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir.);
207 }
208
209 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::initTestCasecxx . . $ OnlineAccountsHooksTest#initTestCase(49f6e7a06ebc5aa8).()
210 {
211 qputenvcxx . . $ qputenv(d42e8231112a1b5b).("XDG_DATA_HOME", TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`!);
212 qputenvcxx . . $ qputenv(d42e8231112a1b5b).("OAH_CLICK_DIR", m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..pathcxx . . $ QDir#path(6ef7b6c27b00b43d).().toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).());
213 qputenvcxx . . $ qputenv(d42e8231112a1b5b).("ACCOUNTS", TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`!);
214 qputenvcxx . . $ qputenv(d42e8231112a1b5b).("SSO_USE_PEER_BUS", "0"cxx . . $ QByteArray#QByteArray(34d26762b42c433a).);
215
216 // The hook must be able to run without a D-Bus session
217 qunsetenvcxx . . $ qunsetenv(c5f7da30cbc0f4e9).("DBUS_SESSION_BUS_ADDRESS");
218
219 clearHooksDircxx . . $ OnlineAccountsHooksTest#clearHooksDir(49f6e7a06ebc5aa8).();
220 clearInstallDircxx . . $ OnlineAccountsHooksTest#clearInstallDir(49f6e7a06ebc5aa8).();
221 clearPackageDircxx . . $ OnlineAccountsHooksTest#clearPackageDir(49f6e7a06ebc5aa8).();
222 }
223
224 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testNoFilescxx . . $ OnlineAccountsHooksTest#testNoFiles(49f6e7a06ebc5aa8).()
225 {
226 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runHookProcess());
227 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_hooksDir.entryList(QDir::Files).isEmpty());
228 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(findGeneratedFiles().isEmpty());
229 }
230
231 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testValidHooks_datacxx . . $ OnlineAccountsHooksTest#testValidHooks_data(49f6e7a06ebc5aa8).()
232 {
233 QTestcxx . . $ QTest/::addColumncxx . . $ QTest/addColumn(cfe4d590606f2f46).<QStringcxx . . $ QString#>("hookName");
234 QTestcxx . . $ QTest/::addColumncxx . . $ QTest/addColumn(cfe4d590606f2f46).<QStringcxx . . $ QString#>("contents");
235 QTestcxx . . $ QTest/::addColumncxx . . $ QTest/addColumn(cfe4d590606f2f46).<FileDatacxx . . $ FileData#>("packageFiles");
236 QTestcxx . . $ QTest/::addColumncxx . . $ QTest/addColumn(cfe4d590606f2f46).<FileDatacxx . . $ FileData#>("expectedFiles");
237
238 FileDatacxx . . $ FileData# filescxx . . $ QHash#QHash(ced63f7c635d850d).;
239 FileDatacxx . . $ FileData# packagecxx . . $ QHash#QHash(ced63f7c635d850d).;
240 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("empty file") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
241 "com.lomiri.test_MyApp_0.1.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
242 "" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
243 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
244 files;
245
246 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("empty dictionary") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
247 "com.lomiri.test_MyApp_0.1.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
248 "{}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
249 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
250 files;
251
252 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
253 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
254 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
255 "<application id=\"com.lomiri.test_MyApp\">\n"
256 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
257 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
258 " <desktop-entry>com.lomiri.test_MyApp_0.2</desktop-entry>\n"
259 " <services>\n"
260 " <service id=\"com.lomiri.test_MyApp_google\">\n"
261 " <description>Publish to Picasa</description>\n"
262 " </service>\n"
263 " </services>\n"
264 "</application>\n";
265 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
266 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
267 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
268 "<service id=\"com.lomiri.test_MyApp_google\">\n"
269 " <type>com.lomiri.test_MyApp</type>\n"
270 " <provider>google</provider>\n"
271 " <name>Picasa</name>\n"
272 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
273 " <template>\n"
274 " <setting name=\"Key\">value</setting>\n"
275 " <group name=\"a\">\n"
276 " <group name=\"b\">\n"
277 " <group name=\"c\">\n"
278 " <setting name=\"Key3\">value3</setting>\n"
279 " <setting name=\"Key4\">value4</setting>\n"
280 " </group>\n"
281 " </group>\n"
282 " </group>\n"
283 " <group name=\"other\">\n"
284 " <setting name=\"key\">value5</setting>\n"
285 " </group>\n"
286 " <group name=\"subgroup\">\n"
287 " <setting name=\"Key2\">value2</setting>\n"
288 " </group>\n"
289 " </template>\n"
290 "</service>\n";
291 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("one service") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
292 "com.lomiri.test_MyApp_0.2.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
293 "{"
294 " \"services\": ["
295 " {"
296 " \"provider\": \"google\","
297 " \"description\": \"Publish to Picasa\","
298 " \"name\": \"Picasa\","
299 " \"settings\": {"
300 " \"Key\": \"value\","
301 " \"subgroup\": {"
302 " \"Key2\": \"value2\""
303 " },"
304 " \"a/b/c\": {"
305 " \"Key3\": \"value3\","
306 " \"Key4\": \"value4\""
307 " },"
308 " \"other/key\": \"value5\""
309 " }"
310 " }"
311 " ]"
312 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
313 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
314 files;
315
316 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
317 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
318 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
319 "<application id=\"com.lomiri.test_MyApp\">\n"
320 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
321 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
322 " <desktop-entry>com.lomiri.test_MyApp_0.2</desktop-entry>\n"
323 " <services>\n"
324 " <service id=\"com.lomiri.test_MyApp_google\">\n"
325 " <description>.</description>\n"
326 " </service>\n"
327 " </services>\n"
328 "</application>\n";
329 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
330 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
331 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
332 "<service id=\"com.lomiri.test_MyApp_google\">\n"
333 " <type>com.lomiri.test_MyApp</type>\n"
334 " <provider>google</provider>\n"
335 " <name>.</name>\n"
336 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
337 "</service>\n";
338 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("minimal") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
339 "com.lomiri.test_MyApp_0.2.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
340 "{"
341 " \"services\": ["
342 " {"
343 " \"provider\": \"google\""
344 " }"
345 " ]"
346 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
347 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
348 files;
349
350 files.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
351 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
352 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
353 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
354 "<application id=\"com.lomiri.test_MyApp\">\n"
355 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
356 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
357 " <desktop-entry>com.lomiri.test_MyApp_0.3</desktop-entry>\n"
358 " <translations>my-app</translations>\n"
359 " <services>\n"
360 " <service id=\"com.lomiri.test_MyApp_facebook\">\n"
361 " <description>Publish to Facebook</description>\n"
362 " </service>\n"
363 " <service id=\"com.lomiri.test_MyApp_google\">\n"
364 " <description>Publish to Picasa</description>\n"
365 " </service>\n"
366 " </services>\n"
367 "</application>\n";
368 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
369 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
370 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
371 "<service id=\"com.lomiri.test_MyApp_google\">\n"
372 " <type>com.lomiri.test_MyApp</type>\n"
373 " <provider>google</provider>\n"
374 " <name>Picasa</name>\n"
375 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
376 " <translations>my-app</translations>\n"
377 "</service>\n";
378 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_facebook.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
379 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
380 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
381 "<service id=\"com.lomiri.test_MyApp_facebook\">\n"
382 " <type>com.lomiri.test_MyApp</type>\n"
383 " <provider>facebook</provider>\n"
384 " <name>Facebook photos</name>\n"
385 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
386 " <translations>my-app</translations>\n"
387 "</service>\n";
388 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("two services") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
389 "com.lomiri.test_MyApp_0.3.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
390 "{"
391 " \"translations\": \"my-app\","
392 " \"services\": ["
393 " {"
394 " \"provider\": \"facebook\","
395 " \"description\": \"Publish to Facebook\","
396 " \"name\": \"Facebook photos\""
397 " },"
398 " {"
399 " \"provider\": \"google\","
400 " \"description\": \"Publish to Picasa\","
401 " \"name\": \"Picasa\""
402 " }"
403 " ]"
404 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
405 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
406 files;
407
408 files.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
409 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp2.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
410 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
411 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
412 "<application id=\"com.lomiri.test_MyApp2\">\n"
413 " <profile>com.lomiri.test_MyApp2_0.2</profile>\n"
414 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
415 " <desktop-entry>com.lomiri.test_MyApp2_0.2</desktop-entry>\n"
416 " <services>\n"
417 " <service id=\"com.lomiri.test_MyApp2_google\">\n"
418 " <description>Publish to Picasa</description>\n"
419 " </service>\n"
420 " </services>\n"
421 "</application>\n";
422 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp2_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
423 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
424 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
425 "<service id=\"com.lomiri.test_MyApp2_google\">\n"
426 " <type>com.lomiri.test_MyApp2</type>\n"
427 " <provider>google</provider>\n"
428 " <name>Picasa</name>\n"
429 " <profile>com.lomiri.test_MyApp2_0.2</profile>\n"
430 " <template>\n"
431 " <group name=\"auth\">\n"
432 " <setting name=\"method\">oauth2</setting>\n"
433 " <setting name=\"mechanism\">web_server</setting>\n"
434 " <group name=\"oauth2\">\n"
435 " <group name=\"web_server\">\n"
436 " <setting name=\"ClientId\">foo</setting>\n"
437 " <setting name=\"ClientSecret\">bar</setting>\n"
438 " <setting name=\"Scopes\" type=\"as\">['one scope','and another']</setting>\n"
439 " <setting name=\"UseSSL\" type=\"b\">false</setting>\n"
440 " </group>\n"
441 " </group>\n"
442 " </group>\n"
443 " </template>\n"
444 "</service>\n";
445 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("one service, with auth data") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
446 "com.lomiri.test_MyApp2_0.2.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
447 "{"
448 " \"services\": ["
449 " {"
450 " \"provider\": \"google\","
451 " \"description\": \"Publish to Picasa\","
452 " \"name\": \"Picasa\","
453 " \"auth\": {"
454 " \"oauth2/web_server\": {"
455 " \"ClientId\": \"foo\","
456 " \"ClientSecret\": \"bar\","
457 " \"UseSSL\": false,"
458 " \"Scopes\": [\"one scope\",\"and another\"]"
459 " }"
460 " }"
461 " }"
462 " ]"
463 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
464 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
465 files;
466
467 package[cxx . . $ QHash#`operator[]`(bbd415b616967878)."myapp/Main.qml"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901). "Something here";
468 package[cxx . . $ QHash#`operator[]`(bbd415b616967878)."google.svg"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901). "icon contents";
469 files.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
470 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
471 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
472 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
473 "<application id=\"com.lomiri.test_MyApp\">\n"
474 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
475 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
476 " <desktop-entry>com.lomiri.test_MyApp_0.2</desktop-entry>\n"
477 " <services>\n"
478 " <service id=\"com.lomiri.test_MyApp_google\">\n"
479 " <description>.</description>\n"
480 " </service>\n"
481 " </services>\n"
482 "</application>\n";
483 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
484 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
485 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
486 "<service id=\"com.lomiri.test_MyApp_google\">\n"
487 " <type>com.lomiri.test_MyApp</type>\n"
488 " <provider>google</provider>\n"
489 " <name>.</name>\n"
490 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
491 "</service>\n";
492 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."providers/com.lomiri.test_MyApp.provider"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(4f35bf974e7f8568).
493 QStringcxx . . $ QString#QString(85c52e162fed56f9).("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
494 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
495 "<provider id=\"com.lomiri.test_MyApp\">\n"
496 " <name>Google</name>\n"
497 " <icon>%1/google.svg</icon>\n"
498 " <profile>com.lomiri.test_MyApp_0.2</profile>\n"
499 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
500 "</provider>\n").argcxx . . $ QString#arg(bc823072288cbbb5).(m_packageDircxx . . $ OnlineAccountsHooksTest#m_packageDir..pathcxx . . $ QDir#path(6ef7b6c27b00b43d).());
501 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."qml-plugins/com.lomiri.test_MyApp/Main.qml"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
502 "Something here";
503 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("account plugin, icon file") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
504 "com.lomiri.test_MyApp_0.2.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
505 "{"
506 " \"services\": ["
507 " {"
508 " \"provider\": \"google\""
509 " }"
510 " ],"
511 " \"plugin\": {"
512 " \"name\": \"Google\","
513 " \"icon\": \"google.svg\","
514 " \"qml\": \"myapp\""
515 " }"
516 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
517 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
518 files;
519
520 files.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
521 package.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
522 package[cxx . . $ QHash#`operator[]`(bbd415b616967878)."myapp/Main.qml"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901). "Something herez";
523 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyApp.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
524 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
525 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
526 "<application id=\"com.lomiri.test_MyApp\">\n"
527 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
528 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
529 " <desktop-entry>com.lomiri.test_MyApp_0.3</desktop-entry>\n"
530 " <services>\n"
531 " <service id=\"com.lomiri.test_MyApp_abc\">\n"
532 " <description>.</description>\n"
533 " </service>\n"
534 " </services>\n"
535 "</application>\n";
536 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyApp_abc.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
537 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
538 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
539 "<service id=\"com.lomiri.test_MyApp_abc\">\n"
540 " <type>com.lomiri.test_MyApp</type>\n"
541 " <provider>abc</provider>\n"
542 " <name>.</name>\n"
543 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
544 "</service>\n";
545 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."providers/com.lomiri.test_MyApp.provider"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
546 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
547 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
548 "<provider id=\"com.lomiri.test_MyApp\">\n"
549 " <name>A B C</name>\n"
550 " <icon>abc.svg</icon>\n"
551 " <profile>com.lomiri.test_MyApp_0.3</profile>\n"
552 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
553 "</provider>\n";
554 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."qml-plugins/com.lomiri.test_MyApp/Main.qml"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
555 "Something herez";
556 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("account plugin, stock icon") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
557 "com.lomiri.test_MyApp_0.3.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
558 "{"
559 " \"services\": ["
560 " {"
561 " \"provider\": \"abc\""
562 " }"
563 " ],"
564 " \"plugin\": {"
565 " \"name\": \"A B C\","
566 " \"icon\": \"abc.svg\","
567 " \"qml\": \"myapp\""
568 " }"
569 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
570 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
571 files;
572
573 files.clearcxx . . $ QHash#clear(49f6e7a06ebc5aa8).();
574 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."applications/com.lomiri.test_MyScope.application"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
575 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
576 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
577 "<application id=\"com.lomiri.test_MyScope\">\n"
578 " <profile>com.lomiri.test_MyScope_0.3</profile>\n"
579 " <package-dir>" TEST_DIRcxx . . $ `tests/click-hooks/online-accounts-hooks2/tst_online_accounts_hooks2.cpp:38:9`! "/package</package-dir>\n"
580 " <desktop-entry>com.lomiri.test_MyScope</desktop-entry>\n"
581 " <services>\n"
582 " <service id=\"com.lomiri.test_MyScope_google\">\n"
583 " <description>.</description>\n"
584 " </service>\n"
585 " </services>\n"
586 "</application>\n";
587 files[cxx . . $ QHash#`operator[]`(bbd415b616967878)."services/com.lomiri.test_MyScope_google.service"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QString#`operator=`(d02845eef0c33901).
588 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
589 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
590 "<service id=\"com.lomiri.test_MyScope_google\">\n"
591 " <type>com.lomiri.test_MyScope</type>\n"
592 " <provider>google</provider>\n"
593 " <name>.</name>\n"
594 " <profile>com.lomiri.test_MyScope_0.3</profile>\n"
595 "</service>\n";
596 QTestcxx . . $ QTest/::newRowcxx . . $ QTest/newRow(71534bb7a360de38).("minimal") <<cxx . . $ `operator<<`(1c43a92f59c6a770).
597 "com.lomiri.test_MyScope_0.3.accounts" <<cxx . . $ `operator<<`(1c43a92f59c6a770).
598 "{"
599 " \"scope\": true,"
600 " \"services\": ["
601 " {"
602 " \"provider\": \"google\""
603 " }"
604 " ]"
605 "}" <<cxx . . $ `operator<<`(61fb880f51a53ddf).
606 package <<cxx . . $ `operator<<`(61fb880f51a53ddf).
607 files;
608 }
609
610 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testValidHookscxx . . $ OnlineAccountsHooksTest#testValidHooks(49f6e7a06ebc5aa8).()
611 {
612 QFETCHcxx . . $ `<external>/8602788698586413231/qtestcase.h:201:9`!(QString, hookName);
613 QFETCHcxx . . $ `<external>/8602788698586413231/qtestcase.h:201:9`!(QString, contents);
614 QFETCHcxx . . $ `<external>/8602788698586413231/qtestcase.h:201:9`!(FileData, packageFiles);
615 QFETCHcxx . . $ `<external>/8602788698586413231/qtestcase.h:201:9`!(FileData, expectedFiles);
616
617 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(hookName, contents);
618 for (FileDatacxx . . $ FileData#::const_iteratorcxx . . $ QHash#const_iterator# i = packageFiles.constBegincxx . . $ QHash#constBegin(bacd0392ad39bf1c).();
619 i !=cxx . . $ QHash#const_iterator#`operator!=`(ed375b04c2ec1e10). packageFiles.constEndcxx . . $ QHash#constEnd(bacd0392ad39bf1c).(); i++cxx . . $ QHash#const_iterator#operator++(29e893900f5aadd2).) {
620 writePackageFilecxx . . $ OnlineAccountsHooksTest#writePackageFile(c1427772cd1877b0).(i.keycxx . . $ QHash#const_iterator#key(ea465e50d690edfe).(), i.valuecxx . . $ QHash#const_iterator#value(bdbd05d619d62250).());
621 }
622 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runHookProcess());
623
624 QStringListcxx . . $ QStringList# genFiles = findGeneratedFilescxx . . $ OnlineAccountsHooksTest#findGeneratedFiles(e1dbd5c4feadc8f5).();
625 QStringListcxx . . $ QStringList# expFilesKeys = expectedFilescxx . . $ QStringList#QStringList(6fe09f9fe6e0f503)..keyscxx . . $ QHash#keys(bf6c511543d55010).();
626 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(QSet<QString>(genFiles.constBegin(), genFiles.constEnd()), QSet<QString>(expFilesKeys.constBegin(), expFilesKeys.constEnd()));
627
628 QStringListcxx . . $ QStringList# xmlSuffixescxx . . $ QStringList#QStringList(ced63f7c635d850d).;
629 xmlSuffixes <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "provider"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "service"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "application"cxx . . $ QString#QString(85c52e162fed56f9).;
630 for (FileDatacxx . . $ FileData#::const_iteratorcxx . . $ QHash#const_iterator# i = expectedFiles.constBegincxx . . $ QHash#constBegin(bacd0392ad39bf1c).();
631 i !=cxx . . $ QHash#const_iterator#`operator!=`(ed375b04c2ec1e10). expectedFiles.constEndcxx . . $ QHash#constEnd(bacd0392ad39bf1c).(); i++cxx . . $ QHash#const_iterator#operator++(29e893900f5aadd2).) {
632 QFileInfocxx . . $ QFileInfo# generatedFilecxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(m_installDircxx . . $ OnlineAccountsHooksTest#m_installDir..filePathcxx . . $ QDir#filePath(5555d9024dcf93fb).(i.keycxx . . $ QHash#const_iterator#key(ea465e50d690edfe).()));
633 if (xmlSuffixes.containscxx . . $ QStringList#contains(8cce4688c16f48f3).(generatedFile.suffixcxx . . $ QFileInfo#suffix(6ef7b6c27b00b43d).())) {
634 /* Dump the expected XML into a file */
635 QStringcxx . . $ QString# expectedXml = generatedFile.filePathcxx . . $ QFileInfo#filePath(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). ".expected";
636 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(expectedXml);
637 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(file.open(QIODevice::WriteOnly));
638 QByteArraycxx . . $ QByteArray# expectedContents = i.valuecxx . . $ QHash#const_iterator#value(bdbd05d619d62250).().toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).();
639 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(file.write(expectedContents), expectedContents.length());
640 file.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).();
641
642 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runXmlDiff(generatedFile.filePath(), expectedXml));
643 } else {
644 // direct comparison
645 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(generatedFile.filePathcxx . . $ QFileInfo#filePath(6ef7b6c27b00b43d).());
646 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(file.open(QIODevice::ReadOnly));
647 QByteArraycxx . . $ QByteArray# expectedContents = i.valuecxx . . $ QHash#const_iterator#value(bdbd05d619d62250).().toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).();
648 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(file.readAll(), expectedContents);
649 }
650 }
651 }
652
653 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testRemovalcxx . . $ OnlineAccountsHooksTest#testRemoval(49f6e7a06ebc5aa8).()
654 {
655 QStringcxx . . $ QString# stillInstalledcxx . . $ QString#QString(85c52e162fed56f9).("applications/com.lomiri.test_StillInstalled.application");
656 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(stillInstalled,
657 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
658 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
659 "<application>\n"
660 " <description>My application</description>\n"
661 " <service-types>\n"
662 " <service-type>some type</service-type>\n"
663 " </service-types>\n"
664 " <profile>com-lomiri.test_StillInstalled_2.0</profile>\n"
665 "</application>");
666 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(stillInstalled));
667
668 QStringcxx . . $ QString# myAppcxx . . $ QString#QString(85c52e162fed56f9).("applications/com.lomiri.test_MyApp.application");
669 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(myApp,
670 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
671 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
672 "<application>\n"
673 " <description>My application</description>\n"
674 " <services>\n"
675 " <service id=\"com-lomiri.test_MyApp_example\">\n"
676 " <description>Publish somewhere</description>\n"
677 " </service>\n"
678 " </services>\n"
679 " <profile>com-lomiri.test_MyApp_3.0</profile>\n"
680 "</application>");
681 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(myApp));
682
683 QStringcxx . . $ QString# myServicecxx . . $ QString#QString(85c52e162fed56f9).("services/com.lomiri.test_MyApp_example.service");
684 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(myService,
685 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
686 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
687 "<service>\n"
688 " <name>Hello world</name>\n"
689 " <provider>example</provider>\n"
690 " <description>My application</description>\n"
691 " <profile>com-lomiri.test_MyApp_3.0</profile>\n"
692 "</service>");
693 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(myService));
694
695 QStringcxx . . $ QString# noProfilecxx . . $ QString#QString(85c52e162fed56f9).("applications/com.lomiri.test_NoProfile.application");
696 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(noProfile,
697 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
698 "<application>\n"
699 " <description>My application</description>\n"
700 " <service-types>\n"
701 " <service-type>some type</service-type>\n"
702 " </service-types>\n"
703 "</application>");
704 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(noProfile));
705
706 QStringcxx . . $ QString# notOurscxx . . $ QString#QString(85c52e162fed56f9).("applications/com.lomiri.test_NotOurs.application");
707 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(notOurs,
708 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
709 "<!--this file is auto-generated by lomiri-online-accounts-hooks; do not modify-->\n"
710 "<application>\n"
711 " <description>My application</description>\n"
712 " <service-types>\n"
713 " <service-type>some type</service-type>\n"
714 " </service-types>\n"
715 " <profile>com-lomiri.test_NotOurs_0.1.0</profile>\n"
716 "</application>");
717 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(notOurs));
718
719 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).("com-lomiri.test_StillInstalled_2.0.accounts"cxx . . $ QString#QString(85c52e162fed56f9).,
720 "{"cxx . . $ QString#QString(85c52e162fed56f9).
721 " \"services\": ["
722 " {"
723 " \"provider\": \"example\","
724 " \"description\": \"Publish somewhere\","
725 " \"name\": \"Hello world\""
726 " }"
727 " ]"
728 "}");
729
730 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runHookProcess());
731
732 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(stillInstalled));
733 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_installDir.exists(myApp));
734 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_installDir.exists(myService));
735 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(noProfile));
736 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(notOurs));
737 }
738
739 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testRemovalWithAclcxx . . $ OnlineAccountsHooksTest#testRemovalWithAcl(49f6e7a06ebc5aa8).()
740 {
741 qputenvcxx . . $ qputenv(d42e8231112a1b5b).("DBUS_SESSION_BUS_ADDRESS", m_busAddresscxx . . $ OnlineAccountsHooksTest#m_busAddress.);
742 m_dbuscxx . . $ OnlineAccountsHooksTest#m_dbus..startServicescxx . . $ QtDBusTest/DBusTestRunner#startServices(49f6e7a06ebc5aa8).();
743
744 QStringcxx . . $ QString# myAppcxx . . $ QString#QString(85c52e162fed56f9).("applications/com.lomiri.test_MyAcl.application");
745 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(myApp,
746 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
747 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
748 "<application id=\"com-lomiri.test_MyAcl\">\n"
749 " <description>My application</description>\n"
750 " <services>\n"
751 " <service id=\"com-lomiri.test_MyAcl_example\">\n"
752 " <description>Publish somewhere</description>\n"
753 " </service>\n"
754 " </services>\n"
755 " <profile>com-lomiri.test_MyAcl_3.0</profile>\n"
756 "</application>");
757 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(myApp));
758
759 QStringcxx . . $ QString# myServicecxx . . $ QString#QString(85c52e162fed56f9).("services/com.lomiri.test_MyAcl_example.service");
760 writeInstalledFilecxx . . $ OnlineAccountsHooksTest#writeInstalledFile(c1427772cd1877b0).(myService,
761 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"cxx . . $ QString#QString(85c52e162fed56f9).
762 "<!--this file is auto-generated by lomiri-online-accounts-hooks2; do not modify-->\n"
763 "<service id=\"com-lomiri.test_MyAcl_example\">\n"
764 " <name>Hello world</name>\n"
765 " <type>com-lomiri.test_MyAcl</type>\n"
766 " <provider>example</provider>\n"
767 " <description>My application</description>\n"
768 " <profile>com-lomiri.test_MyAcl_3.0</profile>\n"
769 "</service>");
770 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_installDir.exists(myService));
771
772 /* Create an account, enable the app and add it to the ACL */
773 Accountscxx . . $ Accounts/::Managercxx . . $ Accounts/Manager# managercxx . . $ Accounts/Manager#Manager(749de1b6ae65bddd).;
774 Accountscxx . . $ Accounts/::Servicecxx . . $ Accounts/Service# service =
775 manager.servicecxx . . $ Accounts/Manager#service(5286df8bfd80fbad).("com.lomiri.test_MyAcl_example"cxx . . $ QString#QString(85c52e162fed56f9).);
776 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(service.isValid());
777 Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account# *account = manager.createAccountcxx . . $ Accounts/Manager#createAccount(c883e1f1d6ec9995).("example"cxx . . $ QString#QString(85c52e162fed56f9).);
778 account->setDisplayNamecxx . . $ Accounts/Account#setDisplayName(3520e46b33348bf6).("Example account"cxx . . $ QString#QString(85c52e162fed56f9).);
779 account->setEnabledcxx . . $ Accounts/Account#setEnabled(b45ddcbc8423892c).(true);
780 account->setCredentialsIdcxx . . $ Accounts/Account#setCredentialsId(cb2f890c2fdad230).(25);
781 account->selectServicecxx . . $ Accounts/Account#selectService(3151c7fcce91492).(service);
782 account->setEnabledcxx . . $ Accounts/Account#setEnabled(b45ddcbc8423892c).(true);
783 account->syncAndBlockcxx . . $ Accounts/Account#syncAndBlock(c9857a73d68e59ba).();
784 Accountscxx . . $ Accounts/::AccountIdcxx . . $ Accounts/AccountId# accountId = account->idcxx . . $ Accounts/Account#id(ddd8539a2fcdd4ce).();
785 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(accountId > 0);
786
787 QVariantMapcxx . . $ QVariantMap# initialInfocxx . . $ QMap#QMap(ced63f7c635d850d).;
788 QStringListcxx . . $ QStringList# aclscxx . . $ QStringList#QStringList(ced63f7c635d850d).;
789 acls <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "one"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "com-lomiri.test_MyAcl_0.1"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "two_click"cxx . . $ QString#QString(85c52e162fed56f9).;
790 QVariantListcxx . . $ QVariantList# initialAccessControlListcxx . . $ QList#QList(ced63f7c635d850d).;
791 for (const QStringcxx . . $ QString# &acl: acls) {
792 initialAccessControlList.appendcxx . . $ QList#append(77d9f17553126ecb).(aclcxx . . $ QVariant#QVariant(3520e46b33348bf6).);
793 }
794 initialInfo[cxx . . $ QMap#`operator[]`(bbd415b616967878)."ACL"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QVariant#`operator=`(79a68221451e88b7). initialAccessControlListcxx . . $ QVariant#QVariant(2f4009bfc0c7e161).;
795 initialInfo[cxx . . $ QMap#`operator[]`(bbd415b616967878)."Id"cxx . . $ QString#QString(85c52e162fed56f9).] =cxx . . $ QVariant#`operator=`(79a68221451e88b7). 25cxx . . $ QVariant#QVariant(d4f767463ce0a6b3).;
796 m_signondcxx . . $ OnlineAccountsHooksTest#m_signond..addIdentitycxx . . $ FakeSignond#addIdentity(a674b9a78b7822c6).(25, initialInfo);
797
798 /* Now run the hook process; it should delete the .service and .application
799 * files, and also disable the service and remove the app from the ACL */
800 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runHookProcess());
801
802 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_installDir.exists(myApp));
803 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_installDir.exists(myService));
804 QTRY_COMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:185:9`!(account->isEnabled(), false);
805
806 SignOncxx . . $ SignOn/::Identitycxx . . $ SignOn/Identity# *identity = SignOncxx . . $ SignOn/::Identitycxx . . $ SignOn/Identity#::existingIdentitycxx . . $ SignOn/Identity#existingIdentity(7e534ccf80011be0).(25, this);
807 QSignalSpycxx . . $ QSignalSpy# gotInfocxx . . $ QSignalSpy#QSignalSpy(593025bf41bda872).(identity, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(info(const SignOn::IdentityInfo&)));
808 identity->queryInfocxx . . $ SignOn/Identity#queryInfo(49f6e7a06ebc5aa8).();
809 QTRY_COMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:185:9`!(gotInfo.count(), 1);
810
811 SignOncxx . . $ SignOn/::IdentityInfocxx . . $ SignOn/IdentityInfo# info =
812 gotInfo.atcxx . . $ QList#at(e2681f9bb6b2f357).(0).atcxx . . $ QList#at(e2681f9bb6b2f357).(0).valuecxx . . $ QVariant#value(8f5363d873dd4781).<SignOncxx . . $ SignOn/::IdentityInfocxx . . $ SignOn/IdentityInfo#>();
813 QStringListcxx . . $ QStringList# infoAcl = info.accessControlListcxx . . $ SignOn/IdentityInfo#accessControlList(e1dbd5c4feadc8f5).();
814 QStringListcxx . . $ QStringList# expectedAclcxx . . $ QStringList#QStringList(ced63f7c635d850d).;
815 expectedAcl <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "one"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "two_click"cxx . . $ QString#QString(85c52e162fed56f9).;
816 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(QSet<QString>(infoAcl.constBegin(), infoAcl.constEnd()), QSet<QString>(expectedAcl.constBegin(), expectedAcl.constEnd()));
817 }
818
819 void OnlineAccountsHooksTestcxx . . $ OnlineAccountsHooksTest#::testTimestampRemovalcxx . . $ OnlineAccountsHooksTest#testTimestampRemoval(49f6e7a06ebc5aa8).()
820 {
821 QStringcxx . . $ QString# stillInstalledcxx . . $ QString#QString(85c52e162fed56f9).("com-lomiri.test_MyApp_2.0.accounts");
822 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(stillInstalled, "{}"cxx . . $ QString#QString(85c52e162fed56f9).);
823 QStringcxx . . $ QString# stillInstalledTimestampcxx . . $ QString#QString(85c52e162fed56f9).("com-lomiri.test_MyApp_2.0.accounts.processed");
824 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(stillInstalledTimestamp, ""cxx . . $ QString#QString(85c52e162fed56f9).);
825 QStringcxx . . $ QString# oldTimestampcxx . . $ QString#QString(85c52e162fed56f9).("com-lomiri.test_MyApp_1.0.accounts.processed");
826 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(oldTimestamp, ""cxx . . $ QString#QString(85c52e162fed56f9).);
827 QStringcxx . . $ QString# staleTimestamp1cxx . . $ QString#QString(85c52e162fed56f9).("com-lomiri.app_MyOtherApp_2.0.accounts.processed");
828 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(staleTimestamp1, ""cxx . . $ QString#QString(85c52e162fed56f9).);
829 QStringcxx . . $ QString# staleTimestamp2cxx . . $ QString#QString(85c52e162fed56f9).("com-lomiri.app_MyOtherApp_1.0.accounts.processed");
830 writeHookFilecxx . . $ OnlineAccountsHooksTest#writeHookFile(c1427772cd1877b0).(staleTimestamp2, ""cxx . . $ QString#QString(85c52e162fed56f9).);
831
832 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(runHookProcess());
833
834 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_hooksDir.exists(stillInstalled));
835 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(m_hooksDir.exists(stillInstalledTimestamp));
836 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_hooksDir.exists(oldTimestamp));
837 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_hooksDir.exists(staleTimestamp1));
838 QVERIFYcxx . . $ `<external>/8602788698586413231/qtestcase.h:63:9`!(!m_hooksDir.exists(staleTimestamp2));
839 }
840
841 QTEST_GUILESS_MAINcxx . . $ `<external>/4204159469433502174/qtest.h:514:9`!(OnlineAccountsHooksTest);
842
843 #include "tst_online_accounts_hooks2.moc"cxx . . $ `<file>/build/tests/click-hooks/online-accounts-hooks2/tst_online-accounts-hooks2_autogen/include/tst_online_accounts_hooks2.moc`/