diff options
author | Piotr Kąkol <piotrkakol@protonmail.com> | 2018-07-25 17:19:26 (GMT) |
---|---|---|
committer | Piotr Kąkol <piotrkakol@protonmail.com> | 2018-07-25 17:19:26 (GMT) |
commit | 309e8a271e9aca1ef4aab899ce5d2d07c42123bb (patch) | |
tree | d4605b04beff460b56b32a43b4cdc1f396b261a4 /googletest/docs/faq.md | |
parent | 40904f897048f26c7af0b199e31f8385c446fcf9 (diff) | |
download | googletest-309e8a271e9aca1ef4aab899ce5d2d07c42123bb.zip googletest-309e8a271e9aca1ef4aab899ce5d2d07c42123bb.tar.gz googletest-309e8a271e9aca1ef4aab899ce5d2d07c42123bb.tar.bz2 |
Updated broken and outdated URLs
Diffstat (limited to 'googletest/docs/faq.md')
-rw-r--r-- | googletest/docs/faq.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/docs/faq.md b/googletest/docs/faq.md index dad2836..d613f7b 100644 --- a/googletest/docs/faq.md +++ b/googletest/docs/faq.md @@ -162,7 +162,7 @@ result, any in-memory side effects they incur are observable in their respective sub-processes, but not in the parent process. You can think of them as running in a parallel universe, more or less. -In particular, if you use [gMock](http://go/gmock) and the death test statement +In particular, if you use [gMock](../../googlemock) and the death test statement invokes some mock methods, the parent process will think the calls have never occurred. Therefore, you may want to move your `EXPECT_CALL` statements inside the `EXPECT_DEATH` macro. @@ -289,7 +289,7 @@ Please make sure you have read [this](advanced.md#how-it-works). In particular, death tests don't like having multiple threads in the parent process. So the first thing you can try is to eliminate creating threads outside -of `EXPECT_DEATH()`. For example, you may want to use [mocks](http://go/gmock) +of `EXPECT_DEATH()`. For example, you may want to use [mocks](../../googlemock) or fake objects instead of real ones in your tests. Sometimes this is impossible as some library you must use may be creating @@ -704,7 +704,7 @@ mistake in production. Such cleverness also leads to advise against the practice, and googletest doesn't provide a way to do it. In general, the recommended way to cause the code to behave differently under -test is [Dependency Injection](http://go/dependency-injection). You can inject +test is [Dependency Injection](https://en.wikipedia.org/wiki/Dependency_injection). You can inject different functionality from the test and from the production code. Since your production code doesn't link in the for-test logic at all (the [`testonly`](http://go/testonly) attribute for BUILD targets helps to ensure |