about summary refs log tree commit diff
path: root/third_party/abseil_cpp/absl/random/mock_distributions.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/abseil_cpp/absl/random/mock_distributions.h')
-rw-r--r--third_party/abseil_cpp/absl/random/mock_distributions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/abseil_cpp/absl/random/mock_distributions.h b/third_party/abseil_cpp/absl/random/mock_distributions.h
index d36d5ba03cab..764ab370abeb 100644
--- a/third_party/abseil_cpp/absl/random/mock_distributions.h
+++ b/third_party/abseil_cpp/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;