| 6155 | // wchar_t. |
| 6156 | template <typename CharType> |
| 6157 | void InitGoogleTestImpl(int* argc, CharType** argv) { |
| 6158 | g_init_gtest_count++; |
| 6159 | |
| 6160 | // We don't want to run the initialization code twice. |
| 6161 | if (g_init_gtest_count != 1) return; |
| 6162 | |
| 6163 | if (*argc <= 0) return; |
| 6164 | |
| 6165 | internal::g_executable_path = internal::StreamableToString(argv[0]); |
| 6166 | |
| 6167 | #if GTEST_HAS_DEATH_TEST |
| 6168 | |
| 6169 | g_argvs.clear(); |
| 6170 | for (int i = 0; i != *argc; i++) { |
| 6171 | g_argvs.push_back(StreamableToString(argv[i])); |
| 6172 | } |
| 6173 | |
| 6174 | #endif // GTEST_HAS_DEATH_TEST |
| 6175 | |
| 6176 | ParseGoogleTestFlagsOnly(argc, argv); |
| 6177 | GetUnitTestImpl()->PostFlagParsingInit(); |
| 6178 | } |
| 6179 | |
| 6180 | } // namespace internal |
| 6181 |
no test coverage detected