Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: crypto/p224_spake_unittest.cc

Issue 11368035: crypto: Remove forbidden using namespace directive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crypto/p224_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/p224_spake_unittest.cc
diff --git a/crypto/p224_spake_unittest.cc b/crypto/p224_spake_unittest.cc
index bcd448c9341a0b21b5fe8361f4ef822c0e7714e8..ca35f7245b9f10baa6b3b5bac03e195aa3af8903 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
« no previous file with comments | « no previous file | crypto/p224_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698