testDiskIO.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #include "squid.h"
10 #include "DiskIO/DiskIOModule.h"
11 #include "HttpHeader.h"
12 #include "HttpReply.h"
13 #include "MemObject.h"
14 #include "Store.h"
15 #include "StoreFileSystem.h"
16 #include "testDiskIO.h"
17 #include "testStoreSupport.h"
18 #include "unitTestMain.h"
19 
20 #include <stdexcept>
21 
23 
24 void
26 {
27  Mem::Init();
29 }
30 
31 void
33 {
35 #if USE_DISKIO
36  /* enabled. we expect at least ONE */
37  CPPUNIT_ASSERT(module != NULL);
38 #else
39  /* disabled. we don't expect ANY */
40  CPPUNIT_ASSERT(module == NULL);
41 #endif
42 }
43 
static DiskIOModule * FindDefault()
void Init()
Definition: old_api.cc:412
CPPUNIT_TEST_SUITE_REGISTRATION(testDiskIO)
void setUp()
Definition: testDiskIO.cc:25
void testFindDefault()
Definition: testDiskIO.cc:32
#define NULL
Definition: types.h:166
static void SetupAllModules()
Definition: DiskIOModule.cc:45

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors