chromium/third_party/blink/renderer/modules/handwriting/handwriting_type_converters_unittest.cc

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

#include "third_party/blink/renderer/modules/handwriting/handwriting_type_converters.h"

#include <string>

#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_drawing_segment.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_hints.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_hints_query_result.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_input_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_model_constraint.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_point.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_prediction.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_recognition_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_recognizer_query_result.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_segment.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_stroke.h"
#include "third_party/blink/renderer/modules/handwriting/handwriting_stroke.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

HandwritingDrawingSegmentPtr;
HandwritingHintsPtr;
HandwritingModelConstraintPtr;
HandwritingPointPtr;
HandwritingPredictionPtr;
HandwritingSegmentPtr;
HandwritingStrokePtr;

TEST(HandwritingTypeConvertersTest, IdlHandwritingPointToMojo) {}

TEST(HandwritingTypeConvertersTest, IdlHandwritingPointToMojoWithoutT) {}

TEST(HandwritingTypeConvertersTest, IdlHandwritingModelConstraintToMojo) {}

TEST(HandwritingTypeConvertersTest, IdlEmptyHandwritingModelConstraintToMojo) {}

TEST(HandwritingTypeConvertersTest, IdlNullHandwritingModelConstraintToMojo) {}

TEST(HandwritingTypeConvertersTest, IdlHandwritingStrokeToMojo) {}

TEST(HandwritingTypeConvertersTest, IdlHandwritingHintsToMojo) {}

// Tests whether the default values of `HandwritingHints` can be correctly
// converted, especially for `textContext` which is not-set by default.
TEST(HandwritingTypeConvertersTest, IdlHandwritingHintsToDefaultValue) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingPointToIdl) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingPointToIdlWithoutT) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingStrokeToIdl) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingDrawingSegmentIdl) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingSegmentIdl) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingPredictionIdl) {}

TEST(HandwritingTypeConvertersTest, MojoHandwritingRecognizerQueryResultIdl) {}

TEST(HandwritingTypeConvertersTest,
     MojoHandwritingRecognizerQueryResultIdl_FalseValues) {}

}  // namespace blink