summaryrefslogtreecommitdiffstats
path: root/crypto/p224_spake_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-03 00:48:17 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-03 00:48:17 +0000
commit3c6cf57f58e7f02c0e93250a59d23fe91d9d5397 (patch)
tree3473fad330fcb053f513bfac7b3261d2d3b66dbd /crypto/p224_spake_unittest.cc
parentfeee2078adf61cfcdfb987b791260e5c55e62e67 (diff)
downloadchromium_src-3c6cf57f58e7f02c0e93250a59d23fe91d9d5397.zip
chromium_src-3c6cf57f58e7f02c0e93250a59d23fe91d9d5397.tar.gz
chromium_src-3c6cf57f58e7f02c0e93250a59d23fe91d9d5397.tar.bz2
crypto: Remove forbidden using namespace directive.
Instead just wrap the unittests files into the crypto namespace. TEST=crypto_unittests R=rsleevi@chromium.org Review URL: https://chromiumcodereview.appspot.com/11368035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/p224_spake_unittest.cc')
-rw-r--r--crypto/p224_spake_unittest.cc10
1 files changed, 8 insertions, 2 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