| 7497 | // wchar_t. |
| 7498 | template <typename CharType> |
| 7499 | void InitGoogleTestImpl(int* argc, CharType** argv) { |
| 7500 | // We don't want to run the initialization code twice. |
| 7501 | if (GTestIsInitialized()) return; |
| 7502 | |
| 7503 | if (*argc <= 0) return; |
| 7504 | |
| 7505 | g_argvs.clear(); |
| 7506 | for (int i = 0; i != *argc; i++) { |
| 7507 | g_argvs.push_back(StreamableToString(argv[i])); |
| 7508 | } |
| 7509 | |
| 7510 | #if GTEST_HAS_ABSL |
| 7511 | absl::InitializeSymbolizer(g_argvs[0].c_str()); |
| 7512 | #endif // GTEST_HAS_ABSL |
| 7513 | |
| 7514 | ParseGoogleTestFlagsOnly(argc, argv); |
| 7515 | GetUnitTestImpl()->PostFlagParsingInit(); |
| 7516 | } |
| 7517 | |
| 7518 | } // namespace internal |
| 7519 |
no test coverage detected