From e4c657f4c777eb61e1c8d88aba5e52a0862212ff Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 8 Feb 2018 17:30:00 +0000 Subject: Remove filedistribution cpp code --- .../test-filedistributionmodelimpl.cpp | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 filedistribution/src/tests/filedbmodelimpl/test-filedistributionmodelimpl.cpp (limited to 'filedistribution/src/tests/filedbmodelimpl/test-filedistributionmodelimpl.cpp') diff --git a/filedistribution/src/tests/filedbmodelimpl/test-filedistributionmodelimpl.cpp b/filedistribution/src/tests/filedbmodelimpl/test-filedistributionmodelimpl.cpp deleted file mode 100644 index 1de7fc817ae..00000000000 --- a/filedistribution/src/tests/filedbmodelimpl/test-filedistributionmodelimpl.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MAIN -#define BOOST_TEST_MODULE filedbmodelimpl test -#include - -#include -#include -#include -#include -#include -#include - - -using namespace filedistribution; - - -namespace { - - -struct Fixture { - ComponentsDeleter _componentsDeleter; - std::shared_ptr _zk; - std::shared_ptr _distModel; - Fixture() { - _zk = _componentsDeleter.track(new ZKFacade("test1-tonyv:2181", false)); - _distModel.reset(new FileDistributionModelImpl("hostname", 12345, _zk)); - } - ~Fixture() { } -}; - -} //anonymous namespace - - -BOOST_FIXTURE_TEST_SUITE(FileDistributionModelImplTests, Fixture) - -BOOST_AUTO_TEST_CASE(configServersAsPeers) -{ - std::vector peers; - peers.push_back("old"); - peers.push_back("config:123"); - peers.push_back("config:567"); - peers.push_back("foo:123"); - _distModel->addConfigServersAsPeers(peers, "config,configTwo", 123); - BOOST_CHECK(peers.size() == 5); - BOOST_CHECK(peers[4] == "configTwo:123"); - _distModel->addConfigServersAsPeers(peers, NULL, 123); - BOOST_CHECK(peers.size() == 5); -} - -BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3