Changeset View
Changeset View
Standalone View
Standalone View
tests/mocks/MockLogger.h
Show All 28 Lines | |||||
29 | { | 29 | { | ||
30 | class MockLogger : public Amarok::Logger | 30 | class MockLogger : public Amarok::Logger | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | MockLogger() : Amarok::Logger() | 33 | MockLogger() : Amarok::Logger() | ||
34 | { | 34 | { | ||
35 | ON_CALL( *this, shortMessage( _ ) ).WillByDefault( Return() ); | 35 | ON_CALL( *this, shortMessage( _ ) ).WillByDefault( Return() ); | ||
36 | ON_CALL( *this, longMessage( _, _ ) ).WillByDefault( Return() ); | 36 | ON_CALL( *this, longMessage( _, _ ) ).WillByDefault( Return() ); | ||
37 | ON_CALL( *this, newProgressOperation( An<KJob*>(), _, _, _, _ ) ).WillByDefault( Return() ); | 37 | ON_CALL( *this, newProgressOperationImpl( An<KJob*>(), _, _, _, _ ) ).WillByDefault( Return() ); | ||
38 | ON_CALL( *this, newProgressOperation( An<QNetworkReply*>(), _, _, _, _ ) ).WillByDefault( Return() ); | 38 | ON_CALL( *this, newProgressOperationImpl( An<QNetworkReply*>(), _, _, _, _ ) ).WillByDefault( Return() ); | ||
39 | ON_CALL( *this, newProgressOperation( An<QObject *>(), _, _, _, _, _ ) ).WillByDefault( Return() ); | 39 | ON_CALL( *this, newProgressOperationImpl( An<QObject *>(), _, _, _, _, _, _, _ ) ).WillByDefault( Return() ); | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | MOCK_METHOD1( shortMessage, void( const QString& ) ); | 42 | MOCK_METHOD1( shortMessage, void( const QString& ) ); | ||
43 | MOCK_METHOD2( longMessage, void( const QString&, Amarok::Logger::MessageType ) ); | 43 | MOCK_METHOD2( longMessage, void( const QString&, Amarok::Logger::MessageType ) ); | ||
44 | MOCK_METHOD5( newProgressOperation, void( KJob*, const QString&, QObject*, const char*, | 44 | MOCK_METHOD5( newProgressOperationImpl, void( KJob*, const QString&, QObject*, const std::function<void ()>&, | ||
45 | Qt::ConnectionType ) ); | 45 | Qt::ConnectionType ) ); | ||
46 | MOCK_METHOD5( newProgressOperation, void( QNetworkReply*, const QString&, QObject*, | 46 | MOCK_METHOD5( newProgressOperationImpl, void( QNetworkReply*, const QString&, QObject*, | ||
47 | const char*, Qt::ConnectionType ) ); | 47 | const std::function<void ()>&, Qt::ConnectionType ) ); | ||
48 | MOCK_METHOD6( newProgressOperation, void( QObject *, const QString&, int, QObject*, | 48 | MOCK_METHOD8( newProgressOperationImpl, void( QObject *, const QMetaMethod &, const QMetaMethod &, const QString&, | ||
49 | const char*, Qt::ConnectionType ) ); | 49 | int, QObject*, const std::function<void ()>&, Qt::ConnectionType ) ); | ||
50 | }; | 50 | }; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | #endif | 53 | #endif | ||
54 | 54 | |