chromium/chrome/browser/ui/lens/lens_overlay_proto_converter_unittest.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/ui/lens/lens_overlay_proto_converter.h"

#include <vector>

#include "base/strings/stringprintf.h"
#include "chrome/browser/lens/core/mojom/geometry.mojom.h"
#include "chrome/browser/lens/core/mojom/overlay_object.mojom.h"
#include "chrome/browser/lens/core/mojom/polygon.mojom.h"
#include "chrome/browser/lens/core/mojom/text.mojom-forward.h"
#include "chrome/browser/lens/core/mojom/text.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/lens_server_proto/lens_overlay_deep_gleam_data.pb.h"
#include "third_party/lens_server_proto/lens_overlay_geometry.pb.h"
#include "third_party/lens_server_proto/lens_overlay_overlay_object.pb.h"
#include "third_party/lens_server_proto/lens_overlay_polygon.pb.h"
#include "third_party/lens_server_proto/lens_overlay_server.pb.h"
#include "third_party/lens_server_proto/lens_overlay_service_deps.pb.h"
#include "third_party/lens_server_proto/lens_overlay_text.pb.h"
#include "ui/gfx/geometry/size_f.h"

namespace lens {

// Struct for creating fake geometry data.
struct BoundingBoxStruct {};

// Struct for creating fake text data for one word.
struct TextStruct {};

// Struct for creating fake translation word indices.
struct TranslationWordStruct {};

// Struct for creating fake translation text data.
struct TranslationTextStruct {};

inline constexpr BoundingBoxStruct kTestBoundingBox1 =;

inline constexpr BoundingBoxStruct kTestBoundingBox2 =;

inline constexpr TextStruct kTestText =;

inline const TranslationTextStruct kTestTranslationText =;

class LensOverlayProtoConverterTest : public testing::Test {};

TEST_F(LensOverlayProtoConverterTest,
       CreateObjectsMojomArrayFromServerResponse) {}

TEST_F(LensOverlayProtoConverterTest,
       CreateObjectsMojomArrayFromServerResponse_Empty) {}

TEST_F(LensOverlayProtoConverterTest,
       CreateObjectsMojomArrayFromServerResponse_NoObjectsResponse) {}

TEST_F(LensOverlayProtoConverterTest, CreateTextMojomFromServerResponse) {}

TEST_F(LensOverlayProtoConverterTest,
       CreateTextMojomFromServerResponse_WithTranslation) {}

TEST_F(LensOverlayProtoConverterTest, CreateTextMojomFromServerResponse_Empty) {}

TEST_F(LensOverlayProtoConverterTest,
       CreateTextMojomFromServerResponse_NoObjectsResponse) {}

}  // namespace lens