aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSMockFunction.h
blob: 288ca2e89bd9779e555886a0fb70950e0f375658 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};

}