]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testDiskIO.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / tests / testDiskIO.cc
index 6e92fb7bcd4dde0a59e6151b575a949b1017cbda..be8b75c28508442748aa842e5be66a9b0481ac67 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
 #include "DiskIO/DiskIOModule.h"
 #include "HttpHeader.h"
 #include "HttpReply.h"
-#include "Mem.h"
 #include "MemObject.h"
 #include "Store.h"
 #include "StoreFileSystem.h"
-#include "SwapDir.h"
 #include "testDiskIO.h"
 #include "testStoreSupport.h"
+#include "unitTestMain.h"
 
 #include <stdexcept>
 
@@ -35,9 +34,10 @@ testDiskIO::testFindDefault()
     DiskIOModule * module = DiskIOModule::FindDefault();
 #if USE_DISKIO
     /* enabled. we expect at least ONE */
-    CPPUNIT_ASSERT(module != NULL);
+    CPPUNIT_ASSERT(module != nullptr);
 #else
     /* disabled. we don't expect ANY */
     CPPUNIT_ASSERT(module == NULL);
 #endif
 }
+