Remove bssl::Main wrapper in ec_test. We were using a fully-qualified name for nearly everything anyway. Change-Id: Ia32c68975ed4126feeab7b420f12b726ad6b89b3 Reviewed-on: https://boringssl-review.googlesource.com/12226 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/ec/ec_test.cc b/crypto/ec/ec_test.cc index 839acfe..fad57ad 100644 --- a/crypto/ec/ec_test.cc +++ b/crypto/ec/ec_test.cc
@@ -26,8 +26,6 @@ #include <openssl/nid.h> -namespace bssl { - // kECKeyWithoutPublic is an ECPrivateKey with the optional publicKey field // omitted. static const uint8_t kECKeyWithoutPublic[] = { @@ -112,7 +110,7 @@ // EncodeECPrivateKey encodes |key| as an ECPrivateKey structure into |*out|. It // returns true on success or false on error. static bool EncodeECPrivateKey(std::vector<uint8_t> *out, const EC_KEY *key) { - ScopedCBB cbb; + bssl::ScopedCBB cbb; uint8_t *der; size_t der_len; if (!CBB_init(cbb.get(), 0) || @@ -474,7 +472,7 @@ return true; } -static int Main() { +int main() { CRYPTO_library_init(); if (!Testd2i_ECPrivateKey() || @@ -490,9 +488,3 @@ printf("PASS\n"); return 0; } - -} // namespace bssl - -int main() { - return bssl::Main(); -}