#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 BoundingBoxStruct { … };
struct TextStruct { … };
struct TranslationWordStruct { … };
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) { … }
}