summaryrefslogtreecommitdiff
path: root/gtests/softoken_gtest
diff options
context:
space:
mode:
authorAnna Weine <anna.weine@mozilla.com>2022-10-07 11:25:24 +0000
committerAnna Weine <anna.weine@mozilla.com>2022-10-07 11:25:24 +0000
commit811625e10804cb6a36b5e643b9bb9c1fcb0a8398 (patch)
tree7c8d5fad269f9436132b6880b69abd467b926069 /gtests/softoken_gtest
parentc14535f9c17c47e1ca55af69c0214289af57a684 (diff)
downloadnss-hg-811625e10804cb6a36b5e643b9bb9c1fcb0a8398.tar.gz
Bug 1792821 - Updating the clang-format version to 10. r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D158323
Diffstat (limited to 'gtests/softoken_gtest')
-rw-r--r--gtests/softoken_gtest/softoken_dh_vectors.h2
-rw-r--r--gtests/softoken_gtest/softoken_gtest.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/gtests/softoken_gtest/softoken_dh_vectors.h b/gtests/softoken_gtest/softoken_dh_vectors.h
index 306aded47..0e5c8069c 100644
--- a/gtests/softoken_gtest/softoken_dh_vectors.h
+++ b/gtests/softoken_gtest/softoken_dh_vectors.h
@@ -3408,4 +3408,4 @@ static const DhTestVector DH_TEST_VECTORS[] = {
CLASS_8192}
#endif
};
-};
+}; // namespace nss_test
diff --git a/gtests/softoken_gtest/softoken_gtest.cc b/gtests/softoken_gtest/softoken_gtest.cc
index 59e98765c..059bdadfd 100644
--- a/gtests/softoken_gtest/softoken_gtest.cc
+++ b/gtests/softoken_gtest/softoken_gtest.cc
@@ -606,8 +606,8 @@ SECStatus test_dh_value(const PQGParams *params, const SECItem *pub_key_value,
if ((genFailOK) && ((priv_key.get() == nullptr) || (pub_tmp == nullptr))) {
return SECFailure;
}
- EXPECT_NE(nullptr, priv_key.get()) << "PK11_GenerateKeyPair failed: "
- << PORT_ErrorToName(PORT_GetError());
+ EXPECT_NE(nullptr, priv_key.get())
+ << "PK11_GenerateKeyPair failed: " << PORT_ErrorToName(PORT_GetError());
EXPECT_NE(nullptr, pub_tmp);
if ((priv_key.get() == nullptr) || (pub_tmp == nullptr)) return SECFailure;
ScopedSECKEYPublicKey pub_key(pub_tmp);