From: Chris Hofstaedtler Date: Mon, 10 May 2021 08:31:12 +0000 (+0200) Subject: Apply clang-format X-Git-Tag: auth-4.5.0-alpha1~7^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e2355fa5c6a62a75d7c6c96adf4bbeffe4c521;p=thirdparty%2Fpdns.git Apply clang-format --- diff --git a/pdns/auth-domaincache.hh b/pdns/auth-domaincache.hh index c78f89982c..1c0a69ac88 100644 --- a/pdns/auth-domaincache.hh +++ b/pdns/auth-domaincache.hh @@ -35,7 +35,7 @@ public: void replace(const vector>& domains); void add(const DNSName& domain, const int zoneId); - void setReplacePending(); //!< call this when data collection for subsequent replace() call starts. + void setReplacePending(); //!< call this when data collection for subsequent replace() call starts. bool getEntry(const DNSName& domain, int& zoneId); diff --git a/pdns/test-auth-domaincache_cc.cc b/pdns/test-auth-domaincache_cc.cc index c013d319e7..bfbf19fb24 100644 --- a/pdns/test-auth-domaincache_cc.cc +++ b/pdns/test-auth-domaincache_cc.cc @@ -35,7 +35,8 @@ BOOST_AUTO_TEST_SUITE(test_auth_domaincache_cc) -BOOST_AUTO_TEST_CASE(test_replace) { +BOOST_AUTO_TEST_CASE(test_replace) +{ AuthDomainCache cache; cache.setTTL(3600); @@ -51,13 +52,13 @@ BOOST_AUTO_TEST_CASE(test_replace) { } } -BOOST_AUTO_TEST_CASE(test_add_while_pending_replace) { +BOOST_AUTO_TEST_CASE(test_add_while_pending_replace) +{ AuthDomainCache cache; cache.setTTL(3600); vector> domain_indices{ - {DNSName("powerdns.org."), 1} - }; + {DNSName("powerdns.org."), 1}}; cache.setReplacePending(); cache.add(DNSName("example.org."), 2); cache.replace(domain_indices); @@ -70,7 +71,8 @@ BOOST_AUTO_TEST_CASE(test_add_while_pending_replace) { } // Add domain using .add(), but also in the .replace() data -BOOST_AUTO_TEST_CASE(test_add_while_pending_replace_duplicate) { +BOOST_AUTO_TEST_CASE(test_add_while_pending_replace_duplicate) +{ AuthDomainCache cache; cache.setTTL(3600);