Kea  1.9.9-git
testdata.h
Go to the documentation of this file.
1 // Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef UTIL_UNITTESTS_TESTDATA_H
8 #define UTIL_UNITTESTS_TESTDATA_H 1
9 
18 namespace isc {
19 namespace util {
20 namespace unittests {
23 void addTestDataPath(const std::string& path);
24 
37 void openTestData(const char* const datafile, std::ifstream& ifs);
38 }
39 }
40 }
41 
42 #endif // UTIL_UNITTESTS_TESTDATA_H
43 
44 // Local Variables:
45 // mode: c++
46 // End:
void addTestDataPath(const string &path)
Add a path (directory) that openTestData() will search for test data files.
Definition: testdata.cc:31
void openTestData(const char *const datafile, ifstream &ifs)
Open a file specified by 'datafile' using the data paths registered via addTestDataPath().
Definition: testdata.cc:36
Defines the logger used by the top-level component of kea-dhcp-ddns.