diff options
author | Mukund Sivaraman <muks@isc.org> | 2014-01-14 12:46:04 +0100 |
---|---|---|
committer | Mukund Sivaraman <muks@isc.org> | 2014-01-14 12:46:04 +0100 |
commit | b3f844906409066e56efb339e0ff22e18d70386f (patch) | |
tree | 0e594c5a0d52db5f9ddc17b0fcc189d5563a5cd1 | |
parent | [3287] Constify argument (diff) | |
download | kea-b3f844906409066e56efb339e0ff22e18d70386f.tar.xz kea-b3f844906409066e56efb339e0ff22e18d70386f.zip |
[3287] Rename method
-rw-r--r-- | src/lib/dns/rdata/generic/sshfp_44.cc | 2 | ||||
-rw-r--r-- | src/lib/dns/rdata/generic/sshfp_44.h | 2 | ||||
-rw-r--r-- | src/lib/dns/tests/rdata_sshfp_unittest.cc | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/dns/rdata/generic/sshfp_44.cc b/src/lib/dns/rdata/generic/sshfp_44.cc index 03499f1d6e..a02fd1cda1 100644 --- a/src/lib/dns/rdata/generic/sshfp_44.cc +++ b/src/lib/dns/rdata/generic/sshfp_44.cc @@ -294,7 +294,7 @@ SSHFP::getFingerprintType() const { } size_t -SSHFP::getFingerprintLen() const { +SSHFP::getFingerprintLength() const { return (impl_->fingerprint_.size()); } diff --git a/src/lib/dns/rdata/generic/sshfp_44.h b/src/lib/dns/rdata/generic/sshfp_44.h index 28ce0f3d22..ff1cd51a1c 100644 --- a/src/lib/dns/rdata/generic/sshfp_44.h +++ b/src/lib/dns/rdata/generic/sshfp_44.h @@ -45,7 +45,7 @@ public: /// uint8_t getAlgorithmNumber() const; uint8_t getFingerprintType() const; - size_t getFingerprintLen() const; + size_t getFingerprintLength() const; private: SSHFPImpl* constructFromLexer(MasterLexer& lexer); diff --git a/src/lib/dns/tests/rdata_sshfp_unittest.cc b/src/lib/dns/tests/rdata_sshfp_unittest.cc index b85dfa5ebe..5896ee5766 100644 --- a/src/lib/dns/tests/rdata_sshfp_unittest.cc +++ b/src/lib/dns/tests/rdata_sshfp_unittest.cc @@ -254,8 +254,8 @@ TEST_F(Rdata_SSHFP_Test, getFingerprintType) { EXPECT_EQ(1, rdata_sshfp.getFingerprintType()); } -TEST_F(Rdata_SSHFP_Test, getFingerprintLen) { - EXPECT_EQ(20, rdata_sshfp.getFingerprintLen()); +TEST_F(Rdata_SSHFP_Test, getFingerprintLength) { + EXPECT_EQ(20, rdata_sshfp.getFingerprintLength()); } TEST_F(Rdata_SSHFP_Test, emptyFingerprintFromWire) { @@ -273,7 +273,7 @@ TEST_F(Rdata_SSHFP_Test, emptyFingerprintFromWire) { EXPECT_EQ(4, rdf.getAlgorithmNumber()); EXPECT_EQ(9, rdf.getFingerprintType()); - EXPECT_EQ(0, rdf.getFingerprintLen()); + EXPECT_EQ(0, rdf.getFingerprintLength()); this->obuffer.clear(); rdf.toWire(this->obuffer); @@ -297,7 +297,7 @@ TEST_F(Rdata_SSHFP_Test, emptyFingerprintFromString) { EXPECT_EQ(5, rdata_sshfp2.getAlgorithmNumber()); EXPECT_EQ(6, rdata_sshfp2.getFingerprintType()); - EXPECT_EQ(0, rdata_sshfp2.getFingerprintLen()); + EXPECT_EQ(0, rdata_sshfp2.getFingerprintLength()); this->obuffer.clear(); rdata_sshfp2.toWire(this->obuffer); |