diff -r 52d644758b05 -r 76d2cf7a585e logsui/logsengine/logssymbianos/tsrc/ut_logssymbianos/src/ut_logssystemtimeobserver.cpp --- a/logsui/logsengine/logssymbianos/tsrc/ut_logssymbianos/src/ut_logssystemtimeobserver.cpp Fri Aug 06 14:57:47 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#include "ut_logssystemtimeobserver.h" -#include "logssystemtimeobserver.h" -#include -#include -#include - -void UT_LogsSystemTimeObserver::initTestCase() -{ -} - -void UT_LogsSystemTimeObserver::cleanupTestCase() -{ -} - -void UT_LogsSystemTimeObserver::init() -{ - mTimeObserver = new LogsSystemTimeObserver(); -} - -void UT_LogsSystemTimeObserver::cleanup() -{ - delete mTimeObserver; -} - -void UT_LogsSystemTimeObserver::testConstructor() -{ - QVERIFY( mTimeObserver ); - QVERIFY( mTimeObserver->mEnvChangeNotifier->IsActive() ); -} - -void UT_LogsSystemTimeObserver::testEnvironmentChangeCallback() -{ - QSignalSpy spy(mTimeObserver, SIGNAL(timeFormatChanged())); - QCOMPARE( mTimeObserver->EnvironmentChangeCallback(mTimeObserver), 0 ); - QCOMPARE( spy.count(), 0 ); -}