Skip to content

Commit

Permalink
Refs #21131: Apply Eliana's rev
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Jun 20, 2024
1 parent 94cea7a commit e0e26c3
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 13 deletions.
11 changes: 5 additions & 6 deletions include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ namespace fastdds {
namespace rtps {

struct CDRMessage_t;

struct TestTransportOptions;
struct TestUDPv4TransportOptions;

/**
* UDP v4 Test Transport configuration
Expand All @@ -41,7 +40,7 @@ struct test_UDPv4TransportDescriptor : public SocketTransportDescriptor
typedef std::function<bool (const Locator& destination)> DestinationLocatorFilter;

//! Test transport options
std::shared_ptr<TestTransportOptions> test_transport_options = std::make_shared<TestTransportOptions>();
std::shared_ptr<TestUDPv4TransportOptions> test_transport_options = std::make_shared<TestUDPv4TransportOptions>();

//! Test shim parameters
//! Percentage of data messages being dropped
Expand Down Expand Up @@ -153,10 +152,10 @@ struct test_UDPv4TransportDescriptor : public SocketTransportDescriptor
const test_UDPv4TransportDescriptor& t) const;
};

struct TestTransportOptions
struct TestUDPv4TransportOptions
{
FASTDDS_EXPORTED_API TestTransportOptions() = default;
~TestTransportOptions() = default;
FASTDDS_EXPORTED_API TestUDPv4TransportOptions() = default;
~TestUDPv4TransportOptions() = default;

std::atomic<bool> test_UDPv4Transport_ShutdownAllNetwork{false};
// Handle to a persistent log of dropped packets. Defaults to length 0 (no logging) to prevent wasted resources.
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/test_UDPv4Transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class test_UDPv4Transport : public UDPv4Transport
virtual LocatorList NormalizeLocator(
const Locator& locator) override;

std::shared_ptr<TestTransportOptions> test_transport_options;
std::shared_ptr<TestUDPv4TransportOptions> test_transport_options;

protected:

Expand Down
2 changes: 1 addition & 1 deletion test/blackbox/common/BlackboxTests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "../types/HelloWorldPubSubTypes.h"
#include "../types/KeyedData1mbPubSubTypes.h"
#include "../types/KeyedHelloWorldPubSubTypes.h"
#include "../types/rtps/core_typesPubSubTypes.h"
#include "../types/core/core_typesPubSubTypes.h"
#include "../types/StringTestPubSubTypes.h"
#include "../types/UnboundedHelloWorldPubSubTypes.h"

Expand Down
1 change: 0 additions & 1 deletion test/blackbox/common/DDSBlackboxTestsDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <fastdds/rtps/common/Locator.h>
#include <fastdds/rtps/participant/ParticipantDiscoveryInfo.h>
#include <fastdds/rtps/transport/test_UDPv4TransportDescriptor.h>
#include <fastdds/rtps/transport/test_UDPv4TransportDescriptor.h>
#include <gtest/gtest.h>

#include "../utils/filter_helpers.hpp"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

/**
* @file test/blackbox/types/rtps/core_types.idl
* @file test/blackbox/types/core/core_types.idl
*/

module eprosima {
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox/utils/filter_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <fastdds/dds/core/Entity.hpp>
#include <fastdds/rtps/common/Types.h>

#include "../types/rtps/core_typesPubSubTypes.h"
#include "../types/core/core_typesPubSubTypes.h"

namespace eprosima {
namespace fastdds {
Expand Down
2 changes: 1 addition & 1 deletion utils/scripts/update_generated_code_from_idl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ files_needing_output_dir=(
'./thirdparty/dds-types-test/IDL/strings.idl|../../../test/dds-types-test'
'./thirdparty/dds-types-test/IDL/structures.idl|../../../test/dds-types-test'
'./thirdparty/dds-types-test/IDL/unions.idl|../../../test/dds-types-test'
'./test/blackbox/types/rtps/core_types.idl|.'
'./test/blackbox/types/core/core_types.idl|.'
)

files_needing_no_typesupport=(
Expand Down
2 changes: 1 addition & 1 deletion versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Forthcoming
* New attribute in `SendBuffersAllocationAttributes` to configure allocation of `NetworkBuffer` vector.
* `SenderResource` and Transport APIs now receive a collection of `NetworkBuffer` on their `send` method.
* Migrate fastrtps namespace to fastdds
* Make Blackbox tests not include any private API.
* Remove all the private API include from Blackbox tests.

Version 2.14.0
--------------
Expand Down

0 comments on commit e0e26c3

Please sign in to comment.