Commit 1db8c59a98c008d96e205289e9c0e18e862b548a

Authored by Moritz W
Committed by Moritz Wirger
1 parent f46f6cdd

Initialize MockHttpHandler in initializer list in test_Hue.cpp

Showing 1 changed file with 1 additions and 1 deletions
hueplusplus/test/test_Hue.cpp
... ... @@ -17,9 +17,9 @@ protected:
17 17 std::shared_ptr<MockHttpHandler> handler;
18 18 protected:
19 19 HueFinderTest()
  20 + : handler(std::make_shared<MockHttpHandler>())
20 21 {
21 22 using namespace ::testing;
22   - handler = std::make_shared<MockHttpHandler>();
23 23  
24 24 EXPECT_CALL(*handler, sendMulticast("M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: 5\r\nST: ssdp:all\r\n\r\n", "239.255.255.250", 1900, 5))
25 25 .Times(AtLeast(1))
... ...