Migrate to C++17 and misc code cleanups
Change-Id: I6b63385c92361a7ef5803d2bfd00f39c77e88d34
diff --git a/tests/unit/sqlite-handle.cpp b/tests/unit/sqlite-handle.cpp
index 9cfb0bf..d3ae687 100644
--- a/tests/unit/sqlite-handle.cpp
+++ b/tests/unit/sqlite-handle.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, Regents of the University of California.
+ * Copyright (c) 2014-2022, Regents of the University of California.
*
* This file is part of NDN repo-ng (Next generation of NDN repository).
* See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -25,8 +25,7 @@
#include <boost/test/unit_test.hpp>
#include <random>
-namespace repo {
-namespace tests {
+namespace repo::tests {
BOOST_AUTO_TEST_SUITE(SqliteStorage)
@@ -39,13 +38,10 @@
BOOST_FIXTURE_TEST_CASE_TEMPLATE(InsertReadDelete, T, CommonDatasets, Fixture<T>)
{
- BOOST_TEST_CHECKPOINT(T::getName());
-
std::vector<Name> names;
// Insert
- for (auto i = this->data.begin();
- i != this->data.end(); ++i) {
+ for (auto i = this->data.begin(); i != this->data.end(); ++i) {
Name name = Name();
this->handle->insert(**i);
name = (*i)->getFullName();
@@ -76,5 +72,4 @@
BOOST_AUTO_TEST_SUITE_END()
-} // namespace tests
-} // namespace repo
+} // namespace repo::tests