From 67e9dfaaf8cbe91da4d851e7bb86dc6078218ba4 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 14 Apr 2015 16:41:48 +0900 Subject: [PATCH] Bug 1153114 - Remove anonymous namespace around pkix gtests. r=bsmith This avoids -Wunused-variable fatal warnings with GCC 5.0 --- security/pkix/test/gtest/pkixder_pki_types_tests.cpp | 4 ---- security/pkix/test/gtest/pkixder_universal_types_tests.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/security/pkix/test/gtest/pkixder_pki_types_tests.cpp b/security/pkix/test/gtest/pkixder_pki_types_tests.cpp index f3a23250c17a..4a5bcaae4e28 100644 --- a/security/pkix/test/gtest/pkixder_pki_types_tests.cpp +++ b/security/pkix/test/gtest/pkixder_pki_types_tests.cpp @@ -32,8 +32,6 @@ using namespace mozilla::pkix; using namespace mozilla::pkix::der; -namespace { - class pkixder_pki_types_tests : public ::testing::Test { }; TEST_F(pkixder_pki_types_tests, CertificateSerialNumber) @@ -478,5 +476,3 @@ INSTANTIATE_TEST_CASE_P( pkixder_SignatureAlgorithmIdentifier_Invalid, pkixder_SignatureAlgorithmIdentifier_Invalid, testing::ValuesIn(INVALID_SIGNATURE_ALGORITHM_VALUE_TEST_INFO)); - -} // unnamed namespace diff --git a/security/pkix/test/gtest/pkixder_universal_types_tests.cpp b/security/pkix/test/gtest/pkixder_universal_types_tests.cpp index 9f2edd966a71..e54a186ff278 100644 --- a/security/pkix/test/gtest/pkixder_universal_types_tests.cpp +++ b/security/pkix/test/gtest/pkixder_universal_types_tests.cpp @@ -34,8 +34,6 @@ using namespace mozilla::pkix::der; using namespace mozilla::pkix::test; using namespace std; -namespace { - class pkixder_universal_types_tests : public ::testing::Test { }; TEST_F(pkixder_universal_types_tests, BooleanTrue01) @@ -1161,5 +1159,3 @@ TEST_F(pkixder_universal_types_tests, OID) ASSERT_EQ(Success, OID(reader, expectedOID)); } - -} // unnamed namespace