| 33 | }; |
| 34 | |
| 35 | TEST(ServerLibTest, NewServerFactoryAccepts) { |
| 36 | ServerFactory::Register("TEST_SERVER", new TestServerFactory()); |
| 37 | ServerDef server_def; |
| 38 | server_def.set_protocol("test_protocol"); |
| 39 | std::unique_ptr<ServerInterface> server; |
| 40 | TF_EXPECT_OK(NewServer(server_def, &server)); |
| 41 | } |
| 42 | |
| 43 | TEST(ServerLibTest, NewServerNoFactoriesAccept) { |
| 44 | ServerDef server_def; |
nothing calls this directly
no test coverage detected