]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - replay/scripts/tests/expected/generate-input-with-guard.json-TestReplayInputs.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / replay / scripts / tests / expected / generate-input-with-guard.json-TestReplayInputs.h
index a0d7d393670c2b6f61ac8c10d7f67192b59ab79a..e0967ccc22bd28b653856642e08fe3f80b9a07ab 100644 (file)
@@ -45,18 +45,18 @@ class SetRandomSeed;
 
 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>&);
@@ -68,7 +68,7 @@ namespace Test {
 #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; }
@@ -79,7 +79,7 @@ private:
 
 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; }
@@ -88,6 +88,16 @@ private:
 };
 } // 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) \