Skip to content

Commit 4435737

Browse files
committed
[#3477] Applied and completed patch
1 parent 4962fd7 commit 4435737

File tree

4 files changed

+319
-319
lines changed

4 files changed

+319
-319
lines changed

src/bin/d2/tests/d2_http_command_unittest.cc

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class BaseCtrlChannelD2Test : public ::testing::Test {
429429
void testShutdownExitValue();
430430

431431
// This test verifies that the D2 server handles version-get commands.
432-
void testGetversion();
432+
void testGetVersion();
433433

434434
// Tests that the server properly responds to list-commands command.
435435
void testListCommands();
@@ -688,6 +688,8 @@ TEST_F(HttpsCtrlChannelD2Test, shutdown) {
688688
testShutdown();
689689
}
690690

691+
// Tests that the server sets exit value supplied as argument
692+
// to shutdown command.
691693
void
692694
BaseCtrlChannelD2Test::testShutdownExitValue() {
693695
EXPECT_NO_THROW(createHttpChannelServer());
@@ -703,21 +705,17 @@ BaseCtrlChannelD2Test::testShutdownExitValue() {
703705
EXPECT_EQ(77, server_->getExitValue());
704706
}
705707

706-
// Tests that the server sets exit value supplied as argument
707-
// to shutdown command.
708708
TEST_F(HttpCtrlChannelD2Test, shutdownExitValue) {
709709
testShutdownExitValue();
710710
}
711711

712-
// Tests that the server sets exit value supplied as argument
713-
// to shutdown command.
714712
TEST_F(HttpsCtrlChannelD2Test, shutdownExitValue) {
715713
testShutdownExitValue();
716714
}
717715

718716
// This test verifies that the D2 server handles version-get commands.
719717
void
720-
BaseCtrlChannelD2Test::testGetversion() {
718+
BaseCtrlChannelD2Test::testGetVersion() {
721719
EXPECT_NO_THROW(createHttpChannelServer());
722720
string response;
723721

@@ -733,12 +731,12 @@ BaseCtrlChannelD2Test::testGetversion() {
733731
EXPECT_TRUE(response.find("GTEST_VERSION") != string::npos);
734732
}
735733

736-
TEST_F(HttpCtrlChannelD2Test, getversion) {
737-
testGetversion();
734+
TEST_F(HttpCtrlChannelD2Test, getVersion) {
735+
testGetVersion();
738736
}
739737

740-
TEST_F(HttpsCtrlChannelD2Test, getversion) {
741-
testGetversion();
738+
TEST_F(HttpsCtrlChannelD2Test, getVersion) {
739+
testGetVersion();
742740
}
743741

744742
// Tests that the server properly responds to list-commands command.
@@ -1728,7 +1726,7 @@ BaseCtrlChannelD2Test::testLongCommand() {
17281726

17291727
ostringstream command;
17301728

1731-
// This is the desired size of the command sent to the server (MB).
1729+
// This is the desired size of the command sent to the server (1MB).
17321730
// The actual size sent will be slightly greater than that.
17331731
const size_t command_size = 1024 * 1000;
17341732

@@ -1842,4 +1840,4 @@ TEST_F(HttpsCtrlChannelD2Test, connectionTimeoutNoData) {
18421840
testConnectionTimeoutNoData();
18431841
}
18441842

1845-
} // End of anonymous namespace
1843+
} // end of anonymous namespace

src/bin/dhcp4/tests/http_control_socket_unittest.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ TEST_F(HttpsCtrlChannelDhcpv4Test, controlChannelStats) {
937937
testControlChannelStats();
938938
}
939939

940-
// Check that the "config-set" command will replace current configuration
940+
// Check that the "config-set" command will replace current configuration.
941941
TEST_F(HttpCtrlChannelDhcpv4Test, configSet) {
942942
createHttpChannelServer();
943943

@@ -1106,7 +1106,7 @@ TEST_F(HttpCtrlChannelDhcpv4Test, configSet) {
11061106
CfgMgr::instance().clear();
11071107
}
11081108

1109-
// Check that the "config-set" command will replace current configuration
1109+
// Check that the "config-set" command will replace current configuration.
11101110
TEST_F(HttpsCtrlChannelDhcpv4Test, configSet) {
11111111
createHttpChannelServer();
11121112

@@ -1507,7 +1507,6 @@ TEST_F(HttpCtrlChannelDhcpv4Test, configTest) {
15071507
}
15081508

15091509
// Verify that the "config-test" command will do what we expect.
1510-
//////// TODO
15111510
TEST_F(HttpsCtrlChannelDhcpv4Test, configTest) {
15121511
createHttpChannelServer();
15131512

0 commit comments

Comments
 (0)