aboutsummaryrefslogtreecommitdiff
path: root/cc/config
diff options
context:
space:
mode:
authorcinlin <cinlin@google.com>2023-06-16 12:46:08 -0700
committerCopybara-Service <copybara-worker@google.com>2023-06-16 12:47:23 -0700
commit494bac342fb4e0c2f8b6648b3fcea4be830856ed (patch)
tree4c905a193cef62bb2b1b2dcb2252f2b8338881b5 /cc/config
parentb27b837cc43d069d8b517d88d18cb8bc07585b8e (diff)
downloadtink-494bac342fb4e0c2f8b6648b3fcea4be830856ed.tar.gz
Fix nits in Fips1402Test C++.
PiperOrigin-RevId: 540970439
Diffstat (limited to 'cc/config')
-rw-r--r--cc/config/fips_140_2_test.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/cc/config/fips_140_2_test.cc b/cc/config/fips_140_2_test.cc
index 0596e0829..de3425774 100644
--- a/cc/config/fips_140_2_test.cc
+++ b/cc/config/fips_140_2_test.cc
@@ -90,7 +90,16 @@ TEST_F(Fips1402Test, ConfigFips1402) {
IsOk());
}
-TEST_F(Fips1402Test, NonFipsKeyManagerIsNotPresent) {
+TEST_F(Fips1402Test, ConfigFips1402FailsInNonFipsMode) {
+ if (internal::IsFipsEnabledInSsl()) {
+ GTEST_SKIP() << "Only test in non-FIPS mode";
+ }
+
+ EXPECT_DEATH_IF_SUPPORTED(
+ ConfigFips140_2(), "BoringSSL not built with the BoringCrypto module.");
+}
+
+TEST_F(Fips1402Test, NonFipsTypeNotPresent) {
if (!internal::IsFipsEnabledInSsl()) {
GTEST_SKIP() << "Only test in FIPS mode";
}
@@ -102,16 +111,7 @@ TEST_F(Fips1402Test, NonFipsKeyManagerIsNotPresent) {
StatusIs(absl::StatusCode::kNotFound));
}
-TEST_F(Fips1402Test, ConfigFips1402FailsInNonFipsMode) {
- if (internal::IsFipsEnabledInSsl()) {
- GTEST_SKIP() << "Only test in non-FIPS mode";
- }
-
- EXPECT_DEATH_IF_SUPPORTED(
- ConfigFips140_2(), "BoringSSL not built with the BoringCrypto module.");
-}
-
-TEST_F(Fips1402Test, NewKeyDataAndGetPrimitiveSucceeds) {
+TEST_F(Fips1402Test, NewKeyDataAndGetPrimitive) {
if (!internal::IsFipsEnabledInSsl()) {
GTEST_SKIP() << "Only test in FIPS mode";
}