| 6885 | // wchar_t. |
| 6886 | template <typename CharType> |
| 6887 | void InitGoogleTestImpl(int* argc, CharType** argv) { |
| 6888 | g_init_gtest_count++; |
| 6889 | |
| 6890 | // We don't want to run the initialization code twice. |
| 6891 | if (g_init_gtest_count != 1) return; |
| 6892 | |
| 6893 | if (*argc <= 0) return; |
| 6894 | |
| 6895 | internal::g_executable_path = internal::StreamableToString(argv[0]); |
| 6896 | |
| 6897 | #if GTEST_HAS_DEATH_TEST |
| 6898 | |
| 6899 | g_argvs.clear(); |
| 6900 | for (int i = 0; i != *argc; i++) { |
| 6901 | g_argvs.push_back(StreamableToString(argv[i])); |
| 6902 | } |
| 6903 | |
| 6904 | #endif // GTEST_HAS_DEATH_TEST |
| 6905 | |
| 6906 | ParseGoogleTestFlagsOnly(argc, argv); |
| 6907 | GetUnitTestImpl()->PostFlagParsingInit(); |
| 6908 | } |
| 6909 | |
| 6910 | } // namespace internal |
| 6911 |
no test coverage detected