Bug 1794615 - replace TYPED_TEST_CASE by TYPED_TEST_SUITE in test_StatementCache r=mak

Differential Revision: https://phabricator.services.mozilla.com/D159045
This commit is contained in:
Robert Longson 2022-10-13 12:14:29 +00:00
parent fced4f3faf
commit c547aefdbc

View File

@ -47,7 +47,7 @@ template <typename T>
class storage_StatementCache : public ::testing::Test {};
typedef ::testing::Types<const char[], StringWrapper> TwoStringTypes;
TYPED_TEST_CASE(storage_StatementCache, TwoStringTypes);
TYPED_TEST_SUITE(storage_StatementCache, TwoStringTypes);
TYPED_TEST(storage_StatementCache, GetCachedStatement) {
nsCOMPtr<mozIStorageConnection> db(getMemoryDatabase());
SyncCache cache(db);
@ -67,7 +67,7 @@ TYPED_TEST(storage_StatementCache, GetCachedStatement) {
do_check_eq(stmt.get(), stmt2.get());
}
TYPED_TEST_CASE(storage_StatementCache, TwoStringTypes);
TYPED_TEST_SUITE(storage_StatementCache, TwoStringTypes);
TYPED_TEST(storage_StatementCache, FinalizeStatements) {
nsCOMPtr<mozIStorageConnection> db(getMemoryDatabase());
SyncCache cache(db);
@ -89,7 +89,7 @@ TYPED_TEST(storage_StatementCache, FinalizeStatements) {
do_check_success(db->Close());
}
TYPED_TEST_CASE(storage_StatementCache, TwoStringTypes);
TYPED_TEST_SUITE(storage_StatementCache, TwoStringTypes);
TYPED_TEST(storage_StatementCache, GetCachedAsyncStatement) {
nsCOMPtr<mozIStorageConnection> db(getMemoryDatabase());
AsyncCache cache(db);
@ -109,7 +109,7 @@ TYPED_TEST(storage_StatementCache, GetCachedAsyncStatement) {
do_check_eq(stmt.get(), stmt2.get());
}
TYPED_TEST_CASE(storage_StatementCache, TwoStringTypes);
TYPED_TEST_SUITE(storage_StatementCache, TwoStringTypes);
TYPED_TEST(storage_StatementCache, FinalizeAsyncStatements) {
nsCOMPtr<mozIStorageConnection> db(getMemoryDatabase());
AsyncCache cache(db);