@@ -3736,25 +3736,22 @@ TEST_F(LibDhcpTest, unpackOptions6LenientFqdn) {
3736
3736
TEST_F (LibDhcpTest, v6NtpServer) {
3737
3737
// A NTP server option with the 3 suboptions.
3738
3738
std::vector<uint8_t > bin {
3739
- 0 , 56 , 0 , 53 , // ntp-server
3740
- 0 , 1 , 0 , 16 , // ntp-server-address
3739
+ 0 , 56 , 0 , 53 , // ntp-server
3740
+ 0 , 1 , 0 , 16 , // ntp-server-address
3741
3741
0x20 , 0x01 , 0xd , 0xb8 , 0 , 0 , 0 , 0 , // 2001:db8::abcd
3742
3742
0 , 0 , 0 , 0 , 0 , 0 , 0xab , 0xcd ,
3743
- 0 , 2 , 0 , 16 , // ntp-server-multicast
3744
- 0xff , 0x02 , 0 , 0 , 0 , 0 , 0 , 0 , // ff02::101
3743
+ 0 , 2 , 0 , 16 , // ntp-server-multicast
3744
+ 0xff , 0x02 , 0 , 0 , 0 , 0 , 0 , 0 , // ff02::101
3745
3745
0 , 0 , 0 , 0 , 0 , 0 , 0x01 , 0x01 ,
3746
- 0 , 3 , 0 , 9 , // ntp-server-fqdn
3747
- 3 , 0x66 , 0x6f , 0x6f , // foo.bar.
3746
+ 0 , 3 , 0 , 9 , // ntp-server-fqdn
3747
+ 3 , 0x66 , 0x6f , 0x6f , // foo.bar.
3748
3748
3 , 0x62 , 0x61 , 0x72 , 0
3749
3749
};
3750
3750
3751
3751
// List of parsed options will be stored here.
3752
- isc::dhcp::OptionCollection options;
3753
-
3752
+ OptionCollection options;
3754
3753
OptionBuffer buf (bin);
3755
-
3756
3754
size_t parsed = 0 ;
3757
-
3758
3755
EXPECT_NO_THROW (parsed = LibDHCP::unpackOptions6 (buf, DHCP6_OPTION_SPACE,
3759
3756
options));
3760
3757
EXPECT_EQ (bin.size (), parsed);
@@ -3841,7 +3838,7 @@ TEST_F(LibDhcpTest, v6NtpServer) {
3841
3838
option->addOption (fqdn);
3842
3839
3843
3840
// Pack output.
3844
- isc::util:: OutputBuffer outbuf (0 );
3841
+ OutputBuffer outbuf (0 );
3845
3842
ASSERT_NO_THROW (option->pack (outbuf, true ));
3846
3843
ASSERT_EQ (bin.size (), outbuf.getLength ());
3847
3844
EXPECT_TRUE (memcmp (&bin[0 ], outbuf.getData (), bin.size ()) == 0 );
@@ -3902,7 +3899,7 @@ TEST_F(LibDhcpTest, splitNtpServerOptions6) {
3902
3899
expected += " type=00003, len=00009: \" foo.bar.\" (fqdn)\n " ;
3903
3900
expected += " type=00059, len=00006: \" foobar\" (string)\n " ;
3904
3901
ostringstream output;
3905
- for (auto opt : col) {
3902
+ for (auto const & opt : col) {
3906
3903
output << opt.second ->toText () << endl;
3907
3904
}
3908
3905
EXPECT_EQ (expected, output.str ());
0 commit comments