-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TestHelper] Fix ODR violation that causes crash #1749
Conversation
src/aes_decrypter.cpp
Outdated
#ifndef INPUTSTREAM_TEST_BUILD | ||
#include <kodi/Filesystem.h> | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree your change but please comment the code
#ifndef INPUTSTREAM_TEST_BUILD | |
#include <kodi/Filesystem.h> | |
#endif | |
// #ifndef INPUTSTREAM_TEST_BUILD | |
// #include <kodi/Filesystem.h> | |
// #endif |
this is part of RenewLicense
method that has been temporary comment out for a future full removal
has been kept only to see if some user complain about this old undocumented feature removal
AESDecrypter(const std::string& licenseKey) : m_licenseKey(licenseKey){}; | ||
virtual ~AESDecrypter() = default; | ||
AESDecrypterTest(const std::string& licenseKey) : m_licenseKey(licenseKey) {}; | ||
virtual ~AESDecrypterTest() = default; | ||
|
||
void decrypt(const AP4_UI08* aes_key, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the line 96 (i cant comment below)
please comment the method
// bool RenewLicense(const std::string& pluginUrl);
an oversight of what was explained on the my previous comment
73096e9
to
a2861ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Description
Fixes a problem with the One Definition Rule. This prevents the following crash when executing the tests:
stack trace
This could be resolved more elegant with maybe a factory function but I'm too lazy right now.
Motivation and context
The tests shouldn't crash.
How has this been tested?
Tests run without crash.
Screenshots (if appropriate):
Types of change
Checklist: