chromium/third_party/blink/renderer/modules/ai/model_execution_responder_test.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 "third_party/blink/renderer/modules/ai/model_execution_responder.h"

#include <optional>
#include <tuple>

#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/ai/model_streaming_responder.mojom-blink.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_dom_exception.h"
#include "third_party/blink/renderer/core/dom/abort_controller.h"
#include "third_party/blink/renderer/core/fetch/readable_stream_bytes_consumer.h"
#include "third_party/blink/renderer/modules/ai/ai_metrics.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {
namespace {

std::tuple<String, bool> ReadString(ReadableStreamDefaultReader* reader,
                                    V8TestingScope& scope) {}

}  // namespace

TEST(CreateModelExecutionResponder, Simple) {}

TEST(CreateModelExecutionResponder, ErrorPermissionDenied) {}

TEST(CreateModelExecutionResponder, AbortWithoutResponse) {}

TEST(CreateModelExecutionResponder, AbortAfterResponse) {}

TEST(CreateModelExecutionStreamingResponder, Simple) {}

TEST(CreateModelExecutionStreamingResponder, ErrorPermissionDenied) {}

TEST(CreateModelExecutionStreamingResponder, AbortWithoutResponse) {}

TEST(CreateModelExecutionStreamingResponder, AbortAfterResponse) {}

}  // namespace blink