aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_config_test.cc
diff options
context:
space:
mode:
authorkste <kste@google.com>2021-04-16 07:33:15 -0700
committerCopybara-Service <copybara-worker@google.com>2021-04-16 07:33:51 -0700
commit47b6e1783c8dc1eaed150632efd2ceb50f3f867c (patch)
treee62a25949509a252b05e42065289b9e3efaeea0a /cc/mac/mac_config_test.cc
parent564daf0fd1e6a27ef469fdb0b85ffb60e3a0375e (diff)
downloadtink-47b6e1783c8dc1eaed150632efd2ceb50f3f867c.tar.gz
Refactor tink fips into an internal and public part.
Create a new fips_util target which captures all internal functions used for implementing the FIPS checks and puts it in the internal namespace. The tink_fips.h now only provides functions which are part of the public API. PiperOrigin-RevId: 368843791
Diffstat (limited to 'cc/mac/mac_config_test.cc')
-rw-r--r--cc/mac/mac_config_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/mac/mac_config_test.cc b/cc/mac/mac_config_test.cc
index 6c5183b12..211c37102 100644
--- a/cc/mac/mac_config_test.cc
+++ b/cc/mac/mac_config_test.cc
@@ -46,7 +46,7 @@ class MacConfigTest : public ::testing::Test {
};
TEST_F(MacConfigTest, Basic) {
- if (kUseOnlyFips) {
+ if (IsFipsModeEnabled()) {
GTEST_SKIP() << "Not supported in FIPS-only mode";
}
@@ -62,7 +62,7 @@ TEST_F(MacConfigTest, Basic) {
// Tests that the MacWrapper has been properly registered and we can wrap
// primitives.
TEST_F(MacConfigTest, WrappersRegistered) {
- if (kUseOnlyFips) {
+ if (IsFipsModeEnabled()) {
GTEST_SKIP() << "Not supported in FIPS-only mode";
}
@@ -97,7 +97,7 @@ TEST_F(MacConfigTest, WrappersRegistered) {
// FIPS-only mode tests
TEST_F(MacConfigTest, RegisterNonFipsTemplates) {
- if (!kUseOnlyFips || !FIPS_mode()) {
+ if (!IsFipsModeEnabled() || !FIPS_mode()) {
GTEST_SKIP() << "Only supported in FIPS-only mode";
}
@@ -113,7 +113,7 @@ TEST_F(MacConfigTest, RegisterNonFipsTemplates) {
}
TEST_F(MacConfigTest, RegisterFipsValidTemplates) {
- if (!kUseOnlyFips || !FIPS_mode()) {
+ if (!IsFipsModeEnabled() || !FIPS_mode()) {
GTEST_SKIP() << "Only supported in FIPS-only mode";
}