summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/p224_spake_unittest.cc10
-rw-r--r--crypto/p224_unittest.cc5
2 files changed, 12 insertions, 3 deletions
diff --git a/crypto/p224_spake_unittest.cc b/crypto/p224_spake_unittest.cc
index bcd448c..ca35f72 100644
--- a/crypto/p224_spake_unittest.cc
+++ b/crypto/p224_spake_unittest.cc
@@ -7,7 +7,9 @@
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
-using namespace crypto;
+namespace crypto {
+
+namespace {
bool RunExchange(P224EncryptedKeyExchange* client,
P224EncryptedKeyExchange* server) {
@@ -42,7 +44,9 @@ bool RunExchange(P224EncryptedKeyExchange* client,
}
}
-static const char kPassword[] = "foo";
+const char kPassword[] = "foo";
+
+} // namespace
TEST(MutualAuth, CorrectAuth) {
P224EncryptedKeyExchange client(
@@ -122,3 +126,5 @@ TEST(MutualAuth, Fuzz) {
}
}
}
+
+} // namespace crypto
diff --git a/crypto/p224_unittest.cc b/crypto/p224_unittest.cc
index c6acfdd..ef9e305 100644
--- a/crypto/p224_unittest.cc
+++ b/crypto/p224_unittest.cc
@@ -9,7 +9,8 @@
#include "testing/gtest/include/gtest/gtest.h"
-using namespace crypto;
+namespace crypto {
+
using p224::Point;
// kBasePointExternal is the P224 base point in external representation.
@@ -819,3 +820,5 @@ TEST(P224, Infinity) {
// We shouldn't allow ∞ to be imported.
EXPECT_FALSE(a.SetFromString(std::string(zeros, sizeof(zeros))));
}
+
+} // namespace crypto