michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ : michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef TEST_NAME michael@0: #error "Must #define TEST_NAME before including storage_test_harness_tail.h" michael@0: #endif michael@0: michael@0: #ifndef TEST_FILE michael@0: #error "Must #define TEST_FILE before include storage_test_harness_tail.h" michael@0: #endif michael@0: michael@0: int michael@0: main(int aArgc, michael@0: char **aArgv) michael@0: { michael@0: ScopedXPCOM xpcom(TEST_NAME); michael@0: michael@0: for (size_t i = 0; i < mozilla::ArrayLength(gTests); i++) michael@0: gTests[i](); michael@0: michael@0: if (gPassedTests == gTotalTests) michael@0: passed(TEST_FILE); michael@0: michael@0: (void)printf("%i of %i tests passed\n", gPassedTests, gTotalTests); michael@0: }