1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 03:27:40 +01:00

Use TEST instead of TEST_F where appropriate.

This commit is contained in:
John Maguire 2012-04-18 14:37:40 +02:00
parent 48df99b0d2
commit 3f3945ead8
2 changed files with 4 additions and 12 deletions

View File

@ -8,11 +8,7 @@
#include "core/closure.h"
#include "test_utils.h"
class ClosureTest : public ::testing::Test {
};
TEST_F(ClosureTest, ClosureInvokesReceiver) {
TEST(ClosureTest, ClosureInvokesReceiver) {
TestQObject sender;
TestQObject receiver;
_detail::Closure* closure = NewClosure(
@ -23,7 +19,7 @@ TEST_F(ClosureTest, ClosureInvokesReceiver) {
EXPECT_EQ(1, receiver.invoked());
}
TEST_F(ClosureTest, ClosureDeletesSelf) {
TEST(ClosureTest, ClosureDeletesSelf) {
TestQObject sender;
TestQObject receiver;
_detail::Closure* closure = NewClosure(
@ -41,7 +37,7 @@ TEST_F(ClosureTest, ClosureDeletesSelf) {
EXPECT_EQ(1, spy.count());
}
TEST_F(ClosureTest, ClosureDoesNotCrashWithSharedPointerSender) {
TEST(ClosureTest, ClosureDoesNotCrashWithSharedPointerSender) {
TestQObject receiver;
TestQObject* sender;
boost::scoped_ptr<QSignalSpy> spy;

View File

@ -25,11 +25,7 @@
#include <QtDebug>
class UtilitiesTest : public ::testing::Test {
};
TEST_F(UtilitiesTest, HmacFunctions) {
TEST(UtilitiesTest, HmacFunctions) {
QString key("key");
QString data("The quick brown fox jumps over the lazy dog");
// Test Hmac Md5