#include "third_party/blink/renderer/modules/sensor/sensor_test_utils.h"
#include <utility>
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "third_party/blink/public/mojom/sensor/web_sensor_provider.mojom-blink.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/core/dom/events/event_target.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/page/focus_controller.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
class SyncEventListener final : public NativeEventListener { … };
}
SensorTestContext::SensorTestContext()
: … { … }
SensorTestContext::~SensorTestContext() { … }
ExecutionContext* SensorTestContext::GetExecutionContext() const { … }
ScriptState* SensorTestContext::GetScriptState() const { … }
void SensorTestContext::BindSensorProviderRequest(
mojo::ScopedMessagePipeHandle handle) { … }
void SensorTestUtils::WaitForEvent(EventTarget* event_target,
const WTF::AtomicString& event_type) { … }
}