| Index: testing/gmock-support.h
|
| diff --git a/testing/gmock-support.h b/testing/gmock-support.h
|
| index 44348b60e0e98bfe56c639f71f70fb1f5e114472..2cdd5b110573d350fe32fcd586a8c86ff99622eb 100644
|
| --- a/testing/gmock-support.h
|
| +++ b/testing/gmock-support.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef V8_TESTING_GMOCK_SUPPORT_H_
|
| #define V8_TESTING_GMOCK_SUPPORT_H_
|
|
|
| +#include <cmath>
|
| +
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| namespace testing {
|
| @@ -29,6 +31,11 @@ class Capture {
|
| };
|
|
|
|
|
| +MATCHER(IsNaN, std::string(negation ? "isn't" : "is") + " NaN") {
|
| + return std::isnan(arg);
|
| +}
|
| +
|
| +
|
| namespace internal {
|
|
|
| template <typename T>
|
|
|