chromium/third_party/blink/renderer/modules/presentation/presentation_request_test.cc

// Copyright 2016 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/presentation/presentation_request.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_presentation_source.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_presentationsource_usvstring.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/exception_state_matchers.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"

namespace blink {
namespace {

Member<V8UnionPresentationSourceOrUSVString> CreatePresentationSource(
    const String& url) {}

Member<V8UnionPresentationSourceOrUSVString> CreateMirroringSource() {}

HeapVector<Member<V8UnionPresentationSourceOrUSVString>> CreateUrlSources(
    const WTF::Vector<String>& urls) {}

TEST(PresentationRequestTest, TestSingleUrlConstructor) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructor) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidUrl) {}

TEST(PresentationRequestTest, TestMixedContentNotCheckedForNonHttpFamily) {}

TEST(PresentationRequestTest, TestSingleUrlConstructorMixedContent) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructorMixedContent) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructorEmptySequence) {}

TEST(PresentationRequestTest, TestSingleUrlConstructorUnknownScheme) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructorSomeUnknownSchemes) {}

TEST(PresentationRequestTest, TestMultipleUrlConstructorAllUnknownSchemes) {}

// If the site-initiated mirroring feature is disabled, then we do not allow
// the PresentationSource specialization of V8UnionPresentationSourceOrUSVString
// to be used to create a PresentationRequest.
TEST(PresentationRequestTest, TestPresentationSourceNotAllowed) {}

TEST(PresentationRequestTest, TestPresentationSourcesInConstructor) {}

TEST(PresentationRequestTest, TestInvalidPresentationSource) {}

}  // anonymous namespace
}  // namespace blink