chromium/chrome/browser/screen_ai/public/test/fake_optical_character_recognizer.cc

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

#include "chrome/browser/screen_ai/public/test/fake_optical_character_recognizer.h"

#include "base/task/single_thread_task_runner.h"

namespace screen_ai {

// static
scoped_refptr<screen_ai::OpticalCharacterRecognizer>
FakeOpticalCharacterRecognizer::Create(bool return_empty) {}

FakeOpticalCharacterRecognizer::FakeOpticalCharacterRecognizer(
    bool return_empty)
    :{}

FakeOpticalCharacterRecognizer::~FakeOpticalCharacterRecognizer() = default;

void FakeOpticalCharacterRecognizer::PerformOCR(
    const ::SkBitmap& image,
    base::OnceCallback<void(screen_ai::mojom::VisualAnnotationPtr)> callback) {}

void FakeOpticalCharacterRecognizer::PerformOCR(
    const SkBitmap& image,
    base::OnceCallback<void(const ui::AXTreeUpdate&)> callback) {}

void FakeOpticalCharacterRecognizer::FlushForTesting() {}

}  // namespace screen_ai