diff options
| author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-10-05 05:51:10 +0000 | 
|---|---|---|
| committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-10-05 05:51:10 +0000 | 
| commit | 69a40b7d4ab4171cbe4ef920e7a5171109e2064c (patch) | |
| tree | f5bc8a2924ea70d5edf2cfb2bbd39c02bf0c8d68 /include | |
| parent | 879916a9393ef4af84ebe8b331220586dd8cafbb (diff) | |
| download | googletest-69a40b7d4ab4171cbe4ef920e7a5171109e2064c.tar.gz googletest-69a40b7d4ab4171cbe4ef920e7a5171109e2064c.tar.bz2 googletest-69a40b7d4ab4171cbe4ef920e7a5171109e2064c.zip | |
Adds ability to inject death test child arguments for test purposes.
Diffstat (limited to 'include')
| -rw-r--r-- | include/gtest/internal/gtest-port.h | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 16be48db..f3b7b62f 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -177,7 +177,7 @@  //   GTEST_FLAG()       - references a flag.  //   GTEST_DECLARE_*()  - declares a flag.  //   GTEST_DEFINE_*()   - defines a flag. -//   GetArgvs()         - returns the command line as a vector of strings. +//   GetInjectableArgvs() - returns the command line as a vector of strings.  //  // Environment variable utilities:  //   GetEnv()             - gets the value of an environment variable. @@ -1069,11 +1069,12 @@ GTEST_API_ String GetCapturedStderr();  #if GTEST_HAS_DEATH_TEST -// A copy of all command line arguments.  Set by InitGoogleTest(). -extern ::std::vector<String> g_argvs; +const ::std::vector<testing::internal::string>& GetInjectableArgvs(); +void SetInjectableArgvs(const ::std::vector<testing::internal::string>* +                             new_argvs); -// GTEST_HAS_DEATH_TEST implies we have ::std::string. -const ::std::vector<String>& GetArgvs(); +// A copy of all command line arguments.  Set by InitGoogleTest(). +extern ::std::vector<testing::internal::string> g_argvs;  #endif  // GTEST_HAS_DEATH_TEST | 
