blob: b5d7532dbafdb956eb3320f03dc594216ede9289 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_SERVICES_ISOLATED_XR_DEVICE_XR_SERVICE_TEST_HOOK_H_
#define CONTENT_SERVICES_ISOLATED_XR_DEVICE_XR_SERVICE_TEST_HOOK_H_
#include <memory>
#include "device/vr/public/mojom/browser_test_interfaces.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
namespace device {
class XRTestHookWrapper;
class XRServiceTestHook : public device_test::mojom::XRServiceTestHook {
public:
XRServiceTestHook();
~XRServiceTestHook() final;
using DeviceCrashCallback = device_test::mojom::XRServiceTestHook::
TerminateDeviceServiceProcessForTestingCallback;
// device_test::mojom::XRServiceTestHook
void SetTestHook(mojo::PendingRemote<device_test::mojom::XRTestHook> hook,
device_test::mojom::XRServiceTestHook::SetTestHookCallback
callback) override;
void TerminateDeviceServiceProcessForTesting(
DeviceCrashCallback callback) override;
private:
std::unique_ptr<XRTestHookWrapper> wrapper_;
};
} // namespace device
#endif // CONTENT_SERVICES_ISOLATED_XR_DEVICE_XR_SERVICE_TEST_HOOK_H_