Commit 6bb0172d authored by Francis Dupont's avatar Francis Dupont
Browse files

[5442] Added a default state unit test

parent 7d46d891
......@@ -63,6 +63,14 @@ public:
IntervalTimer test_timer_;
// This test verifies the default is enable state.
TEST_F(NetworkStateTest, default) {
NetworkState state4(NetworkState::DHCPv4);
NetworkState state6(NetworkState::DHCPv6);
// This test verifies that it is possible to disable and then enable DHCPv4 service.
TEST_F(NetworkStateTest, disableEnableService4) {
NetworkState state(NetworkState::DHCPv4);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment