diff options
Diffstat (limited to 'absl/random/mock_distributions.h')
-rw-r--r-- | absl/random/mock_distributions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/random/mock_distributions.h b/absl/random/mock_distributions.h index d36d5ba03cab..764ab370abeb 100644 --- a/absl/random/mock_distributions.h +++ b/absl/random/mock_distributions.h @@ -27,6 +27,11 @@ // More information about the Googletest testing framework is available at // https://github.com/google/googletest // +// EXPECT_CALL and ON_CALL need to be made within the same DLL component as +// the call to absl::Uniform and related methods, otherwise mocking will fail +// since the underlying implementation creates a type-specific pointer which +// will be distinct across different DLL boundaries. +// // Example: // // absl::MockingBitGen mock; |