aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSMockFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/JSMockFunction.h')
-rw-r--r--src/bun.js/bindings/JSMockFunction.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/bun.js/bindings/JSMockFunction.h b/src/bun.js/bindings/JSMockFunction.h
new file mode 100644
index 000000000..288ca2e89
--- /dev/null
+++ b/src/bun.js/bindings/JSMockFunction.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "root.h"
+#include "JavaScriptCore/LazyProperty.h"
+#include "JavaScriptCore/Strong.h"
+
+namespace WebCore {
+}
+
+namespace Bun {
+
+using namespace JSC;
+using namespace WebCore;
+
+class JSMockFunction;
+
+class JSMockModule final {
+public:
+ LazyProperty<JSC::JSGlobalObject, Structure> mockFunctionStructure;
+ LazyProperty<JSC::JSGlobalObject, Structure> mockResultStructure;
+ LazyProperty<JSC::JSGlobalObject, Structure> mockImplementationStructure;
+ LazyProperty<JSC::JSGlobalObject, Structure> mockObjectStructure;
+ LazyProperty<JSC::JSGlobalObject, Structure> activeSpySetStructure;
+
+ static JSMockModule create(JSC::JSGlobalObject*);
+
+ JSC::Strong<Unknown> activeSpies;
+};
+
+} \ No newline at end of file