#include "chrome/browser/screen_ai/public/test/fake_optical_character_recognizer.h"
#include "base/task/single_thread_task_runner.h"
namespace screen_ai {
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() { … }
}