/*
 * Copyright 2013 Canonical Ltd.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of version 3 of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifndef TEST_MANAGER_H
#define TEST_MANAGER_H

#include <QObject>
#include <lomiri/download_manager/manager.h>
#include "local_tree_testcase.h"

using namespace Lomiri::DownloadManager;

class TestManager : public LocalTreeTestCase {
    Q_OBJECT

 public:
    explicit TestManager(QObject* parent = 0);

 private Q_SLOTS:  // NOLINT(whitespace/indent)

    void init() override;
    void cleanup() override;
    void testAllowMobileDataDownload_data();
    void testAllowMobileDataDownload();
    void testAllowMobileDataDownloadError();
    void testIsMobileDataDownloadError();
    void testDefaultThrottleError();
    void testSetDefaultThrottle_data();
    void testSetDefaultThrottle();
    void testSetDefaultThrottleError();
    void testExitError();
    void testCreateDownloadSignalsEmitted();
    void testCreateDownloadSignalsEmittedCallbacks();
    void testGetAllDownloadsSignalsEmitted_data();
    void testGetAllDownloadsSignalsEmitted();
    void testGetAllDownloadsSignalsEmittedCallbacks_data();
    void testGetAllDownloadsSignalsEmittedCallbacks();
    void testGetAllDownloadsMetadataSignalsEmitted_data();
    void testGetAllDownloadsMetadataSignalsEmitted();
    void testGetAllDownloadsMetadataSignalsEmittedCallbacks_data();
    void testGetAllDownloadsMetadataSignalsEmittedCallbacks();

 private:
    Manager* _man;
};

#endif // TEST_MANAGER_H
