-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #20160: Added valid_matching check for TypeInformation.
Signed-off-by: adriancampo <adriancampo@eprosima.com>
- Loading branch information
1 parent
e7596a5
commit dd105e0
Showing
6 changed files
with
123 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
test/mock/rtps/TypeLookupManager/fastdds/builtin/type_lookup_service/TypeLookupManager.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
|
||
#ifndef _FASTDDS_TYPELOOKUP_SERVICE_MANAGER_HPP | ||
#define _FASTDDS_TYPELOOKUP_SERVICE_MANAGER_HPP | ||
|
||
#include <vector> | ||
|
||
#include <gmock/gmock.h> | ||
|
||
#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp> | ||
|
||
#include <fastdds/builtin/type_lookup_service/detail/TypeLookupTypes.hpp> | ||
|
||
namespace eprosima { | ||
|
||
namespace fastrtps { | ||
namespace rtps { | ||
|
||
class BuiltinProtocols; | ||
class ReaderHistory; | ||
class RTPSParticipantImpl; | ||
class StatefulReader; | ||
class StatefulWriter; | ||
class ParticipantProxyData; | ||
class WriterHistory; | ||
|
||
} // namespace rtps | ||
} // namespace fastrtps | ||
|
||
namespace fastdds { | ||
namespace dds { | ||
namespace builtin { | ||
|
||
extern const fastrtps::rtps::SampleIdentity INVALID_SAMPLE_IDENTITY; | ||
|
||
/** | ||
* Class TypeLookupManager that implements the TypeLookup Service described in the DDS-XTYPES 1.2 specification. | ||
* @ingroup XTYPES | ||
*/ | ||
class TypeLookupManager | ||
{ | ||
|
||
public: | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
TypeLookupManager() | ||
{ | ||
} | ||
|
||
virtual ~TypeLookupManager() | ||
{ | ||
} | ||
|
||
MOCK_CONST_METHOD1(get_type_dependencies, fastrtps::rtps::SampleIdentity( | ||
const fastdds::dds::xtypes::TypeIdentifierSeq&)); | ||
|
||
MOCK_CONST_METHOD1(get_types, fastrtps::rtps::SampleIdentity( | ||
const fastdds::dds::xtypes::TypeIdentifierSeq&)); | ||
|
||
void remove_remote_endpoints( | ||
fastrtps::rtps::ParticipantProxyData* pdata) | ||
{ | ||
static_cast<void>(pdata); | ||
} | ||
|
||
}; | ||
|
||
} /* namespace builtin */ | ||
} /* namespace dds */ | ||
} /* namespace fastdds */ | ||
} /* namespace eprosima */ | ||
#endif /* _FASTDDS_TYPELOOKUP_SERVICE_MANAGER_HPP */ |