-
Notifications
You must be signed in to change notification settings - Fork 123
Bugfix/app cmake exceptions private #561
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
Conversation
app/tests/thread_test.cc
Outdated
@@ -20,6 +20,17 @@ | |||
#include "gmock/gmock.h" | |||
#include "gtest/gtest.h" | |||
|
|||
#define EXPECT_SYSTEM_ERROR(statement, error_code) \ |
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.
WDYT about naming this something like EXPECT_THROW_WITH_CODE? (just a thought - so it's clearer in the tests that this is specifically testing for a thrown exception.) Or if you think it isn't too wordy, just to use EXPECT_THROW directly with the EXPECT_EQ inside the catch in each of the tests, rather than the #define, since it's all just in this file anyway.
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.
Ah good point. I wanted to avoid repeating the pattern (EXPECT_THROW with EXPECT_EQ) in multiple places. I could change it to that but it seemed like a lot of code duplication. How about EXPECT_THROW_WITH_ERROR_CODE
?
❌ Integration test FAILEDRequested by @vimanyu on commit 984f698
|
Make the "no exceptions" compiler setting for Firebase app a private dependency so it does not affect the consuming projects.
Some of the unit tests dealing with threads now throw an exception and have been modified to expect such exceptions.