forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OpenDDS#4593 from jrw972/type-object-encoding
`Service_Participant::type_object_encoding` returns incorrect value
- Loading branch information
Showing
5 changed files
with
111 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. news-prs: 4593 | ||
.. news-start-section: Fixes | ||
- Fix bug where ``Service_Participant::type_object_encoding`` doesn't return configured value. | ||
.. news-end-section |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <dds/DCPS/Service_Participant.h> | ||
|
||
#include <gtestWrapper.h> | ||
|
||
using namespace OpenDDS::DCPS; | ||
|
||
TEST(dds_DCPS_Service_Participant, type_object_encoding) { | ||
Service_Participant sp; | ||
|
||
EXPECT_EQ(sp.type_object_encoding(), Service_Participant::Encoding_Normal); | ||
sp.type_object_encoding(Service_Participant::Encoding_WriteOldFormat); | ||
EXPECT_EQ(sp.type_object_encoding(), Service_Participant::Encoding_WriteOldFormat); | ||
sp.type_object_encoding("ReadOldFormat"); | ||
EXPECT_EQ(sp.type_object_encoding(), Service_Participant::Encoding_ReadOldFormat); | ||
} |