]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1613] constify
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 16 Feb 2012 17:51:15 +0000 (09:51 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 16 Feb 2012 17:51:15 +0000 (09:51 -0800)
src/bin/auth/tests/auth_srv_unittest.cc

index da45706c6f2fed237576ea52a739a6c17d238a28..fce0d7fb3e36b4cce17664bd1f5215fe820e6f42 100644 (file)
@@ -87,7 +87,7 @@ protected:
 
     // Helper for checking Rcode statistic counters;
     // Checks for one specific Rcode statistics counter value
-    void checkRcodeCounter(const Rcode& rcode, int expected_value) {
+    void checkRcodeCounter(const Rcode& rcode, int expected_value) const {
         EXPECT_EQ(expected_value, server.getCounter(rcode)) <<
                   "Expected Rcode count for " << rcode.toText() <<
                   " " << expected_value << ", was: " <<
@@ -95,7 +95,7 @@ protected:
     }
 
     // Checks whether all Rcode counters are set to zero
-    void checkAllRcodeCountersZero() {
+    void checkAllRcodeCountersZero() const {
         for (int i = 0; i < 17; i++) {
             checkRcodeCounter(Rcode(i), 0);
         }
@@ -103,7 +103,7 @@ protected:
 
     // Checks whether all Rcode counters are set to zero except the given
     // rcode (it is checked to be set to 'value')
-    void checkAllRcodeCountersZeroExcept(const Rcode& rcode, int value) {
+    void checkAllRcodeCountersZeroExcept(const Rcode& rcode, int value) const {
         for (int i = 0; i < 17; i++) {
             const Rcode rc(i);
             if (rc == rcode) {