Browse Source

[1704] Replace TEST_F with TEST

Mukund Sivaraman 13 years ago
parent
commit
31b153df20
1 changed files with 3 additions and 8 deletions
  1. 3 8
      src/lib/util/tests/interprocess_sync_file_unittest.cc

+ 3 - 8
src/lib/util/tests/interprocess_sync_file_unittest.cc

@@ -20,12 +20,7 @@ using namespace std;
 namespace isc {
 namespace isc {
 namespace util {
 namespace util {
 
 
-class InterprocessSyncFileTest : public ::testing::Test {
-protected:
-    InterprocessSyncFileTest() {}
-};
-
-TEST_F(InterprocessSyncFileTest, TestLock) {
+TEST(InterprocessSyncFileTest, TestLock) {
   InterprocessSyncFile sync("test");
   InterprocessSyncFile sync("test");
   InterprocessSyncLocker locker(sync);
   InterprocessSyncLocker locker(sync);
 
 
@@ -72,7 +67,7 @@ TEST_F(InterprocessSyncFileTest, TestLock) {
   EXPECT_TRUE(locker.unlock());
   EXPECT_TRUE(locker.unlock());
 }
 }
 
 
-TEST_F(InterprocessSyncFileTest, TestMultipleFilesDirect) {
+TEST(InterprocessSyncFileTest, TestMultipleFilesDirect) {
   InterprocessSyncFile sync("test1");
   InterprocessSyncFile sync("test1");
   InterprocessSyncLocker locker(sync);
   InterprocessSyncLocker locker(sync);
 
 
@@ -86,7 +81,7 @@ TEST_F(InterprocessSyncFileTest, TestMultipleFilesDirect) {
   EXPECT_TRUE(locker.unlock());
   EXPECT_TRUE(locker.unlock());
 }
 }
 
 
-TEST_F(InterprocessSyncFileTest, TestMultipleFilesForked) {
+TEST(InterprocessSyncFileTest, TestMultipleFilesForked) {
   InterprocessSyncFile sync("test");
   InterprocessSyncFile sync("test");
   InterprocessSyncLocker locker(sync);
   InterprocessSyncLocker locker(sync);