Kea 2.7.6
testdata.h
Go to the documentation of this file.
1// Copyright (C) 2011-2024 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
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-lfc.