// services/shape_detection/public/mojom/textdetection.mojom-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 SERVICES_SHAPE_DETECTION_PUBLIC_MOJOM_TEXTDETECTION_MOJOM_TEST_UTILS_H_
#define SERVICES_SHAPE_DETECTION_PUBLIC_MOJOM_TEXTDETECTION_MOJOM_TEST_UTILS_H_

#include "services/shape_detection/public/mojom/textdetection.mojom.h"


namespace shape_detection::mojom {


class  TextDetectionInterceptorForTesting : public TextDetection {
  virtual TextDetection* GetForwardingInterface() = 0;
  void Detect(const ::SkBitmap& bitmap_data, DetectCallback callback) override;
};
class  TextDetectionAsyncWaiter {
 public:
  explicit TextDetectionAsyncWaiter(TextDetection* proxy);

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

  ~TextDetectionAsyncWaiter();
  void Detect(
      const ::SkBitmap& bitmap_data, std::vector<TextDetectionResultPtr>* out_results);
  std::vector<TextDetectionResultPtr> Detect(const ::SkBitmap& bitmap_data);

 private:
  TextDetection* const proxy_;
};




}  // shape_detection::mojom

#endif  // SERVICES_SHAPE_DETECTION_PUBLIC_MOJOM_TEXTDETECTION_MOJOM_TEST_UTILS_H_