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
This commit is contained in:
@ -7,7 +7,9 @@
|
|||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
|
||||||
using namespace crypto;
|
namespace crypto {
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
bool RunExchange(P224EncryptedKeyExchange* client,
|
bool RunExchange(P224EncryptedKeyExchange* client,
|
||||||
P224EncryptedKeyExchange* server) {
|
P224EncryptedKeyExchange* server) {
|
||||||
@ -42,7 +44,9 @@ bool RunExchange(P224EncryptedKeyExchange* client,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char kPassword[] = "foo";
|
const char kPassword[] = "foo";
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
TEST(MutualAuth, CorrectAuth) {
|
TEST(MutualAuth, CorrectAuth) {
|
||||||
P224EncryptedKeyExchange client(
|
P224EncryptedKeyExchange client(
|
||||||
@ -122,3 +126,5 @@ TEST(MutualAuth, Fuzz) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace crypto
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
|
||||||
using namespace crypto;
|
namespace crypto {
|
||||||
|
|
||||||
using p224::Point;
|
using p224::Point;
|
||||||
|
|
||||||
// kBasePointExternal is the P224 base point in external representation.
|
// kBasePointExternal is the P224 base point in external representation.
|
||||||
@ -819,3 +820,5 @@ TEST(P224, Infinity) {
|
|||||||
// We shouldn't allow ∞ to be imported.
|
// We shouldn't allow ∞ to be imported.
|
||||||
EXPECT_FALSE(a.SetFromString(std::string(zeros, sizeof(zeros))));
|
EXPECT_FALSE(a.SetFromString(std::string(zeros, sizeof(zeros))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace crypto
|
||||||
|
Reference in New Issue
Block a user