namespace JSC {
#if ENABLE(DUMMY_FEATURE)
-template<> struct InputTraits<Test::GetCurrentTime> {
+template<> struct TEST_EXPORT_MACRO InputTraits<Test::GetCurrentTime> {
static InputQueue queue() { return InputQueue::ScriptMemoizedData; }
- static const AtomicString& type();
+ static const String& type();
static void encode(JSC::EncodedValue&, const Test::GetCurrentTime&);
static bool decode(JSC::EncodedValue&, std::unique_ptr<Test::GetCurrentTime>&);
};
#endif // ENABLE(DUMMY_FEATURE)
-template<> struct InputTraits<Test::SetRandomSeed> {
+template<> struct TEST_EXPORT_MACRO InputTraits<Test::SetRandomSeed> {
static InputQueue queue() { return InputQueue::ScriptMemoizedData; }
- static const AtomicString& type();
+ static const String& type();
static void encode(JSC::EncodedValue&, const Test::SetRandomSeed&);
static bool decode(JSC::EncodedValue&, std::unique_ptr<Test::SetRandomSeed>&);
#if ENABLE(DUMMY_FEATURE)
class GetCurrentTime : public NondeterministicInput<GetCurrentTime> {
public:
- GetCurrentTime(double currentTime);
+ TEST_EXPORT_MACRO GetCurrentTime(double currentTime);
virtual ~GetCurrentTime();
double currentTime() const { return m_currentTime; }
class SetRandomSeed : public NondeterministicInput<SetRandomSeed> {
public:
- SetRandomSeed(uint64_t randomSeed);
+ TEST_EXPORT_MACRO SetRandomSeed(uint64_t randomSeed);
virtual ~SetRandomSeed();
uint64_t randomSeed() const { return m_randomSeed; }
};
} // namespace Test
+#if ENABLE(DUMMY_FEATURE)
+SPECIALIZE_TYPE_TRAITS_BEGIN(Test::GetCurrentTime)
+ static bool isType(const NondeterministicInputBase& input) { return input.type() == InputTraits<Test::GetCurrentTime>::type(); }
+SPECIALIZE_TYPE_TRAITS_END()
+#endif // ENABLE(DUMMY_FEATURE)
+
+SPECIALIZE_TYPE_TRAITS_BEGIN(Test::SetRandomSeed)
+ static bool isType(const NondeterministicInputBase& input) { return input.type() == InputTraits<Test::SetRandomSeed>::type(); }
+SPECIALIZE_TYPE_TRAITS_END()
+
#define TEST_REPLAY_INPUT_NAMES_FOR_EACH(macro) \
macro(GetCurrentTime) \
macro(SetRandomSeed) \