Skip to content

Commit

Permalink
iox-eclipse-iceoryx#563 remove superfluous using directive
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Kraus <mathias.kraus@apex.ai>
  • Loading branch information
elBoberido committed May 12, 2021
1 parent ab96552 commit 3542c0d
Show file tree
Hide file tree
Showing 37 changed files with 11 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;


int main(int argc, char* argv[])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

/// @req IOX_SWRS_112, IOX_SWRS_200
/// @brief Test goal: "This test suite verifies that the BaseClass function is verified"
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/test/moduletests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;

int main(int argc, char* argv[])
{
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_dds/test/moduletests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;

int main(int argc, char* argv[])
{
Expand Down
1 change: 0 additions & 1 deletion iceoryx_dds/test/moduletests/test_iox_to_dds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
using namespace ::testing;
using ::testing::_;
using ::testing::InSequence;
using ::testing::Return;
using ::testing::SetArgPointee;

// ======================================== Helpers ======================================== //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::gw;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ using namespace iox::popo;
using namespace iox::cxx;
using namespace iox::mepoo;
using namespace iox::posix;
using ::testing::Return;

struct DummySample
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ using namespace iox::capro;
using namespace iox::cxx;
using namespace iox::mepoo;
using namespace iox::posix;
using ::testing::Return;

struct DummySample
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::popo;
using namespace iox::capro;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -20,7 +21,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;

int main(int argc, char* argv[])
{
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/integrationtests/test_posh_mepoo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ using namespace ::testing;
using namespace iox::units::duration_literals;
using iox::mepoo::MePooConfig;
using iox::roudi::RouDiEnvironment;
using ::testing::Return;

using iox::posix::Timer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox;
using namespace iox::popo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ namespace
{
using namespace ::testing;
using namespace iox::roudi;
using ::testing::Return;

class RouDiEnvironment_test : public Test
{
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_capro_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::capro;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::roudi;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using CaproMessage = iox::capro::CaproMessage;
using BasePort = iox::popo::BasePort;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;
using namespace iox::popo;
using namespace iox::cxx;
using namespace iox::mepoo;
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_popo_chunk_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::popo;
using namespace iox::mepoo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;
using namespace iox::popo;
using namespace iox::cxx;
using namespace iox::units::duration_literals;
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_popo_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;
using namespace iox::popo;
using namespace iox::cxx;
using namespace iox::units::duration_literals;
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_popo_waitset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;
using namespace iox::popo;
using namespace iox::cxx;
using namespace iox::units::duration_literals;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/test/moduletests/test_posh_modules.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;


int main(int argc, char* argv[])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "iceoryx_posh/roudi/roudi_cmd_line_parser.hpp"

using namespace ::testing;
using ::testing::Return;

using namespace iox::roudi;
using namespace iox::config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using namespace iox::cxx;
using namespace iox::config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using iox::roudi::IceOryxRouDiApp;
using namespace iox::config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,19 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_posh/testing/mocks/chunk_mock.hpp"
#include "mocks/mepoo_memory_manager_mock.hpp"
#include "mocks/publisher_mock.hpp"
#include "iceoryx_utils/testing/timing_test.hpp"
#include "iceoryx_posh/internal/roudi/introspection/mempool_introspection.hpp"
#include "iceoryx_posh/internal/mepoo/segment_manager.hpp"
#include "iceoryx_posh/internal/roudi/introspection/mempool_introspection.hpp"
#include "iceoryx_posh/roudi/introspection_types.hpp"
#include "iceoryx_posh/testing/mocks/chunk_mock.hpp"
#include "iceoryx_utils/cxx/vector.hpp"
#include "iceoryx_utils/testing/timing_test.hpp"
#include "mocks/mepoo_memory_manager_mock.hpp"
#include "mocks/publisher_mock.hpp"

#include "test.hpp"

namespace
{
using ::testing::Return;
using namespace ::testing;

class CallChecker
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

namespace
{
using ::testing::Return;
using namespace ::testing;

template <typename PublisherPort, typename SubscriberPort>
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_roudi_portmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

using iox::popo::PublisherOptions;
using iox::popo::PublisherPortUser;
Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_roudi_portpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;
using namespace iox::capro;
using namespace iox;

Expand Down
1 change: 0 additions & 1 deletion iceoryx_posh/test/moduletests/test_roudi_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ using namespace iox::roudi;
using namespace iox::popo;
using namespace iox::runtime;
using namespace iox::posix;
using ::testing::Return;

class IpcInterfaceUser_Mock : public iox::roudi::Process
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

namespace
{
using ::testing::Return;
using namespace ::testing;

class ProcessIntrospectionAccess : public iox::roudi::ProcessIntrospection<MockPublisherPortUser>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ using namespace iox::popo;
using namespace iox::runtime;
using namespace iox::posix;
using namespace iox::version;
using ::testing::Return;

class ProcessManager_test : public Test
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
namespace
{
using namespace ::testing;
using ::testing::Return;

class ServiceRegistry_test : public Test
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <gtest/gtest.h>

using namespace ::testing;
using ::testing::Return;

class RouDi_GTest : public iox::roudi::RouDiEnvironment, public Test
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;

int main(int argc, char* argv[])
{
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_utils/test/moduletests/test_utils_modules.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +19,6 @@

using namespace ::testing;
using ::testing::_;
using ::testing::Return;

// global argc and argv needed by the argv_inspection test
int g_argc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <time.h>

using namespace ::testing;
using ::testing::Return;

class time_MOCK
{
Expand Down

0 comments on commit 3542c0d

Please sign in to comment.