1
/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3
* This file is part of signon
5
* Copyright (C) 2009-2010 Nokia Corporation.
7
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public License
11
* version 2.1 as published by the Free Software Foundation.
13
* This library is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24
#ifndef PASSWORD_PLUGIN_TEST
25
#define PASSWORD_PLUGIN_TEST
28
#include "digestplugin.h"
29
#include "digestdata.h"
31
using namespace DigestPluginNS;
33
class DigestPluginTest : public QObject
38
void result(const SignOn::SessionData& data);
39
void pluginError(const SignOn::Error &err);
40
void uiRequest(const SignOn::UiSessionData& data);
44
void cleanupTestCase();
50
void testPluginType();
51
void testPluginMechanisms();
52
void testPluginCancel();
53
void testPluginProcess();
54
void testPluginUserActionFinished();
55
void testPluginRefresh();
61
DigestPlugin* m_testPlugin;
63
DigestData m_response;
64
SignOn::UiSessionData m_uiResponse;
69
#endif //PASSWORD_PLUGIN_TEST