/// create the option)
/// @param expected_result text representation of the expected outcome
void testVendorExists(Option::Universe u, uint32_t token_vendor_id,
- uint32_t option_vendor_id, std::string expected_result) {
+ uint32_t option_vendor_id,
+ const std::string& expected_result) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
/// create the option)
/// @param expected_result text representation of the expected outcome
void testVendorEnterprise(Option::Universe u, uint32_t option_vendor_id,
- std::string expected_result) {
+ const std::string& expected_result) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
/// create the option)
/// @param expected_result text representation of the expected outcome
void testVendorClassEnterprise(Option::Universe u, uint32_t option_vendor_id,
- std::string expected_result) {
+ const std::string& expected_result) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
/// create the option)
/// @param expected_result text representation of the expected outcome
void testVendorClassExists(Option::Universe u, uint32_t token_vendor_id,
- uint32_t option_vendor_id, std::string expected_result) {
+ uint32_t option_vendor_id,
+ const std::string& expected_result) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
void testVendorSuboption(Option::Universe u,
uint32_t token_vendor_id, uint16_t token_option_code,
uint32_t option_vendor_id, uint16_t option_code,
- TokenOption::RepresentationType repr, std::string expected) {
+ TokenOption::RepresentationType repr,
+ const std::string& expected) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
void testVendorClassData(Option::Universe u,
uint32_t token_vendor_id, uint16_t token_index,
uint32_t option_vendor_id, uint16_t data_tuples,
- std::string expected) {
+ const std::string& expected) {
// Let's clear any old values, so we can run multiple cases in each test
clearStack();
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 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
/// @brief Replace blank lines
/// Replaces blank lines in an array with the contents of the 'blank' section.
-LinesType replaceBlankLines(const LinesType lines)
+LinesType replaceBlankLines(const LinesType& lines)
{
LinesType result;
for (LinesType::const_iterator l = lines.begin(); l != lines.end(); ++l) {