Debian Codegraph @

tests/click-hooks/online-accounts-hooks2/fake_signond.h

raw symbols SCIP
1 /*
2 * This file is part of libOnlineAccounts
3 *
4 * Copyright (C) 2015 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License version 3, as
10 * published 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 Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef OAD_FAKE_SIGNOND_H
22 #define OAD_FAKE_SIGNOND_Hcxx . . $ `tests/click-hooks/online-accounts-hooks2/fake_signond.h:22:9`!
23
24 #include <QVariantMap>
25 #include <libqtdbusmock/DBusMock.h>
26
27 class FakeSignondcxx . . $ FakeSignond#
28 {
29 public:
30 FakeSignondcxx . . $ FakeSignond#FakeSignond(e8fb753a34561306).(QtDBusMockcxx . . $ QtDBusMock/::DBusMockcxx . . $ QtDBusMock/DBusMock# *mock): m_mockcxx . . $ FakeSignond#m_mock.(mock) {
31 m_mockcxx . . $ FakeSignond#m_mock.->registerTemplatecxx . . $ QtDBusMock/DBusMock#registerTemplate(417c7cefce87cfcb).("com.google.code.AccountsSSO.SingleSignOn"cxx . . $ QString#QString(85c52e162fed56f9).,
32 SIGNOND_MOCK_TEMPLATEcxx . . $ `<built-in>:483:9`!,
33 QDBusConnectioncxx . . $ QDBusConnection#::SessionBuscxx . . $ QDBusConnection#SessionBus.);
34 }
35
36 void addIdentitycxx . . $ FakeSignond#addIdentity(a674b9a78b7822c6).(uintcxx . . $ uint# id, const QVariantMapcxx . . $ QVariantMap# &info) {
37 mockedAuthServicecxx . . $ FakeSignond#mockedAuthService(dab724501d1bb78f).().callcxx . . $ QDBusAbstractInterface#call(47baaf22534148ef).("AddIdentity"cxx . . $ QString#QString(85c52e162fed56f9)., id, info);
38 }
39
40 private:
41 OrgFreedesktopDBusMockInterfacecxx . . $ OrgFreedesktopDBusMockInterface# &mockedAuthServicecxx . . $ FakeSignond#mockedAuthService(dab724501d1bb78f).() {
42 return m_mockcxx . . $ FakeSignond#m_mock.->mockInterfacecxx . . $ QtDBusMock/DBusMock#mockInterface(546837d66f4b9bf4).("com.google.code.AccountsSSO.SingleSignOn"cxx . . $ QString#QString(85c52e162fed56f9).,
43 "/com/google/code/AccountsSSO/SingleSignOn"cxx . . $ QString#QString(85c52e162fed56f9).,
44 "com.google.code.AccountsSSO.SingleSignOn.AuthService"cxx . . $ QString#QString(85c52e162fed56f9).,
45 QDBusConnectioncxx . . $ QDBusConnection#::SessionBuscxx . . $ QDBusConnection#SessionBus.);
46 }
47
48 private:
49 QtDBusMockcxx . . $ QtDBusMock/::DBusMockcxx . . $ QtDBusMock/DBusMock# *m_mockcxx . . $ FakeSignond#m_mock.;
50 };
51
52 #endif // OAD_FAKE_SIGNOND_H