-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #2401 from metalefty/codec_guid
Record codec GUID to identify unknown codec
- Loading branch information
Showing
10 changed files
with
136 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
#if defined(HAVE_CONFIG_H) | ||
#include "config_ac.h" | ||
#endif | ||
|
||
#include "guid.h" | ||
#include "ms-rdpbcgr.h" | ||
#include "os_calls.h" | ||
|
||
#include "test_common.h" | ||
|
||
/******************************************************************************/ | ||
|
||
START_TEST(test_guid_to_str_remotefx) | ||
{ | ||
/* setup */ | ||
char dest[GUID_STR_SIZE]; | ||
struct guid guid; | ||
g_memcpy(guid.g, XR_CODEC_GUID_REMOTEFX, GUID_SIZE); | ||
|
||
/* test */ | ||
guid_to_str(&guid, dest); | ||
|
||
/* verify */ | ||
ck_assert_str_eq(dest, "76772F12-BD72-4463-AFB3-B73C9C6F7886"); | ||
} | ||
END_TEST | ||
|
||
START_TEST(test_guid_to_str_nscodec) | ||
{ | ||
|
||
/* setup */ | ||
char dest[GUID_STR_SIZE]; | ||
struct guid guid; | ||
g_memcpy(guid.g, XR_CODEC_GUID_NSCODEC, GUID_SIZE); | ||
|
||
/* test */ | ||
guid_to_str(&guid, dest); | ||
|
||
/* verify */ | ||
ck_assert_str_eq(dest, "CA8D1BB9-000F-154F-589F-AE2D1A87E2D6"); | ||
} | ||
END_TEST | ||
|
||
START_TEST(test_guid_to_str_ignore) | ||
{ | ||
/* setup */ | ||
char dest[GUID_STR_SIZE]; | ||
struct guid guid; | ||
g_memcpy(guid.g, XR_CODEC_GUID_IGNORE, GUID_SIZE); | ||
|
||
/* test */ | ||
guid_to_str(&guid, dest); | ||
|
||
/* verify */ | ||
ck_assert_str_eq(dest, "0C4351A6-3535-42AE-910C-CDFCE5760B58"); | ||
} | ||
END_TEST | ||
|
||
/******************************************************************************/ | ||
|
||
Suite * | ||
make_suite_test_guid(void) | ||
{ | ||
Suite *s; | ||
TCase *tc_guid; | ||
|
||
s = suite_create("GUID"); | ||
|
||
tc_guid = tcase_create("guid_to_str"); | ||
suite_add_tcase(s, tc_guid); | ||
tcase_add_test(tc_guid, test_guid_to_str_remotefx); | ||
tcase_add_test(tc_guid, test_guid_to_str_nscodec); | ||
tcase_add_test(tc_guid, test_guid_to_str_ignore); | ||
|
||
return s; | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
#endif | ||
|
||
#include "string_calls.h" | ||
#include "ms-rdpbcgr.h" | ||
|
||
#include "test_common.h" | ||
|
||
|