gtests-util.cc (552B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #include "nspr.h" 6 #include "secoid.h" 7 8 #include <cstdlib> 9 10 #define GTEST_HAS_RTTI 0 11 #include "gtest/gtest.h" 12 13 int main(int argc, char **argv) { 14 ::testing::InitGoogleTest(&argc, argv); 15 16 if (SECOID_Init() != SECSuccess) { 17 return 1; 18 } 19 int rv = RUN_ALL_TESTS(); 20 21 if (SECOID_Shutdown() != SECSuccess) { 22 return 1; 23 } 24 25 return rv; 26 }