#ifndef V8_TESTING_GMOCK_SUPPORT_H_
#define V8_TESTING_GMOCK_SUPPORT_H_
#include <cmath>
#include <cstring>
#include <string>
#include "include/v8-isolate.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace testing {
template <typename T>
class Capture { … };
namespace internal {
template <typename T>
class CaptureEqMatcher : public MatcherInterface<T> { … };
}
MATCHER_P(BitEq, x, std::string(negation ? "isn't" : "is") +
" bitwise equal to " + PrintToString(x)) { … }
MATCHER_P(IsInt32, expected,
std::string(negation ? "isn't" : "is") + " Int32 " +
PrintToString(expected)) { … }
MATCHER_P(IsString, expected,
std::string(negation ? "isn't" : "is") + " String " +
PrintToString(expected)) { … }
MATCHER(IsUndefined, std::string(negation ? "isn't" : "is") + " Undefined") { … }
template <typename T>
inline Matcher<T> CaptureEq(Capture<T>* capture) { … }
MATCHER(IsNaN, std::string(negation ? "isn't" : "is") + " not a number") { … }
}
#endif