chromium/services/screen_ai/proto/visual_annotator_proto_convertor_unittest.cc

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

#include "services/screen_ai/proto/visual_annotator_proto_convertor.h"

#include <string>

#include "services/screen_ai/proto/chrome_screen_ai.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_tree_update.h"

namespace {

void InitLineBox(chrome_screen_ai::LineBox* line_box,
                 int32_t x,
                 int32_t y,
                 int32_t width,
                 int32_t height,
                 const char* text,
                 const char* language,
                 chrome_screen_ai::Direction direction,
                 int32_t block_id,
                 int32_t order_within_block,
                 float angle) {}

void InitWordBox(chrome_screen_ai::WordBox* word_box,
                 int32_t x,
                 int32_t y,
                 int32_t width,
                 int32_t height,
                 const char* text,
                 const char* language,
                 chrome_screen_ai::Direction direction,
                 bool has_space_after,
                 int32_t background_rgb_value,
                 int32_t foreground_rgb_value,
                 float angle) {}

void InitSymbolBox(chrome_screen_ai::SymbolBox* symbol_box,
                   int32_t x,
                   int32_t y,
                   int32_t width,
                   int32_t height,
                   const char* text) {}

}  // namespace

namespace screen_ai {

ScreenAIVisualAnnotatorProtoConvertorTest;

TEST_F(ScreenAIVisualAnnotatorProtoConvertorTest,
       VisualAnnotationToAXTreeUpdate_OcrResults) {}

TEST_F(ScreenAIVisualAnnotatorProtoConvertorTest,
       VisualAnnotationToAXTreeUpdate_OcrResults_MultipleLanguages) {}

TEST_F(ScreenAIVisualAnnotatorProtoConvertorTest,
       ConvertProtoToVisualAnnotation_OcrResults) {}

TEST_F(ScreenAIVisualAnnotatorProtoConvertorTest,
       VisualAnnotationToAXTreeUpdate_OcrResults_RightToLeftMultiByte) {}

TEST_F(
    ScreenAIVisualAnnotatorProtoConvertorTest,
    VisualAnnotationToAXTreeUpdate_OcrResults_CharacterOffsets_LeftToRight_NotRotated) {}

TEST_F(
    ScreenAIVisualAnnotatorProtoConvertorTest,
    VisualAnnotationToAXTreeUpdate_OcrResults_CharacterOffsets_LeftToRight_Rotated) {}

}  // namespace screen_ai