virtual bool getNextRow(LeaseStatsRow& row);
/// @brief Returns the value of first subnet ID specified (or zero)
- SubnetID getFirstSubnetID() const { return first_subnet_id_; };
+ SubnetID getFirstSubnetID() const {
+ return (first_subnet_id_);
+ };
/// @brief Returns the value of last subnet ID specified (or zero)
- SubnetID getLastSubnetID() const { return last_subnet_id_; };
+ SubnetID getLastSubnetID() const {
+ return (last_subnet_id_);
+ };
/// @brief Returns the selection criteria mode
/// The value returned is based upon the constructor variant used
/// and it indicates which query variant will be executed.
- SelectMode getSelectMode() const { return select_mode_; };
+ SelectMode getSelectMode() const {
+ return (select_mode_);
+ };
private:
/// @brief First (or only) subnet_id in the selection criteria
/// @brief Creates and runs the IPv6 lease stats query for a single subnet
///
- /// It creates an instance of a MemfileLeaseStatsQuery4 for a subnet range
+ /// It creates an instance of a MemfileLeaseStatsQuery6 for a subnet range
/// query and then invokes its start method in which the query constructs its
/// statistical data result set. The query object is then returned.
///
}
void
-GenericLeaseMgrTest::checkQueryAgainstRowSet(LeaseStatsQueryPtr query,
- RowSet& expected_rows) {
+GenericLeaseMgrTest::checkQueryAgainstRowSet(const LeaseStatsQueryPtr& query,
+ const RowSet& expected_rows) {
ASSERT_TRUE(query) << "query is null";
int rows_matched = 0;
// Test a single subnet
{
SCOPED_TRACE("SINGLE SUBNET");
- // Add expected row for Subnet 2
+ // Add expected rows for Subnet 2
expected_rows.insert(LeaseStatsRow(2, Lease::STATE_DEFAULT, 0));
expected_rows.insert(LeaseStatsRow(2, Lease::STATE_DECLINED, 1));
// Start the query
///
/// @param qry - a started LeaseStatsQuery
/// @param row_set - set of rows expected to be found in the query rows
- void checkQueryAgainstRowSet(LeaseStatsQueryPtr qry, RowSet& row_set);
+ void checkQueryAgainstRowSet(const LeaseStatsQueryPtr& qry, const RowSet& row_set);
/// @brief String forms of IPv4 addresses
std::vector<std::string> straddress4_;