Kea: testdata.h Source File

| Kea 2.2.0

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
18namespace isc {
19namespace util {
20namespace unittests {
23void addTestDataPath(const std::string& path);
24
37void 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:
isc::util::unittests::addTestDataPath
void addTestDataPath(const string &path)
Add a path (directory) that openTestData() will search for test data files.
Definition: testdata.cc:31
isc::util::unittests::openTestData
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
isc
Defines the logger used by the top-level component of kea-lfc.
Definition: agent_parser.cc:143