diff options
Diffstat (limited to 'src/lib/log/tests/message_initializer_1a_unittest.cc')
-rw-r--r-- | src/lib/log/tests/message_initializer_1a_unittest.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/log/tests/message_initializer_1a_unittest.cc b/src/lib/log/tests/message_initializer_1a_unittest.cc new file mode 100644 index 0000000..3e2b86b --- /dev/null +++ b/src/lib/log/tests/message_initializer_1a_unittest.cc @@ -0,0 +1,31 @@ +// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +// The sole purpose of this file is to provide a set of message definitions +// in a separate compilation unit from the one in which their presence is +// checked. This tests that merely declaring the MessageInitializer object +// is enough to include the definitions in the global dictionary. + +#include <config.h> + +#include <log/message_initializer.h> + +using namespace isc::log; + +// Declare a set of messages to go into the global dictionary. + +namespace { + +const char* values3[] = { + "GLOBAL5", "global message five", + "GLOBAL6", "global message six", + NULL +}; + +} + +// Register the messages for loading into the global dictionary +const MessageInitializer init_message_initializer_unittest_3(values3); |