]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply clang-format
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 10 May 2021 08:31:12 +0000 (10:31 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 15 May 2021 22:45:45 +0000 (00:45 +0200)
pdns/auth-domaincache.hh
pdns/test-auth-domaincache_cc.cc

index c78f89982c17fdc9616b0e83a1477128c4f34cc4..1c0a69ac8872578dd26362236322ce33d20a81c9 100644 (file)
@@ -35,7 +35,7 @@ public:
 
   void replace(const vector<tuple<DNSName, int>>& 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);
 
index c013d319e7830b8cf1ba39b22751302216760220..bfbf19fb244e238c9c1415d160e23cdea969ddd0 100644 (file)
@@ -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<tuple<DNSName, int>> 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);