// third_party/blink/public/mojom/sms/webotp_service.mojom-blink-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_SMS_WEBOTP_SERVICE_MOJOM_BLINK_TEST_UTILS_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_SMS_WEBOTP_SERVICE_MOJOM_BLINK_TEST_UTILS_H_

#include "third_party/blink/public/mojom/sms/webotp_service.mojom-blink.h"
#include "third_party/blink/renderer/platform/platform_export.h"


namespace blink::mojom::blink {


class PLATFORM_EXPORT WebOTPServiceInterceptorForTesting : public WebOTPService {
  virtual WebOTPService* GetForwardingInterface() = 0;
  void Receive(ReceiveCallback callback) override;
  void Abort() override;
};
class PLATFORM_EXPORT WebOTPServiceAsyncWaiter {
 public:
  explicit WebOTPServiceAsyncWaiter(WebOTPService* proxy);

  WebOTPServiceAsyncWaiter(const WebOTPServiceAsyncWaiter&) = delete;
  WebOTPServiceAsyncWaiter& operator=(const WebOTPServiceAsyncWaiter&) = delete;

  ~WebOTPServiceAsyncWaiter();
  void Receive(
      SmsStatus* out_status, ::blink::String* out_otp);
  

 private:
  WebOTPService* const proxy_;
};




}  // blink::mojom::blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_SMS_WEBOTP_SERVICE_MOJOM_BLINK_TEST_UTILS_H_